Skip to content

Commit

Permalink
Makes the articles list more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric de Villamil committed Aug 27, 2013
1 parent b482801 commit 01ef735
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/content/_article_list.html.erb
Expand Up @@ -11,7 +11,7 @@
<%= format_date article.published_at %><br />
<%= published_or_not article %>
</td>
<td><%= (article.allow_comments?) ? link_to(article.comments.ham.size.to_s, :controller => '/admin/feedback', :id => article.id, :action => 'article') : '-' %></td>
<td><%= (article.allow_comments?) ? link_to(article.comments.ham.size.to_s, :controller => '/admin/feedback', :id => article.id, :action => 'article') : '-' %> <i class='icon icon-comment'></i></td>
</tr>
<% end %>
<%= display_pagination(@articles, 5, 'first', 'last')%>
15 changes: 4 additions & 11 deletions app/views/admin/content/index.html.erb
Expand Up @@ -33,19 +33,12 @@
<br class='clearleft' />
<table class="table table-striped">
<thead>
<tr class='noborder'>
<td></td>
<td><%= select_tag('search[category]', options_from_collection_for_select(Category.all, 'id', 'name'), {prompt: _("Select a category"), :class => 'span12'}) %></td>
<td><%= select_tag('search[user_id]', options_from_collection_for_select(User.all, 'id', 'name'), {prompt: _("Select an author"), :class => 'span12'}) %></td>
<td><%= select_tag('search[published_at]', options_for_select(Article.find_by_published_at), {prompt: _("Publication date"), :class => 'span12'}) %></td>
<td><input type="submit" value='<%= _("Filter") %>' class='btn' />
</tr>
<tr class='noborder'>
<th><%= _("Title") %></th>
<th><%= _("Categories") %></th>
<th><%= _("Author")%></th>
<th><%= _("Date") %></th>
<th class='last'><%= _("Feedback")%></th>
<th><%= select_tag('search[category]', options_from_collection_for_select(Category.all, 'id', 'name'), {prompt: _("Select a category"), :class => 'span12'}) %></th>
<th><%= select_tag('search[user_id]', options_from_collection_for_select(User.all, 'id', 'name'), {prompt: _("Select an author"), :class => 'span12'}) %></th>
<th><%= select_tag('search[published_at]', options_for_select(Article.find_by_published_at), {prompt: _("Publication date"), :class => 'span12'}) %></th>
<th><input type="submit" value='<%= _("Filter") %>' class='btn' />
</tr>
</thead>
<tbody id="articleList">
Expand Down

0 comments on commit 01ef735

Please sign in to comment.