Commit 60b56e2f4d5afcf3fdb8389fcbd311b098ce4d84

Authored by Victor Costa
1 parent 4096a035

Improve badges listing

public/admin.css
1 1 .gamification-plugin-rank-rules .template-level {
2 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 3 <h1><%= _('Gamification Settings: Listing Badges') %></h1>
2 4  
3   -<table>
  5 +<table class="gamification-plugin-badges">
4 6 <tr>
5 7 <th>Name</th>
6 8 <th>Title</th>
... ... @@ -12,7 +14,7 @@
12 14  
13 15 <% @gamification_plugin_badges.each do |owner, badges| %>
14 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 18 <% end %>
17 19 <% badges.each do |gamification_plugin_badge| %>
18 20 <tr>
... ...