Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustav Ernberg <gustav@exceed-it.se>2017-05-29 23:18:09 +0300
committerGustav Ernberg <gustav@exceed-it.se>2017-06-03 18:06:44 +0300
commita048e4a4717f71ecf1a1780d55639b029be5d71e (patch)
tree36a786adae330f315f56b521bdff8fc161db4b9a /app/views/sent_notifications
parent3ad3f906d97c0cb2e3d91f04e8dd100937421420 (diff)
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.haml10
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