Skip to content

Commit

Permalink
Improve admin navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Jul 22, 2013
1 parent 21d0cd4 commit 0d34b78
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 2 additions & 4 deletions app/views/forem/admin/categories/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<h2><%= t("forem.admin.category.index") %></h2>

<menu>
<%= link_to t("forem.admin.category.new_link"), forem.new_admin_category_path, :class => "btn btn-primary" %>
</menu>
<%= link_to t('back_to_admin', :scope => "forem.admin"), forem.admin_root_path %><br><br>
<%= link_to t("forem.admin.category.new_link"), forem.new_admin_category_path, :class => "btn btn-primary" %><br><br>

<table id='forums' class='forums table-striped table' cellspacing='0'>
<thead>
Expand Down
2 changes: 1 addition & 1 deletion app/views/forem/admin/forums/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div>
<h2><%= t("forem.admin.forum.index") %></h2>

<%= link_to t('back_to_admin', :scope => "forem.admin"), forem.admin_root_path %><br><br>
<%= link_to t("forem.admin.forum.new_link"), forem.new_admin_forum_path, :class => "btn btn-primary" %>

<% @forums.group_by(&:category).each do |category, forums| %>
Expand Down
3 changes: 2 additions & 1 deletion app/views/forem/admin/groups/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<h2><%= t('forem.admin.group.index') %></h2>
<%= link_to t('back_to_admin', :scope => "forem.admin"), forem.admin_root_path %><br><br>
<%= link_to t('forem.admin.group.new'), forem.new_admin_group_path, :class => "btn btn-primary" %>

<table id='groups' class='index subdued table table-striped' cellspacing='0'>
<table id='groups' class='index table table-striped' cellspacing='0'>
<thead>
<tr>
<th><%= t('edit', :scope => 'forem.admin.groups') %></th>
Expand Down

0 comments on commit 0d34b78

Please sign in to comment.