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:
40
InvenTree/templates/about.html
Normal file
40
InvenTree/templates/about.html
Normal 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">×</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>
|
Reference in New Issue
Block a user