From 78f3ea783394dba14b51b27f7f2db3974ce8b8b3 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Fri, 13 Apr 2012 09:29:08 +1000 Subject: View IP adress page, ban form. --- templates/mod/ban_form.html | 59 ++++++++++++++++++++++++++++++++ templates/mod/dashboard.html | 81 ++++++++++++++++++++++++++++++++++++++++++++ templates/mod/login.html | 26 ++++++++++++++ templates/mod/view_ip.html | 18 ++++++++++ 4 files changed, 184 insertions(+) create mode 100644 templates/mod/ban_form.html create mode 100644 templates/mod/dashboard.html create mode 100644 templates/mod/login.html create mode 100644 templates/mod/view_ip.html (limited to 'templates') diff --git a/templates/mod/ban_form.html b/templates/mod/ban_form.html new file mode 100644 index 00000000..1b94e725 --- /dev/null +++ b/templates/mod/ban_form.html @@ -0,0 +1,59 @@ +
+ {% if redirect %} + + {% endif %} + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + + (eg. "2d1h30m" or "2 days")
Board +
    +
  • + + +
  • + + {% for board in boards %} +
  • + + +
  • + {% endfor %} +
+
+
+ diff --git a/templates/mod/dashboard.html b/templates/mod/dashboard.html new file mode 100644 index 00000000..2a90d709 --- /dev/null +++ b/templates/mod/dashboard.html @@ -0,0 +1,81 @@ +
+ Boards + + +
+ +{% if mod|hasPermission(config.mod.noticeboard) %} +
+ Noticeboard + + {# TODO #} +
+{% endif %} + +
+ Administration + + +
+ +{% if mod|hasPermission(config.mod.themes) %} +
+ Themes + + {# TODO #} +
+{% endif %} + +
+ Search + + {# TODO #} +
diff --git a/templates/mod/login.html b/templates/mod/login.html new file mode 100644 index 00000000..5ac308a3 --- /dev/null +++ b/templates/mod/login.html @@ -0,0 +1,26 @@ +{% if error %}

{{ error }}

{% endif %} +
+ + + + + + + + + + + + +
+ {% trans %}Username{% endtrans %} + + +
+ {% trans %}Password{% endtrans %} + + +
+ +
+
diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html new file mode 100644 index 00000000..3b558e4b --- /dev/null +++ b/templates/mod/view_ip.html @@ -0,0 +1,18 @@ +{% for board_posts in posts %} +
+ + {{ config.board_abbreviation|sprintf(board_posts.board.uri) }} + - + {{ board_posts.board.title }} + + {{ board_posts.posts|join('
') }} +
+{% endfor %} + +{% set redirect = '?/IP/' ~ ip %} + +
+ New ban + {% include 'mod/ban_form.html' %} +
+ -- cgit v1.3