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

Last change on this file was 16128, checked in by Ryan J Ollos, 7 years ago

1.0dev: Remove compatibility code and conform to PEP8

Refs #12120.

File size: 1.3 KB
Line 
1<span xmlns="http://www.w3.org/1999/xhtml"
2     xmlns:xi="http://www.w3.org/2001/XInclude" id="announcer_rules"
3     xmlns:py="http://genshi.edgewall.org/"
4     xmlns:i18n="http://genshi.edgewall.org/i18n"
5     i18n:domain="announcer">
6  <p>
7    The rule-based subscription module is for advanced users, and allows you to use filters to specify which events you are interested in hearing about.
8  </p>
9  <p i18n:msg="">
10    Every rule is in the form of:
11    <div class="syntax">
12      <span class="realm">realm</span>, <span class="category">category</span>: <span class="rule">query rule</span>
13    </div>
14  </p>
15  <div py:for="rulenum, rule in enumerate(rules)" style="padding: 0.5em">
16      <input type="hidden" name="rule_${rulenum}_id" value="${rule['id']}" />
17      <input type="checkbox" name="rule_${rulenum}_enabled" checked="${rule['enabled']}" value="1" />
18      <select name="rule_${rulenum}_category">
19        <optgroup label="${realm.capitalize()}" py:for="realm in categories">
20          <option value="${realm}:${category}" py:for="category in categories[realm]" selected="${rule['category'] == category or None}">${realm.capitalize()}, ${category.capitalize()}</option>
21        </optgroup>
22      </select>
23      <input type="text" name="rule_${rulenum}_rule" value="${rule['value']}" style="width:99%" />
24  </div>
25
26</span>
Note: See TracBrowser for help on using the repository browser.