1
0
Fork 0

Hide item history by default

This commit is contained in:
radex 2020-05-11 20:55:57 +02:00 committed by Piotr Dobrowolski
parent 786f2a3675
commit 4acccb7d94
2 changed files with 9 additions and 2 deletions

View File

@ -105,6 +105,12 @@
{% endif %} {% endif %}
{% if history %} {% if history %}
<div class="row" style="margin-top: 20px">
<div class="col-md-6">
<a class="btn btn-default btn-sm" data-toggle="collapse" data-target="#hs-item-history" >Toggle changes</a>
</div>
</div>
<div id="hs-item-history" class="collapse">
<h3>Changes</h3> <h3>Changes</h3>
<table class="table table-striped table-hover"> <table class="table table-striped table-hover">
{% for entry in history %} {% for entry in history %}
@ -116,6 +122,7 @@
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
</div>
{% endif %} {% endif %}
</div> </div>
@ -125,7 +132,7 @@
{{ item.description|markdown:"code-color" }} {{ item.description|markdown:"code-color" }}
{% endif %} {% endif %}
<h3>Children</h3> <h3>What's inside?</h3>
{% include "widgets/itemlist.html" with list=children|dictsort:"name" item=item %} {% include "widgets/itemlist.html" with list=children|dictsort:"name" item=item %}
</div> </div>
</div> </div>

View File

@ -20,7 +20,7 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" href="/">Hackerspace Storage System</a> <a class="navbar-brand" href="/">Hackerspace Storage</a>
</div> </div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">