| Line | |
|---|
| 1 | {# Copyright (C) 2019 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 | # extends 'prefs.html' |
|---|
| 6 | <!DOCTYPE html> |
|---|
| 7 | <html> |
|---|
| 8 | <head> |
|---|
| 9 | <title> |
|---|
| 10 | # block preftitle |
|---|
| 11 | ${_("User Style")} |
|---|
| 12 | # endblock preftitle |
|---|
| 13 | </title> |
|---|
| 14 | </head> |
|---|
| 15 | <body> |
|---|
| 16 | # block prefpanel |
|---|
| 17 | <p class="hint">Contents below will be injected on all pages.</p> |
|---|
| 18 | |
|---|
| 19 | <div class="field"> |
|---|
| 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/> 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="field"> |
|---|
| 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/> console.dir(this);<br/>});</pre></blockquote> |
|---|
| 30 | <textarea rows="10" cols="80" name="userscript">${userscript or None}</textarea> |
|---|
| 31 | </div> |
|---|
| 32 | # endblock prefpanel |
|---|
| 33 | </body> |
|---|
| 34 | </html> |
|---|
Note: See
TracBrowser
for help on using the repository browser.