From a9d1cadc123e1bb1baf23ef2944d43381f936e08 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 17 Sep 2019 00:41:28 +1000 Subject: [PATCH] Add link to documentation --- InvenTree/part/templatetags/inventree_extras.py | 8 +++++++- InvenTree/templates/about.html | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/templatetags/inventree_extras.py b/InvenTree/part/templatetags/inventree_extras.py index c51d07fdd5..14a884c2b7 100644 --- a/InvenTree/part/templatetags/inventree_extras.py +++ b/InvenTree/part/templatetags/inventree_extras.py @@ -46,6 +46,12 @@ def inventree_commit(*args, **kwargs): @register.simple_tag() -def inventree_github(*args, **kwargs): +def inventree_github_url(*args, **kwargs): """ Return URL for InvenTree github site """ return "https://github.com/InvenTree" + + +@register.simple_tag() +def inventree_docs_url(*args, **kwargs): + """ Return URL for InvenTree documenation site """ + return "https://inventree.github.io" diff --git a/InvenTree/templates/about.html b/InvenTree/templates/about.html index aef286f6cf..7e2abeb788 100644 --- a/InvenTree/templates/about.html +++ b/InvenTree/templates/about.html @@ -26,7 +26,11 @@ - View Code on GitHub{% inventree_github %} + InvenTree Documenation + {% inventree_docs_url %} + + + View Code on GitHub{% inventree_github_url %}