Skip to content

Commit 713c194

Browse files
author
root
committed
Add reminder for MailingList (like ProtectedBranch)
1 parent 5df2526 commit 713c194

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Diff for: app/views/repository_git_notifications/show.html.haml

+3
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,8 @@
6262
= from
6363
)
6464

65+
- if [email protected]_notification_enabled?
66+
%em= l(:git_notifications_reminder)
67+
6568
:javascript
6669
$(document).ready(function() { initModalBoxes(modals); });

Diff for: config/locales/models/repository_git_notification/en.yml

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ en:
2424
label_gitolite_notify_prefix: Mailing list prefix
2525
label_gitolite_notify_sender_address: Mailing list sender address
2626

27+
git_notifications_reminder: The mailing list above is not enabled. Please enable Mailing List in the repository settings above.
28+
2729
activerecord:
2830
errors:
2931
models:

Diff for: config/locales/models/repository_git_notification/fr.yml

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ fr:
2424
label_gitolite_notify_prefix: Préfixe de la liste de diffusion
2525
label_gitolite_notify_sender_address: Adresse de l'expéditeur de la liste de diffusion
2626

27+
git_notifications_reminder: La liste de diffusion n'est pas activée. Pour l'activer veuillez d'abord cocher la case "Activer la liste de diffusion" dans les paramètres du dépôt ci-dessus.
28+
2729
activerecord:
2830
errors:
2931
models:

0 commit comments

Comments
 (0)