diff options
author | Go MAEDA <maeda@farend.jp> | 2024-05-15 23:46:12 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-05-15 23:46:12 +0000 |
commit | a8732b87e9f7c14af2617364e597461e4035ed1e (patch) | |
tree | 141255954b3cc3abdb708642da8c5b99d7c8e885 /app/helpers/projects_queries_helper.rb | |
parent | 707e4de168586ec7455e2517447f1658c2d4c88f (diff) | |
download | redmine-a8732b87e9f7c14af2617364e597461e4035ed1e.tar.gz redmine-a8732b87e9f7c14af2617364e597461e4035ed1e.zip |
Merged r22829 from trunk to 5.0-stable (#40610).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22832 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/projects_queries_helper.rb')
-rw-r--r-- | app/helpers/projects_queries_helper.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/helpers/projects_queries_helper.rb b/app/helpers/projects_queries_helper.rb index 331957651..dc540a432 100644 --- a/app/helpers/projects_queries_helper.rb +++ b/app/helpers/projects_queries_helper.rb @@ -27,7 +27,13 @@ module ProjectsQueriesHelper (tag.span(class: 'icon icon-user my-project', title: l(:label_my_projects)) if User.current.member_of?(item)) + (tag.span(class: 'icon icon-bookmarked-project', title: l(:label_my_bookmarks)) if User.current.bookmarked_project_ids.include?(item.id)) when :short_description - item.description? ? content_tag('div', textilizable(item, :short_description), :class => "wiki") : '' + if item.description? + # Sets :inline_attachments to false to avoid performance issues + # caused by unnecessary loading of attachments + content_tag('div', textilizable(item, :short_description, :inline_attachments => false), :class => 'wiki') + else + '' + end when :homepage item.homepage? ? content_tag('div', textilizable(item, :homepage), :class => "wiki") : '' when :status |