Fix problems with running redmine core tests

This commit is contained in:
Alexander Meindl 2016-11-16 10:21:40 +01:00
parent 243c9d3c28
commit 0c8539caf3
3 changed files with 8 additions and 11 deletions

View File

@ -67,6 +67,4 @@ Redmine::Plugin.register :redmine_tweaks do
if: proc { User.current.logged? && !RedmineTweaks.settings[:remove_mypage] }
menu :admin_menu, :tweaks, { controller: 'settings', action: 'plugin', id: 'redmine_tweaks' }, caption: :label_tweaks
RedCloth3::ALLOWED_TAGS << 'div'
end

0
lib/redmine_tweaks.rb Executable file → Normal file
View File

View File

@ -37,18 +37,17 @@ module RedmineTweaks
user.name(options[:format].to_sym)
end
s = ''
s = []
if !options[:avatar].blank? && options[:avatar]
s = avatar(user, size: 14)
s << avatar(user, size: 14) + ' '
end
s.html_safe << if user.active?
link_to(h(name),
user_path(user),
class: user.css_classes)
else
h(name)
end
s << if user.active?
link_to(h(name), user_path(user), class: user.css_classes)
else
h(name)
end
safe_join(s)
end
end
end