products/CPSSubscriptions

changeset 1068:e91bfc6740e4 CPS-3.5

#2049: new action, not visible yet
author Georges Racinet on ishtar.racinet.fr <georges@racinet.fr>
date Sun, 02 Oct 2011 12:50:30 +0200
parents 2da7f1862eee
children 292786ddfaf0
files i18n/all.pot i18n/custom.pot i18n/en.po i18n/fr.po profiles/default/actionicons.xml profiles/default/actions.xml skins/cps_subscriptions/folder_notifications_recipients.pt
diffstat 7 files changed, 33 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/i18n/all.pot
     1.2 +++ b/i18n/all.pot
     1.3 @@ -760,6 +760,9 @@
     1.4  msgid "action_folder_notifications"
     1.5  msgstr ""
     1.6  
     1.7 +msgid "action_folder_notifications_recipients"
     1.8 +msgstr ""
     1.9 +
    1.10  msgid "action_my_subscriptions"
    1.11  msgstr ""
    1.12  
     2.1 --- a/i18n/custom.pot
     2.2 +++ b/i18n/custom.pot
     2.3 @@ -140,6 +140,9 @@
     2.4  msgid "action_folder_notifications"
     2.5  msgstr ""
     2.6  
     2.7 +msgid "action_folder_notifications_recipients"
     2.8 +msgstr ""
     2.9 +
    2.10  msgid "action_my_subscriptions"
    2.11  msgstr ""
    2.12  
     3.1 --- a/i18n/en.po
     3.2 +++ b/i18n/en.po
     3.3 @@ -782,6 +782,9 @@
     3.4  msgid "action_folder_notifications"
     3.5  msgstr "Manage notifications"
     3.6  
     3.7 +msgid "action_folder_notifications_recipients"
     3.8 +msgstr "Notified people"
     3.9 +
    3.10  msgid "action_my_subscriptions"
    3.11  msgstr "My subscriptions"
    3.12  
     4.1 --- a/i18n/fr.po
     4.2 +++ b/i18n/fr.po
     4.3 @@ -788,6 +788,9 @@
     4.4  msgid "action_folder_notifications"
     4.5  msgstr "Gérer les alertes"
     4.6  
     4.7 +msgid "action_folder_notifications_recipients"
     4.8 +msgstr "Personnes alertées"
     4.9 +
    4.10  msgid "action_my_subscriptions"
    4.11  msgstr "Mes abonnements"
    4.12  
     5.1 --- a/profiles/default/actionicons.xml
     5.2 +++ b/profiles/default/actionicons.xml
     5.3 @@ -6,6 +6,9 @@
     5.4   <action-icon category="folder" action_id="folder_subscribe"
     5.5  	      title="Folder subscription" priority="320"
     5.6  	      icon_expr="actionicon_subscriptions.png"/>
     5.7 + <action-icon category="folder" action_id="folder_notifications_recipients"
     5.8 +	      title="Notification Recipients" priority="295"
     5.9 +	      icon_expr="actionicon_alerts_recipients.png"/>
    5.10   <action-icon category="folder" action_id="folder_notifications"
    5.11  	      title="Manage notifications" priority="300"
    5.12  	      icon_expr="actionicon_manage_alerts.png"/>
     6.1 --- a/profiles/default/actions.xml
     6.2 +++ b/profiles/default/actions.xml
     6.3 @@ -7,6 +7,14 @@
     6.4       url_expr="string:${object_url}/folder_notifications_form" visible="True">
     6.5     <permission>Manage Subscriptions</permission>
     6.6    </action>
     6.7 +  <action title="action_folder_notifications_recipients"
     6.8 +	  action_id="folder_notifications_recipients"
     6.9 +     category="folder"
    6.10 +     condition_expr="python:hasattr(object, 'portal_type') and object.portal_type in portal.portal_subscriptions.getContainerPortalTypes()"
    6.11 +     url_expr="string:${object_url}/folder_notifications_recipients"
    6.12 +     visible="False">
    6.13 +   <permission>View Subscriptions</permission>
    6.14 +  </action>
    6.15    <action title="action_my_subscriptions" action_id="my_subscriptions"
    6.16       category="user"
    6.17       condition_expr="python:not portal.portal_membership.isAnonymousUser()"
     7.1 new file mode 100644
     7.2 --- /dev/null
     7.3 +++ b/skins/cps_subscriptions/folder_notifications_recipients.pt
     7.4 @@ -0,0 +1,10 @@
     7.5 +<metal:block use-macro="here/main_template/macros/master">
     7.6 + <metal:block fill-slot="header">
     7.7 +  <h1 i18n:translate="heading_all_subscribers">
     7.8 +   All Subscribers
     7.9 +  </h1>
    7.10 + </metal:block>
    7.11 + <metal:block fill-slot="main">
    7.12 +  <metal:block use-macro="here/subscriptions_lib_display_detailed_recipients/macros/display" />
    7.13 + </metal:block>
    7.14 +</metal:block>