OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#55581] provide hover card in news module
Tobias Dillmann3e7d8579b4ee
diff --git a/app/views/homescreen/blocks/_news.html.erb b/app/views/homescreen/blocks/_news.html.erbindex 54ec263adb5..2d5e1f7a337 100644--- a/app/views/homescreen/blocks/_news.html.erb+++ b/app/views/homescreen/blocks/_news.html.erb@@ -3,7 +3,9 @@<ul class="widget-box--arrow-links"><% @news.each do |news| %><li class="widget-box--arrow-multiline">- <%= avatar(news.author, class: 'widget-box--avatar news-author-avatar hidden-for-mobile') %>+ <%= avatar(news.author,+ class: 'widget-box--avatar news-author-avatar hidden-for-mobile',+ hover_card: { active: true }) %><div class="widget-box--project"><%= link_to_project(news.project) + ': ' %><%= link_to h(news.title), news_path(news) %>diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erbindex 968d66ba086..473d33ef94e 100644--- a/app/views/news/index.html.erb+++ b/app/views/news/index.html.erb@@ -58,7 +58,9 @@ See COPYRIGHT and LICENSE files for more details.<% if @newss.any? %><% @newss.each do |news| %><div class="news">- <h3 class="news--header"><%= avatar(news.author) %><%= link_to_project(news.project) + ': ' unless news.project == @project %>+ <h3 class="news--header">+ <%= avatar(news.author, hover_card: { active: true }) %>+ <%= link_to_project(news.project) + ': ' unless news.project == @project %><%= link_to h(news.title), news_path(news) %><%= "(#{t(:label_x_comments, count: news.comments_count)})" if news.comments_count > 0 %></h3><p class="author additional-information"><%= authoring news.created_at, news.author %></p>diff --git a/app/views/news/show.html.erb b/app/views/news/show.html.erbindex 6e6820b3def..95afb1927e9 100644--- a/app/views/news/show.html.erb+++ b/app/views/news/show.html.erb@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<%= toolbar title: "#{avatar(@news.author)} #{h @news.title}".html_safe do %>+<%= toolbar title: "#{avatar(@news.author, hover_card: { active: true })} #{h @news.title}".html_safe do %><% if User.current.allowed_in_project?(:manage_news, @project) %><li class="toolbar-item"><%= link_to(edit_news_path(@news),@@ -88,7 +88,9 @@ See COPYRIGHT and LICENSE files for more details.title: t(:button_delete),alt: t(:button_delete) %></div>- <h4 class="author additional-information"><%= avatar(comment.author) %><%= authoring comment.created_at, comment.author %></h4>+ <h4 class="author additional-information">+ <%= avatar(comment.author, hover_card: { active: true }) %><%= authoring comment.created_at, comment.author %>+ </h4><%= format_text(comment.comments, object: comment) %></div><% end %>