Add the project name as a translation local var when rendering project invites.

GitOrigin-RevId: 80f4b10adc142173c2194f56c55df8b3ce9f948b
This commit is contained in:
Paulo Reis 2019-02-04 17:41:27 +00:00 committed by sharelatex
parent ef1bbba618
commit f902eb7d4a

View file

@ -12,7 +12,7 @@ span(ng-controller="NotificationsController").userNotifications
.alert.alert-info(ng-switch-when="notification_project_invite", ng-controller="ProjectInviteNotificationController")
div.notification_inner
.notification_body(ng-show="!notification.accepted")
| !{translate("notification_project_invite_message", { userName: "{{ userName }}" })}
| !{translate("notification_project_invite_message", { userName: "{{ userName }}", projectName: "{{ projectName }}" })}
a.pull-right.btn.btn-sm.btn-info(href, ng-click="accept()", ng-disabled="notification.inflight")
span(ng-show="!notification.inflight") #{translate("join_project")}
span(ng-show="notification.inflight")