diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-03 06:26:17 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-03 06:26:17 -0400 |
| commit | 424de7561dcd1476c64f42f86af2a42fa2c39814 (patch) | |
| tree | 08d90c8e61385430c1b3b5ac79b22bb7c32a7167 /templates/mod/config-editor.html | |
| parent | eb3fc990f5f743d02e6474ca35405aebcab6c0e2 (diff) | |
Web config editor: board configs
Diffstat (limited to 'templates/mod/config-editor.html')
| -rw-r--r-- | templates/mod/config-editor.html | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/templates/mod/config-editor.html b/templates/mod/config-editor.html index 4200c116..a43f8cf7 100644 --- a/templates/mod/config-editor.html +++ b/templates/mod/config-editor.html @@ -1,10 +1,25 @@ +<p> + Any changes you make here will simply be appended to <code>{{ file }}</code>. If you wish to make the most of Tinyboard's customizability, you can instead edit the file directly. This page is intended for making quick changes and for those who don't have a basic understanding of PHP code. +</p> +{% if boards|count %} + <ul> + {% if board %} + <li><a href="?/config">Edit site-wide config</a></li> + {% endif %} + {% for _board in boards if _board.uri != board %} + <li> + <a href="?/config/{{ _board.uri }}">Edit config for {{ config.board_abbreviation|sprintf(_board.uri) }}</a> + </li> + {% endfor %} + </ul> +{% endif %} <form method="post" action=""> <table class="mod config-editor"> <tr> - <th class="minimal">Name</th> - <th>Value</th> - <th class="minimal">Type</th> - <th>Description</th> + <th class="minimal">{% trans 'Name' %}</th> + <th>{% trans 'Value' %}</th> + <th class="minimal">{% trans 'Type' %}</th> + <th>{% trans 'Description' %}</th> </tr> {% for var in conf if var.type != 'array' %} {% if var.name|count == 1 %} |
