Commit 60b56e2f4d5afcf3fdb8389fcbd311b098ce4d84

Authored by Victor Costa
1 parent 4096a035

Improve badges listing

public/admin.css
1 .gamification-plugin-rank-rules .template-level { 1 .gamification-plugin-rank-rules .template-level {
2 display: none !important; 2 display: none !important;
3 } 3 }
  4 +
  5 +.gamification-plugin-badges .badge-owner-group {
  6 + text-align: right;
  7 + color: gray;
  8 + font-weight: bold;
  9 +}
views/gamification_plugin_badges/index.html.erb
  1 +<%= stylesheet_link_tag 'plugins/gamification/admin.css' %>
  2 +
1 <h1><%= _('Gamification Settings: Listing Badges') %></h1> 3 <h1><%= _('Gamification Settings: Listing Badges') %></h1>
2 4
3 -<table> 5 +<table class="gamification-plugin-badges">
4 <tr> 6 <tr>
5 <th>Name</th> 7 <th>Name</th>
6 <th>Title</th> 8 <th>Title</th>
@@ -12,7 +14,7 @@ @@ -12,7 +14,7 @@
12 14
13 <% @gamification_plugin_badges.each do |owner, badges| %> 15 <% @gamification_plugin_badges.each do |owner, badges| %>
14 <% if owner.present? %> 16 <% if owner.present? %>
15 - <tr><th colspan="6"><%= _("Badges for:") %> <%= owner.name %></th></tr> 17 + <tr><td class="badge-owner-group" colspan="6"><%= _("Badges for:") %> <%= owner.name %></td></tr>
16 <% end %> 18 <% end %>
17 <% badges.each do |gamification_plugin_badge| %> 19 <% badges.each do |gamification_plugin_badge| %>
18 <tr> 20 <tr>