source: announcerplugin/trunk/announcer/templates/prefs_announcer_manage_subscriptions.html

Last change on this file was 16893, checked in by Ryan J Ollos, 6 years ago

TracAnnouncer 1.2.0dev: Use Trac 1.2 API

The plugin is loading and basic functionality is working
when the Trac notification system is disabled. Some of the
optional components may not yet be functional.

This is incremental progress towards removing the components
that have been added to Trac in release 1.2.

Refs #12120.

File size: 3.8 KB
Line 
1<!DOCTYPE html
2    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml"
5      xmlns:xi="http://www.w3.org/2001/XInclude"
6      xmlns:py="http://genshi.edgewall.org/"
7      xmlns:i18n="http://genshi.edgewall.org/i18n"
8      i18n:domain="announcer">
9  <xi:include href="prefs.html" />
10  <head>
11    <title>Announcements</title>
12  </head>
13  <body>
14    <p>
15      Announcements serve as a method for Trac to communicate events to you;
16      the creation of a ticket, the change of a Wiki page, and so on. Under
17      the Announcement system, you will only receive notifications to those
18      topics that you subscribe to.
19    </p>
20    <div class="announcer_preference_box">
21      <div py:for="distributor, rules in data['rules'].iteritems()" class="ruleset">
22          <div class="announcer_preference_title">
23              ${distributor} rules
24          </div>
25          <div class="announcer_preference_options">
26              Custom Rules:
27              <py:if test="rules">
28                  <div>
29                      Format:
30                      <select name="format-${distributor}">
31                          <option py:for="f in data['formatters']" value="${f}" selected="${(f == data['selected_format'][distributor]) or None}">${f}</option>
32                      </select><button type="submit" name="method" value="set-format_${distributor}">Save</button>
33                  </div>
34                  <div>
35                    <ul>
36                      <li py:for="rule in rules" class="rule">
37                        ${rule['adverb']} ${rule['description']} <button type="submit" name="method" value="delete-rule_${rule['id']}">Delete</button><button type="submit" name="method" value="move-rule_${rule['id']}-${rule['priority']+1}">down</button><button type="submit" name="method" value="move-rule_${rule['id']}-${rule['priority']-1}">up</button>
38                      </li>
39                    </ul>
40                  </div>
41              </py:if>
42              <div class="add_rule">
43                  <div>
44                      <select name="new-adverb-${distributor}">
45                          <option py:for="a in data['adverbs']" value="${a}">${a}</option>
46                      </select>
47                      <select name="new-rule-${distributor}">
48                          <option py:for="s in data['subscribers']" value="${s['class']}">${s['description']}</option>
49                      </select><button type="submit" name="method" value="add-rule_${distributor}">Add</button>
50                  </div>
51              </div>
52              <py:if test="data['default_rules'][distributor]">
53                  <hr/>
54                  <div>
55                      Default Rules:
56                      <p><em>The following rules have been configured by the system admistrator as the default rules.  Any rules defined by you will take higher priority then these rules.  This can be confusing if you don't understand how the system works.  Only the first matching rule is applied when system events occur.  For example, if you have a rule like "always notify me of any ticket changes" in your custom rules, and there is a default rule "never notify me when I update a ticket", then the always rule will take precedent and you will still recieve announcements on ticket changes, even when you are the updater.  In the preceding case, you would need to add your own "never notify me.." rule above the "always notify me.." to get the proper behavior.</em></p>
57                      <ul>
58                          <li py:for="rule in data['default_rules'][distributor]" class="default_rule">
59                          ${rule['adverb']} ${rule['description']}</li>
60                      </ul>
61                  </div>
62              </py:if>
63          </div>
64      </div>
65    </div>
66  </body>
67</html>
68
69
Note: See TracBrowser for help on using the repository browser.