From 34b0d90310ce79b1c2c0547f9652ebf318c5852d Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 5 May 2016 17:06:08 -0300 Subject: [PATCH] Fix task count in user's header --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b2541f9..477e96a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -918,7 +918,7 @@ module ApplicationHelper pending_tasks_count = '' count = user ? Task.to(user).pending.count : -1 if count > 0 - pending_tasks_count = link_to("#{count}", user.tasks_url, :id => 'pending-tasks-count', :title => _("Manage your pending tasks")) + pending_tasks_count = link_to("#{count}".html_safe, user.tasks_url, :id => 'pending-tasks-count', :title => _("Manage your pending tasks")) end user_identifier = "#{user.identifier}" welcome_link = link_to(user_identifier.html_safe, user.public_profile_url, :id => "homepage-link", :title => _('Go to your homepage')) -- libgit2 0.21.2