Fix problems with running redmine core tests
This commit is contained in:
parent
243c9d3c28
commit
0c8539caf3
2
init.rb
2
init.rb
@ -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
0
lib/redmine_tweaks.rb
Executable file → Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user