From 94a2d1a6d25303258b23a75c103244c8e34bd56b Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 13 Mar 2018 12:36:42 +0000 Subject: Update info section with an index --- pysite/views/main/info/index.py | 2 +- templates/main/info/index.html | 41 +++++++++++++++++++++++++++++++++++++++++ templates/main/navigation.html | 16 ++++++++-------- 3 files changed, 50 insertions(+), 9 deletions(-) create mode 100644 templates/main/info/index.html diff --git a/pysite/views/main/info/index.py b/pysite/views/main/info/index.py index 371a5353..4c44f01c 100644 --- a/pysite/views/main/info/index.py +++ b/pysite/views/main/info/index.py @@ -9,4 +9,4 @@ class IndexView(RouteView): name = "info" def get(self): - return redirect("/info/resources") + return self.render("main/info/index.html") diff --git a/templates/main/info/index.html b/templates/main/info/index.html new file mode 100644 index 00000000..fe779a3b --- /dev/null +++ b/templates/main/info/index.html @@ -0,0 +1,41 @@ +{% extends "main/base.html" %} +{% block title %}Information{% endblock %} +{% block content %} +
+
+
+

+ Information + + + + +

+ + +

+ Getting Help   + +
+ How to ask for help - and how to interpret the responses +

+ +

+ Resources   + +
+ A page full of useful resources for learning and working with Python +

+ +

+ Server Rules   + +
+ Rules and infraction information for our server +

+
+
+
+{% endblock %} \ No newline at end of file diff --git a/templates/main/navigation.html b/templates/main/navigation.html index 3178895e..9cc2cb3d 100644 --- a/templates/main/navigation.html +++ b/templates/main/navigation.html @@ -31,9 +31,9 @@
  • {% if current_page.startswith("info") %} -
  • Information
  • +
  • Information
  • {% else %} -
  • Information
  • +
  • Information
  • {% endif %} {% if current_page == "info/help" %} @@ -42,18 +42,18 @@
  • Getting Help
  • {% endif %} - {% if current_page == "info/rules" %} -
  • Server Rules
  • - {% else %} -
  • Server Rules
  • - {% endif %} - {% if current_page == "info/resources" %}
  • Resources
  • {% else %}
  • Resources
  • {% endif %} + {% if current_page == "info/rules" %} +
  • Server Rules
  • + {% else %} +
  • Server Rules
  • + {% endif %} +
  • -- cgit v1.2.3