diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-16 15:10:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-16 15:10:15 +0300 |
commit | 591b0e86e3dbaa31b68340a14dc32859306a27b1 (patch) | |
tree | 48f44f6a1de3fe9f38d314bf95988bc6efc527c4 /app/presenters/alert_management | |
parent | 984357420ab0a91e8c73f04393a83b5ade63b460 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters/alert_management')
-rw-r--r-- | app/presenters/alert_management/alert_presenter.rb | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/app/presenters/alert_management/alert_presenter.rb b/app/presenters/alert_management/alert_presenter.rb index 231e90163be..5debe6d5dbd 100644 --- a/app/presenters/alert_management/alert_presenter.rb +++ b/app/presenters/alert_management/alert_presenter.rb @@ -46,7 +46,7 @@ module AlertManagement def issue_summary_markdown <<~MARKDOWN.chomp #{metadata_list} - #{alert_details}#{metric_embed_for_alert} + #{metric_embed_for_alert} MARKDOWN end @@ -65,23 +65,6 @@ module AlertManagement metadata.join(MARKDOWN_LINE_BREAK) end - def alert_details - if details.present? - <<~MARKDOWN.chomp - - #### Alert Details - - #{details_list} - MARKDOWN - end - end - - def details_list - details - .map { |label, value| list_item(label, value) } - .join(MARKDOWN_LINE_BREAK) - end - def metric_embed_for_alert "\n[](#{metrics_dashboard_url})" if metrics_dashboard_url end |