summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-08-30 15:50:22 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-08-30 15:50:22 +0000
commitdc68230e05ea1564bec115ef03e1645de32be60f (patch)
tree1afa83b1ec11e0204e65321c97ab6874dc1eb13a /app/helpers
parent6b327b8852f86d87195609c754bfc7f1ec654159 (diff)
downloadredmine-dc68230e05ea1564bec115ef03e1645de32be60f.tar.gz
redmine-dc68230e05ea1564bec115ef03e1645de32be60f.zip
Fixes more tests.
git-svn-id: https://svn.redmine.org/redmine/trunk@22991 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/journals_helper.rb8
-rw-r--r--app/helpers/watchers_helper.rb2
2 files changed, 5 insertions, 5 deletions
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,