diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-09-02 20:47:55 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-09-02 20:47:55 +0000 |
commit | bcb9a1cd3347031884474cf8c5de153e43964a9e (patch) | |
tree | cf40259c52e3b58c2396545fcc6ec1ab400522b4 /app/helpers | |
parent | d24d11a6825eda4e4efee455e2aafff01a16616a (diff) | |
download | redmine-bcb9a1cd3347031884474cf8c5de153e43964a9e.tar.gz redmine-bcb9a1cd3347031884474cf8c5de153e43964a9e.zip |
Replaces icon-folder and icon-folder-open in repository view with SVG icons (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23010 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/icons_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb index d82a74611..b9b25c0ba 100644 --- a/app/helpers/icons_helper.rb +++ b/app/helpers/icons_helper.rb @@ -25,6 +25,12 @@ module IconsHelper sprite_icon(icon_name) + content_tag(:span, label_text, class: "icon-label") end + def icon_for_file(entry, label_text) + if entry.is_dir? + icon_with_label("folder", label_text) + end + end + def sprite_icon(icon_name, size: DEFAULT_ICON_SIZE, sprite: DEFAULT_SPRITE) sprite_path = "#{sprite}.svg" |