Skip to content

Commit

Permalink
reworked forum listing layout a bit for small screens (using foundati…
Browse files Browse the repository at this point in the history
…on css)
  • Loading branch information
louiecaulfield committed Oct 17, 2014
1 parent 77c20aa commit 38e0387
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions app/views/forem/forums/_forum.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<% if can?(:read, forum) %>
<tr class="forum <%= cycle("odd", "even") %>">
<td>
<%= link_to forem_emojify(forum.title), forem.forum_path(forum), :class => "title" %>
<h3>
<%= link_to forem_emojify(forum.title), forem.forum_path(forum)%>
</h3>
<div class='description'><%= forem_format(forum.description) %></div>
<%= t('forem.forums.index.last_post') -%>
<span class='last_post'>
Expand All @@ -13,8 +15,8 @@
<% end %>
</span>
</td>
<td class="topics-count"><%= topics_count(forum) %></td>
<td class="posts-count"><%= posts_count(forum) %></td>
<td class="views-count"><%= forum.views_count %></td>
<td class="topics-count show-for-medium-up"><%= topics_count(forum) %></td>
<td class="posts-count show-for-medium-up"><%= posts_count(forum) %></td>
<td class="views-count show-for-medium-up"><%= forum.views_count %></td>
</tr>
<% end %>
6 changes: 3 additions & 3 deletions app/views/forem/forums/_listing.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<thead>
<tr>
<th class="desc-and-last-post"><%= t('forum', :scope => 'forem.general') %></th>
<th class="topics-count"><%= t('topics', :scope => 'forem.general') %></th>
<th class="posts-count"><%= t('posts', :scope => 'forem.general') %></th>
<th class="views-count"><%= t('forem.forums.index.views') %></th>
<th class="topics-count show-for-medium-up"><%= t('topics', :scope => 'forem.general') %></th>
<th class="posts-count show-for-medium-up"><%= t('posts', :scope => 'forem.general') %></th>
<th class="views-count show-for-medium-up"><%= t('forem.forums.index.views') %></th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit 38e0387

Please sign in to comment.