update table styles

This commit is contained in:
Lee Lawlor
2014-07-31 15:35:21 -04:00
parent bef9ba1f88
commit 5eb5e231d7
19 changed files with 156 additions and 116 deletions

View File

@ -5,6 +5,8 @@
<div class="col-pad" data-no-turbolink>
<%= button_to t(:channel_create), channels_path, :method => :post, :class => 'btn btn-primary' %><br>
<% if @channels.length > 0 %>
<table class="table table-striped table-bordered tablesorter">
@ -19,16 +21,19 @@
<tr>
<td>
<a href="/channels/<%= channel.id %>">
<i class="fa fa-<%= 'un' if channel.public_flag == true %>lock fa-fw"></i>
<%= channel.name %>
</a>
<br>
<%= link_to t(:private_link), channel_path(channel.id, :anchor => 'privateview') %> |
<%= link_to t(:public_link), channel_path(channel.id, :anchor => 'publicview') %> |
<%= link_to t(:settings_link), channel_path(channel.id, :anchor => 'channelsettings') %> |
<%= link_to t(:api_key_link), channel_path(channel.id, :anchor => 'apikeys') %> |
<%= link_to t(:data_import_link), channel_path(channel.id, :anchor => 'dataimport') %>
<h4 style="margin-top: 0;">
<a href="/channels/<%= channel.id %>">
<i class="fa fa-<%= 'un' if channel.public_flag == true %>lock fa-fw"></i>
<%= channel.name %>
</a>
</h4>
<div class="btn-group btn-group-sm hidden-xs hidden-sm">
<%= link_to t(:private_link), channel_path(channel.id, :anchor => 'privateview'), class: 'btn btn-default' %>
<%= link_to t(:public_link), channel_path(channel.id, :anchor => 'publicview'), class: 'btn btn-default' %>
<%= link_to t(:settings_link), channel_path(channel.id, :anchor => 'channelsettings'), class: 'btn btn-default' %>
<%= link_to t(:api_key_link), channel_path(channel.id, :anchor => 'apikeys'), class: 'btn btn-default' %>
<%= link_to t(:data_import_link), channel_path(channel.id, :anchor => 'dataimport'), class: 'btn btn-default' %>
</div>
</td>
<td><%= channel.created_at.strftime("%Y-%m-%d") %></td>
@ -38,8 +43,6 @@
</table>
<% end %>
<%= button_to t(:channel_create), channels_path, :method => :post, :class => 'btn btn-primary' %>
<% if current_admin_user.present? %>
<br><br><br>
<% @channels.each do |c| %>
@ -72,9 +75,3 @@
</div>
<script>
$(document).on('page:load ready', function() {
$('.tablesorter').tablesorter();
});
</script>