Skip to content
Snippets Groups Projects
Commit 5f576200 authored by Victor Ghita's avatar Victor Ghita
Browse files

Fixed requested changes

parent b231d291
No related branches found
No related tags found
2 merge requests!77Deploy Custom Badges,!76Custom Badges
......@@ -85,7 +85,7 @@ class BadgesController < ApplicationController
end
if @user_badge.save
content = "You have been awarded a new custom badge '#{@user_badge.badge.title}'!"
content = "You have been awarded a new badge: '#{@user_badge.badge.title}'!"
link = Rails.application.routes.path_for(controller: 'users', action: 'awarded_badges',
id: @user.id)
@user.create_notification(content, link)
......
......@@ -13,7 +13,7 @@
<%= f.label :badge, 'Select Badge', class: 'form-element' %>
<span class="form-caption">
Select which badge should be awarded. In case you want to create a new badge, you can do so
<%= link_to "here", new_badge_path, class: 'link is-underlined', 'aria-label': 'Add new badge' %>
<%= link_to "here", new_badge_path, class: 'link is-underlined', target: "_blank", 'aria-label': 'Add new badge' %>
</span>
<%= f.select :badge, options_for_select(Badge.where(:manually_awardable => true).mapping.to_a, selected: []),
{ include_blank: false }, multiple: false, class: 'form-element' %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment