show.html.erb
963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<h1><%= _('Gamification Settings: Show Badge') %></h1>
<p id="notice"><%= notice %></p>
<p>
<b>Name:</b>
<%= @gamification_plugin_badge.name %>
</p>
<p>
<b>Title:</b>
<%= @gamification_plugin_badge.title %>
</p>
<p>
<b>Description:</b>
<%= @gamification_plugin_badge.description %>
</p>
<p>
<b>Level:</b>
<%= @gamification_plugin_badge.level %>
</p>
<% if @gamification_plugin_badge.owner.kind_of?(Organization) %>
<p>
<b><%= _('Profile owner:') %></b>
<%= @gamification_plugin_badge.owner.name %>
</p>
<% end %>
<p>
<b>Threshold:</b>
<% if @gamification_plugin_badge.custom_fields.is_a? Hash %>
<% @gamification_plugin_badge.custom_fields.keys.each do |key| %>
<div><%= _(key) + ': ' + @gamification_plugin_badge.custom_fields[key].fetch("threshold", "") %></div>
<% end %>
<% end %>
</p>
<%= link_to 'Edit', :action => :edit, :id => @gamification_plugin_badge.id %> |
<%= link_to 'Back', :action => :index %>