diff --git a/app/helpers/action_tracker_helper.rb b/app/helpers/action_tracker_helper.rb index 7d13a5b..b110bc4 100644 --- a/app/helpers/action_tracker_helper.rb +++ b/app/helpers/action_tracker_helper.rb @@ -15,11 +15,12 @@ module ActionTrackerHelper end def join_community_description ta - n_('has joined 1 community:
%{name}', 'has joined %{num} communities:
%{name}', ta.get_resource_name.size) % { + n_('has joined 1 community:
%{name}'.html_safe, 'has joined %{num} communities:
%{name}'.html_safe, ta.get_resource_name.size) % { num: ta.get_resource_name.size, name: ta.collect_group_with_index(:resource_name) do |n,i| - link_to image_tag(ta.get_resource_profile_custom_icon[i] || default_or_themed_icon("/images/icons-app/community-icon.png")), + link = link_to image_tag(ta.get_resource_profile_custom_icon[i] || default_or_themed_icon("/images/icons-app/community-icon.png")), ta.get_resource_url[i], title: n + link.html_safe end.join } end diff --git a/app/helpers/display_helper.rb b/app/helpers/display_helper.rb index f7494e6..97f3054 100644 --- a/app/helpers/display_helper.rb +++ b/app/helpers/display_helper.rb @@ -63,7 +63,7 @@ module DisplayHelper content = safe_join(href.gsub(/^https?:\/\//, '').scan(/.{1,4}/), '​'.html_safe) pre_char + content_tag(:a, content, :href => href, :target => '_blank', - :rel => 'nofolow', :onclick => "return confirm('%s')" % + :rel => 'nofolow', :onclick => "return confirm('%s')".html_safe % _('Are you sure you want to visit this web site?')) end ret.html_safe -- libgit2 0.21.2