update table styles
This commit is contained in:
@ -3,36 +3,43 @@
|
||||
|
||||
<h4 class='breadcrumb'><%= t(:plugins) %></h4>
|
||||
|
||||
<% if @plugins.length > 0 %>
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th><%= t(:plugin_name) %></th>
|
||||
<th><%= t(:action) %></th>
|
||||
</tr>
|
||||
|
||||
<% @plugins.each do |p| %>
|
||||
<tr>
|
||||
<td>
|
||||
<i class="fa fa-<%= 'un' if p.private_flag != true %>lock fa-fw"></i>
|
||||
<%= p.name %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to t(:view).downcase, plugin_path(p.id), :target => '_blank' %>
|
||||
|
||||
<%= link_to t(:edit).downcase, edit_plugin_path(p.id) %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
</table>
|
||||
|
||||
<br><br>
|
||||
<% end %>
|
||||
|
||||
<%= form_for :plugin do |p| %>
|
||||
<input name='userlogin' class='userlogin' />
|
||||
<%= p.submit t(:plugin_create), :class => 'btn btn-primary' %>
|
||||
<% end %>
|
||||
<br>
|
||||
|
||||
<% if @plugins.length > 0 %>
|
||||
<table class="table table-striped table-bordered tablesorter">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= t(:plugin_name) %> <i class="fa fa-unsorted"></i></th>
|
||||
<th><%= t(:created) %> <i class="fa fa-unsorted"></i></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @plugins.each do |p| %>
|
||||
<tr>
|
||||
<td>
|
||||
<h4 style="margin-top: 0;">
|
||||
<a href="<%= plugin_path(p.id) %>" target="_blank">
|
||||
<i class="fa fa-<%= 'un' if p.private_flag != true %>lock fa-fw"></i>
|
||||
<%= p.name %>
|
||||
</a>
|
||||
</h4>
|
||||
<div class="btn-group btn-group-sm">
|
||||
<%= link_to T(:view), plugin_path(p.id), :target => '_blank', class: 'btn btn-default' %>
|
||||
<%= link_to T(:edit), edit_plugin_path(p.id), class: 'btn btn-default' %>
|
||||
</div>
|
||||
</td>
|
||||
<td><%= p.created_at.strftime("%Y-%m-%d") %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="sidebar" class="col-xs-12 col-sm-6">
|
||||
|
Reference in New Issue
Block a user