aboutsummaryrefslogtreecommitdiff
path: root/cgi/templates/bans_locations
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/templates/bans_locations')
-rw-r--r--cgi/templates/bans_locations10
1 files changed, 10 insertions, 0 deletions
diff --git a/cgi/templates/bans_locations b/cgi/templates/bans_locations
new file mode 100644
index 0000000..a514ccf
--- /dev/null
+++ b/cgi/templates/bans_locations
@@ -0,0 +1,10 @@
+<?py for board in set().union(global_boards, board_bans.keys()): ?>
+location /#{board}/ {
+ <?py if board in global_boards: ?>
+ if ($bans_global) { rewrite ^ /cgi/banned; }
+ <?py #endif ?>
+ <?py if board in board_bans: ?>
+ if ($bans_#{board}) { rewrite ^ /cgi/banned; }
+ <?py #endif ?>
+}
+<?py #endfor ?>