diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-08-31 07:33:34 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-08-31 07:33:34 +0000 |
commit | 93080bd1bb61431b563f4b53d6beb91b592102d1 (patch) | |
tree | f1a8d02d33046a3888ca21c26d077a7b5b9a6bfb /app/helpers | |
parent | 768511f7cb5b78b267d69ae09e3329026d0f4f59 (diff) | |
download | redmine-93080bd1bb61431b563f4b53d6beb91b592102d1.tar.gz redmine-93080bd1bb61431b563f4b53d6beb91b592102d1.zip |
Replaces zoom-in and zoom-out icons with SVG icons in Gantt (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@22994 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/gantt_helper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/gantt_helper.rb b/app/helpers/gantt_helper.rb index 674e06053..d037dfeaa 100644 --- a/app/helpers/gantt_helper.rb +++ b/app/helpers/gantt_helper.rb @@ -23,21 +23,21 @@ module GanttHelper when :in if gantt.zoom < 4 link_to( - l(:text_zoom_in), + icon_with_label('zoom-in', l(:text_zoom_in)), {:params => request.query_parameters.merge(gantt.params.merge(:zoom => (gantt.zoom + 1)))}, :class => 'icon icon-zoom-in') else - content_tag(:span, l(:text_zoom_in), :class => 'icon icon-zoom-in').html_safe + content_tag(:span, icon_with_label('zoom-in', l(:text_zoom_in)), :class => 'icon icon-zoom-in').html_safe end when :out if gantt.zoom > 1 link_to( - l(:text_zoom_out), + icon_with_label('zoom-out', l(:text_zoom_out)), {:params => request.query_parameters.merge(gantt.params.merge(:zoom => (gantt.zoom - 1)))}, :class => 'icon icon-zoom-out') else - content_tag(:span, l(:text_zoom_out), :class => 'icon icon-zoom-out').html_safe + content_tag(:span, icon_with_label('zoom-out', l(:text_zoom_out)), :class => 'icon icon-zoom-out').html_safe end end end |