2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 19:46:46 +00:00

Add link to documentation

This commit is contained in:
Oliver Walters 2019-09-17 00:41:28 +10:00
parent 55ebf48684
commit a9d1cadc12
2 changed files with 12 additions and 2 deletions

View File

@ -46,6 +46,12 @@ def inventree_commit(*args, **kwargs):
@register.simple_tag() @register.simple_tag()
def inventree_github(*args, **kwargs): def inventree_github_url(*args, **kwargs):
""" Return URL for InvenTree github site """ """ Return URL for InvenTree github site """
return "https://github.com/InvenTree" 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"

View File

@ -26,7 +26,11 @@
<td colspan="2"></td> <td colspan="2"></td>
</tr> </tr>
<tr> <tr>
<td>View Code on GitHub</td><td><a href="{% inventree_github %}">{% inventree_github %}</a></td> <td>InvenTree Documenation</td>
<td><a href="{% inventree_docs_url %}">{% inventree_docs_url %}</a></td>
</tr>
<tr>
<td>View Code on GitHub</td><td><a href="{% inventree_github_url %}">{% inventree_github_url %}</a></td>
</tr> </tr>
<tr> <tr>
<td></td> <td></td>