From 424de7561dcd1476c64f42f86af2a42fa2c39814 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sat, 3 Aug 2013 06:26:17 -0400 Subject: Web config editor: board configs --- templates/mod/config-editor-php.html | 44 +++++++++++++++++++++++++----------- templates/mod/config-editor.html | 23 +++++++++++++++---- 2 files changed, 50 insertions(+), 17 deletions(-) (limited to 'templates') diff --git a/templates/mod/config-editor-php.html b/templates/mod/config-editor-php.html index 54c398e4..4f76b5dd 100644 --- a/templates/mod/config-editor-php.html +++ b/templates/mod/config-editor-php.html @@ -1,17 +1,35 @@ -{% if readonly %} -

Tinyboard does not have the required permissions to edit inc/instance-config.php. To make changes, you will need to change the file's permissions first or manually edit the code.

-{% endif %} - - -{% if not readonly %}
{% endif %} - +
+

+ Any changes you make here will simply be appended to {{ file }}. 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. +

+ {% if boards|count %} + + {% endif %} + + {% if readonly %} +

Tinyboard does not have the required permissions to edit {{ file }}. To make changes, you will need to change the file's permissions first or manually edit the code.

+ {% endif %} + -
    -
  • -
-{% if not readonly %}{% endif %} + {% if not readonly %}
{% endif %} + + +
    +
  • +
+ {% if not readonly %}
{% endif %} +