Просмотр исходного кода

add notification to confirm unconfirmed emails

hugh-obrien 8 лет назад
Родитель
Сommit
e343c04423
1 измененных файлов с 19 добавлено и 0 удалено
  1. 19 0
      services/web/app/views/project/list/notifications.pug

+ 19 - 0
services/web/app/views/project/list/notifications.pug

@@ -22,6 +22,25 @@ if hasFeature('v2-banner')
 										span(aria-hidden="true") ×
 										span(aria-hidden="true") ×
 										span.sr-only #{translate("close")}
 										span.sr-only #{translate("close")}
 
 
+.userNotifications
+	ul.list-unstyled.notifications-list(
+		ng-controller="UserAffiliationsController",
+		ng-cloak
+	)
+		li.notification_entry(
+			ng-repeat="userEmail in userEmails",
+      ng-if="!userEmail.confirmedAt"
+		)
+			.row
+				.col-xs-12
+					.alert.alert-danger
+						.notification_inner
+							| Please confirm your email {{userEmail.email}} by clicking on the link in the confirmation email 
+							a(
+								href,
+								ng-click="resendConfirmationEmail(userEmail)"
+							) (#{translate('resend_confirmation_email')})
+
 span(ng-controller="NotificationsController").userNotifications
 span(ng-controller="NotificationsController").userNotifications
 	ul.list-unstyled.notifications-list(
 	ul.list-unstyled.notifications-list(
 		ng-if="notifications.length > 0",
 		ng-if="notifications.length > 0",