<%= _('Gamification Settings: Show Badge') %>

<%= notice %>

Name: <%= @gamification_plugin_badge.name %>

Title: <%= @gamification_plugin_badge.title %>

Description: <%= @gamification_plugin_badge.description %>

Level: <%= @gamification_plugin_badge.level %>

<% if @gamification_plugin_badge.owner.kind_of?(Organization) %>

<%= _('Profile owner:') %> <%= @gamification_plugin_badge.owner.name %>

<% end %>

Threshold: <% if @gamification_plugin_badge.custom_fields.is_a? Hash %> <% @gamification_plugin_badge.custom_fields.keys.each do |key| %>

<%= _(key) + ': ' + @gamification_plugin_badge.custom_fields[key].fetch("threshold", "") %>
<% end %> <% end %>

<%= link_to 'Edit', :action => :edit, :id => @gamification_plugin_badge.id %> | <%= link_to 'Back', :action => :index %>