aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-02-27 09:44:19 +0000
committerGravatar Gareth Coles <[email protected]>2018-02-27 09:44:19 +0000
commit6aaddfd14beaafed9a55a2c0074fbaad4dda0f50 (patch)
tree8b6d83e56c914383d9b9327ba942218d86a77d52
parentfixes the coverage badge to point to the master branch (#29) (diff)
Move `/help` to `/info/help`
-rw-r--r--pysite/views/main/info/__init__.py1
-rw-r--r--pysite/views/main/info/help.py (renamed from pysite/views/main/help.py)6
-rw-r--r--templates/main/info/help.html (renamed from templates/main/help.html)0
-rw-r--r--templates/main/navigation.html6
4 files changed, 7 insertions, 6 deletions
diff --git a/pysite/views/main/info/__init__.py b/pysite/views/main/info/__init__.py
new file mode 100644
index 00000000..9bad5790
--- /dev/null
+++ b/pysite/views/main/info/__init__.py
@@ -0,0 +1 @@
+# coding=utf-8
diff --git a/pysite/views/main/help.py b/pysite/views/main/info/help.py
index 783b9b31..06c021c2 100644
--- a/pysite/views/main/help.py
+++ b/pysite/views/main/info/help.py
@@ -3,8 +3,8 @@ from pysite.base_route import RouteView
class HelpView(RouteView):
- path = "/help"
- name = "help"
+ path = "/info/help"
+ name = "info/help"
def get(self):
- return self.render("main/help.html")
+ return self.render("main/info/help.html")
diff --git a/templates/main/help.html b/templates/main/info/help.html
index d3084f8b..d3084f8b 100644
--- a/templates/main/help.html
+++ b/templates/main/info/help.html
diff --git a/templates/main/navigation.html b/templates/main/navigation.html
index 8a1e9a6a..09b4f91f 100644
--- a/templates/main/navigation.html
+++ b/templates/main/navigation.html
@@ -17,10 +17,10 @@
<a><i class="uk-icon fas fa-chevron-down"></i></a>
<div class="uk-navbar-dropdown uk-background-secondary">
<ul class="uk-nav uk-navbar-dropdown-nav">
- {% if current_page == "help" %}
- <li class="uk-active"><a href="/help">Getting Help</a></li>
+ {% if current_page == "info/help" %}
+ <li class="uk-active"><a href="/info/help">Getting Help</a></li>
{% else %}
- <li><a href="/help">Getting Help</a></li>
+ <li><a href="/info/help">Getting Help</a></li>
{% endif %}
<li class="uk-nav-divider"></li>
</ul>