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

@ -0,0 +1,37 @@
<h3><%= t(:user_public_channels) %> <%= @user.login %></h3>
<% if @channels.present? && @channels.count > 0 %>
<table class="table table-striped table-bordered tablesorter">
<thead>
<tr>
<th class="col-sm-5 col-xs-5"><%= t(:channel_name) %> <i class="fa fa-unsorted"></i></th>
<th class="col-sm-5 col-xs-5"><%= t(:channel_description) %> <i class="fa fa-unsorted"></i></td>
<th class="col-sm-2 col-xs-2"><%= t(:tags) %> <i class="fa fa-unsorted"></i></td>
</tr>
</thead>
<tbody>
<% @channels.each do |channel| %>
<tr>
<td>
<h4 style="margin-top: 0;">
<%= link_to channel.name, channel_path(channel.id) %>
</h4>
<%= link_to T(:view), channel_path(channel.id), class: 'btn btn-default btn-sm' %>
<td><%= channel.description %></td>
<td>
<% channel.tags.each do |tag| %>
<a href="/channels/public?tag=<%=u tag.name %>"><%= tag.name %></a><% unless tag == channel.tags.last %>, <% end %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= will_paginate @channels %>
<% else %>
<%= t(:user_no_public_channels) %>
<% end %>

View File

@ -1,19 +1,2 @@
<h3><%= t(:user_public_channels) %> <%= @user.login %></h3>
<% if @channels.present? && @channels.count > 0 %>
<table class="table table-striped table-bordered">
<tr><th><%= t(:channel_name) %></th><th><%= t(:channel_description) %></th><th><%= t(:tags) %></th></tr>
<% @channels.each do |m| %>
<tr<%= cycle('', raw(' class="stripe"')) %>>
<td><%= link_to m.name, channel_path(m.id) %></td>
<td><%= m.description %></td>
<td><%= m.list_tags %></td>
</tr>
<% end %>
</table>
<br>
<%= will_paginate @channels %>
<% else %>
<%= t(:user_no_public_channels) %>
<% end %>
<%= render 'list_channels' %>

View File

@ -6,14 +6,15 @@
</div>
<h2><%= t(:profile_for) %> <%= @user.login %></h2>
<%= link_to t(:channels_public_view), list_channels_path(@user.login) %>
<br><br>
<%= t(:member_since) %> <%= @user.created_at.strftime('%B %-d, %Y') %>
<br><br>
<%= t(:profile_website) %>: <%= link_to @user.website, @user.website %>
<br><br>
<%= t(:profile_bio) %>: <%= @user.bio %>
<br><br>
<%= render 'list_channels' %>
<% else %>
<%= t(:profile_not_public) %>
<% end %>
<% end %>

View File

@ -21,8 +21,8 @@
<tr>
<td><%= t(:api_key) %></td>
<td>
<%= @user.api_key %><br>
<%= button_to t(:api_key_new), user_new_api_key_path, :data => { :confirm => t(:confirm_new_user_api_key) }, :class => 'btn btn-primary btn-sm' %>
<code><%= @user.api_key %></code><br><br>
<%= button_to t(:api_key_new), user_new_api_key_path, :data => { :confirm => t(:confirm_new_user_api_key) }, :class => 'btn btn-warning btn-sm' %>
</td>
</tr>