source: contextchromeplugin/0.12/contextchrome/templates/genshi_prefs_userstyle.html

Last change on this file was 17535, checked in by matobaa, 4 years ago

ContextChromePlugin: support Trac 1.4+ by Jinja2 template

File size: 1.5 KB
Line 
1<!--! Copyright (C) 2017 MATOBA Akihiro <matobaa+trac-hacks@gmail.com>
2  This software is licensed as described in the file COPYING, which
3  you should have received as part of this distribution.
4-->
5<!DOCTYPE html
6    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
7    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
8<html xmlns="http://www.w3.org/1999/xhtml"
9      xmlns:py="http://genshi.edgewall.org/"
10      xmlns:i18n="http://genshi.edgewall.org/i18n"
11      xmlns:xi="http://www.w3.org/2001/XInclude">
12  <xi:include href="prefs.html" />
13  <head>
14    <title>User Style</title>
15  </head>
16  <body>
17    <p class="hint" i18n:msg="">Contents below will be injected on all pages.</p>
18 
19    <div class="fields">
20      <label>user stylesheet:</label><br/>
21      <p class="hint">your own stylesheet like:</p>
22      <blockquote class="code hint"><pre>a.owner_is_${req.authname or 'somebody'} {<br/>&nbsp;&nbsp;&nbsp;&nbsp;border: maroon thin solid;<br/>}</pre></blockquote>
23      <textarea rows="10" cols="80" name="userstyle">${userstyle or None}</textarea>
24    </div>
25    <br/>
26    <div class="fields">
27      <label>user script:</label><br/>
28      <p class="hint">your own script like:</p>
29      <blockquote class="code hint"><pre>document.addEventListener("DOMContentLoaded",function(){<br/>&nbsp;&nbsp;&nbsp;&nbsp;console.dir(this);<br/>});</pre></blockquote>
30      <textarea rows="10" cols="80" name="userscript">${userscript or None}</textarea>
31    </div>
32  </body>
33</html>
Note: See TracBrowser for help on using the repository browser.