Commit 9bd32efd3feaf392badb3067678474b2e8404daf
1 parent
76a472db
Exists in
master
and in
1 other branch
Adjust new threshold location on badges
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
views/gamification_plugin_badges/_form.html.erb
views/gamification_plugin_badges/show.html.erb
| ... | ... | @@ -24,7 +24,10 @@ |
| 24 | 24 | |
| 25 | 25 | <p> |
| 26 | 26 | <b>Threshold:</b> |
| 27 | - <%= @gamification_plugin_badge.threshold %> | |
| 27 | + <% @gamification_plugin_badge.custom_fields.is_a? Hash %> | |
| 28 | + <% @gamification_plugin_badge.custom_fields.keys.each do |key| %> | |
| 29 | + <div><%= _(key) + ': ' + @gamification_plugin_badge.custom_fields[key].fetch("threshold", "") %></div> | |
| 30 | + <% end %> | |
| 28 | 31 | </p> |
| 29 | 32 | |
| 30 | 33 | ... | ... |