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
Fix history icon for wiki and meeting (#44745)
Christophe Bliardbc7723580aa1
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erbindex df494016b3a..319818c9afd 100644--- a/app/views/wiki/show.html.erb+++ b/app/views/wiki/show.html.erb@@ -95,7 +95,7 @@ See COPYRIGHT and LICENSE files for more details.<%= li_unless_nil(link_to_if_authorized(t(:button_delete), {action: 'destroy', id: @page}, method: :delete, data: { confirm: t(:text_are_you_sure) }, class: 'icon-context icon-delete')) %><%= li_unless_nil(link_to_if_authorized(t(:button_rollback), {action: 'edit', id: @page, version: @content.version }, class: 'icon-context icon-cancel')) if @content.version < @page.content.version %><% end %>- <%= li_unless_nil(link_to_if_authorized(t(:label_history), {action: 'history', id: @page}, class: 'icon-context icon-wiki')) %>+ <%= li_unless_nil(link_to_if_authorized(t(:label_history), {action: 'history', id: @page}, class: 'icon-context icon-activity-history')) %><%= li_unless_nil(link_to_if_authorized(t(:button_manage_menu_entry), {controller: '/wiki_menu_items', action: 'edit', project_id: @project.identifier, id: @page}, class: 'icon-context icon-settings')) %><% if User.current.allowed_to?(:export_wiki_pages, @project) %><section data-augmented-model-wrapperdiff --git a/modules/meeting/app/helpers/meeting_contents_helper.rb b/modules/meeting/app/helpers/meeting_contents_helper.rbindex 19b902fc95f..7d091e34186 100644--- a/modules/meeting/app/helpers/meeting_contents_helper.rb+++ b/modules/meeting/app/helpers/meeting_contents_helper.rb@@ -71,8 +71,7 @@ module MeetingContentsHelpermethod: :put,data: { confirm: I18n.t(:text_meeting_closing_are_you_sure) },class: 'meetings--close-meeting-button button') do- op_icon('button--icon icon-locked') +- content_tag('span', I18n.t(:label_meeting_close), class: 'button--text')+ text_with_icon(I18n.t(:label_meeting_close), 'icon-locked')endendwhen 'meeting_minutes'@@ -82,8 +81,7 @@ module MeetingContentsHelpermeeting_id: meeting },method: :put,class: 'button') do- op_icon('button--icon icon-locked') +- content_tag('span', I18n.t(:label_meeting_agenda_close), class: 'button--text')+ text_with_icon(I18n.t(:label_meeting_agenda_close), 'icon-locked')endendend@@ -99,8 +97,7 @@ module MeetingContentsHelpermethod: :put,class: 'button',data: { confirm: I18n.t(:text_meeting_agenda_open_are_you_sure) }) do- op_icon('button--icon icon-unlocked') +- content_tag('span', I18n.t(:label_meeting_open), class: 'button--text')+ text_with_icon(I18n.t(:label_meeting_open), 'icon-unlocked')endendend@@ -111,8 +108,7 @@ module MeetingContentsHelperclass: 'button button--edit-agenda',data: { 'content-type': content_type },accesskey: accesskey(:edit) do- op_icon('button--icon icon-edit') +- content_tag('span', I18n.t(:label_edit), class: 'button--text')+ text_with_icon(I18n.t(:label_edit), 'icon-edit')endendend@@ -125,8 +121,7 @@ module MeetingContentsHelperaria: { label: t(:label_history) },title: t(:label_history),class: 'button') do- op_icon('button--icon icon-wiki') +- content_tag('span', I18n.t(:label_history), class: 'button--text')+ text_with_icon(I18n.t(:label_history), 'icon-activity-history')endendend@@ -137,8 +132,7 @@ module MeetingContentsHelperaction: 'notify', meeting_id: meeting },method: :put,class: 'button') do- op_icon('button--icon icon-mail1') +- content_tag('span', I18n.t(:label_notify), class: 'button--text')+ text_with_icon(I18n.t(:label_notify), 'icon-mail1')endendend@@ -149,9 +143,14 @@ module MeetingContentsHelperaction: 'icalendar', meeting_id: meeting },method: :put,class: 'button') do- op_icon('button--icon icon-calendar2') +- content_tag('span', I18n.t(:label_icalendar), class: 'button--text')+ text_with_icon(I18n.t(:label_icalendar), 'icon-calendar2')endendend++ def text_with_icon(text, icon)+ op_icon("button--icon #{icon}") + # rubocop:disable Style/StringConcatenation+ ' ' ++ content_tag('span', text, class: 'button--text')+ endend