From dc68230e05ea1564bec115ef03e1645de32be60f Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Fri, 30 Aug 2024 15:50:22 +0000 Subject: Fixes more tests. git-svn-id: https://svn.redmine.org/redmine/trunk@22991 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/journals_helper.rb | 8 ++++---- app/helpers/watchers_helper.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'app/helpers') diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb index c3ba50180..e51207e0e 100644 --- a/app/helpers/journals_helper.rb +++ b/app/helpers/journals_helper.rb @@ -34,7 +34,7 @@ module JournalsHelper dropbown_links << link_to(icon_with_label('download', l(:label_download_all_attachments)), container_attachments_download_path(journal), :title => l(:label_download_all_attachments), - :class => 'icon icon-download ' + :class => 'icon icon-download' ) end @@ -45,7 +45,7 @@ module JournalsHelper :remote => true, :method => 'post', :title => l(:button_quote), - :class => 'icon-only icon-comment ' + :class => 'icon-only icon-comment' ) end if journal.editable_by?(User.current) @@ -54,14 +54,14 @@ module JournalsHelper :remote => true, :method => 'get', :title => l(:button_edit), - :class => 'icon-only icon-edit ' + :class => 'icon-only icon-edit' ) dropbown_links << link_to(icon_with_label('del', l(:button_delete)), journal_path(journal, :journal => {:notes => ""}), :remote => true, :method => 'put', :data => {:confirm => l(:text_are_you_sure)}, - :class => 'icon icon-del ' + :class => 'icon icon-del' ) end end diff --git a/app/helpers/watchers_helper.rb b/app/helpers/watchers_helper.rb index 2071879e3..c800e4c96 100644 --- a/app/helpers/watchers_helper.rb +++ b/app/helpers/watchers_helper.rb @@ -26,7 +26,7 @@ module WatchersHelper watched = Watcher.any_watched?(objects, user) icon = watched ? 'fav' : 'fav-off' - css = [watcher_css(objects), '', 'icon', icon].join(' ') + css = [watcher_css(objects), 'icon', "icon-#{icon}"].join(' ') text = watched ? l(:button_unwatch) : l(:button_watch) url = watch_path( :object_type => objects.first.class.to_s.underscore, -- cgit v1.2.3