diff options
Diffstat (limited to 'app/views/shared/milestones')
-rw-r--r-- | app/views/shared/milestones/_description.html.haml | 5 | ||||
-rw-r--r-- | app/views/shared/milestones/_header.html.haml | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/app/views/shared/milestones/_description.html.haml b/app/views/shared/milestones/_description.html.haml index 747e22f47ac..fc25c7e8f89 100644 --- a/app/views/shared/milestones/_description.html.haml +++ b/app/views/shared/milestones/_description.html.haml @@ -1,6 +1,11 @@ .detail-page-description.milestone-detail %h2.gl-m-0{ data: { qa_selector: "milestone_title_content" } } = markdown_field(milestone, :title) + .gl-font-sm.gl-text-secondary.gl-font-base.gl-font-weight-normal.gl-line-height-normal{ data: { qa_selector: 'milestone_id_content' }, itemprop: 'identifier' } + - if can?(current_user, :read_milestone, @milestone) + %span.gl-display-inline-block.gl-vertical-align-middle + = s_('MilestonePage|Milestone ID: %{milestone_id}') % { milestone_id: @milestone.id } + = clipboard_button(title: s_('MilestonePage|Copy milestone ID'), text: @milestone.id) - if milestone.try(:description).present? %div{ data: { qa_selector: "milestone_description_content" } } diff --git a/app/views/shared/milestones/_header.html.haml b/app/views/shared/milestones/_header.html.haml index 334785685d5..900c71675d9 100644 --- a/app/views/shared/milestones/_header.html.haml +++ b/app/views/shared/milestones/_header.html.haml @@ -1,6 +1,5 @@ .detail-page-header.milestone-page-header - .status-box{ class: status_box_class(milestone) } - = milestone_status_string(milestone) + = gl_badge_tag milestone_status_string(milestone), { variant: milestone_badge_variant(milestone) }, { class: 'gl-mr-3' } .header-text-content %span.identifier |