diff options
author | Gustav Ernberg <gustav@exceed-it.se> | 2017-05-29 22:18:09 +0200 |
---|---|---|
committer | Gustav Ernberg <gustav@exceed-it.se> | 2017-06-03 17:06:44 +0200 |
commit | a048e4a4717f71ecf1a1780d55639b029be5d71e (patch) | |
tree | 36a786adae330f315f56b521bdff8fc161db4b9a /app/views/sent_notifications | |
parent | 3ad3f906d97c0cb2e3d91f04e8dd100937421420 (diff) | |
download | gitlab-ce-a048e4a4717f71ecf1a1780d55639b029be5d71e.tar.gz |
Fixed style on unsubscribe page
Removed unnecassary logic
Added missing 'the'
Fix case
Fixed specs
Diffstat (limited to 'app/views/sent_notifications')
-rw-r--r-- | app/views/sent_notifications/unsubscribe.html.haml | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/views/sent_notifications/unsubscribe.html.haml b/app/views/sent_notifications/unsubscribe.html.haml index 9ce6a1aeef5..de52fd00157 100644 --- a/app/views/sent_notifications/unsubscribe.html.haml +++ b/app/views/sent_notifications/unsubscribe.html.haml @@ -1,16 +1,14 @@ - noteable = @sent_notification.noteable -- noteable_type = @sent_notification.noteable_type.humanize(capitalize: false) +- noteable_type = @sent_notification.noteable_type.titleize.downcase - noteable_text = %(#{noteable.title} (#{noteable.to_reference})) - -- page_title "Unsubscribe", noteable_text, @sent_notification.noteable_type.humanize.pluralize, @sent_notification.project.name_with_namespace - +- page_title "Unsubscribe", noteable_text, noteable_type.pluralize, @sent_notification.project.name_with_namespace %h3.page-title - Unsubscribe from #{noteable_type} #{noteable_text} + Unsubscribe from #{noteable_type} %p = succeed '?' do - Are you sure you want to unsubscribe from #{noteable_type} + Are you sure you want to unsubscribe from the #{noteable_type}: = link_to noteable_text, url_for([@sent_notification.project.namespace.becomes(Namespace), @sent_notification.project, noteable]) %p |