2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-06 03:51:34 +00:00

Add 'About InvenTree' modal

- Accessible from the top-right dropdown menu
- Add InvenTree/version.py which contains helper functions
This commit is contained in:
Oliver Walters
2019-05-04 11:23:30 +10:00
parent 293b386286
commit b32a9ed597
9 changed files with 108 additions and 23 deletions

View File

@@ -0,0 +1,40 @@
{% load static %}
{% load inventree_extras %}
<div class='modal fade modal-fixed-footer' tabindex='-1' role='dialog' id='modal-about'>
<div class='modal-dialog'>
<div class='modal-content'>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<img src="{% static 'img/inventree.png' %}" height='60' style='float: left;' alt='Inventree Logo'>
</div>
<div class='modal-form-content'>
<div>
<!--
-->
<h4>InvenTree Version Information</h4>
<table class='table table-striped table-condensed'>
<tr>
<td>Version</td><td>{% inventree_version %}</td>
</tr>
<tr>
<td>Commit Hash</td><td>{% inventree_commit %}</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td>View Code on GitHub</td><td><a href="{% inventree_github %}">{% inventree_github %}</a></td>
</tr>
</table>
</div>
</div>
<div class='modal-footer'>
<button type='button' class='btn btn-default' data-dismiss='modal'>Close</button>
</div>
</div>
</div>
</div>