Update by ialbert on Wed Feb 21 09:31:46 EST 2018 from yolo.local
<div class="ui center aligned header">Data Description</div>
<div class="ui basic center aligned vertical segment">
- {% if user.is_authenticated and data.state != data.DELETED %}
- <a href="{% url 'data_edit' data.uid %}"><i class="write icon"></i>Edit</a>
-
- &bull; <a href="{% url 'data_delete' data.uid data.DELETED|text_display:'data' %}">
- <i class="trash icon"></i>Delete
- </a>
- {% elif user.is_authenticated and data.state == data.DELETED %}
- <a href="{% url 'data_restore' data.uid data.RESTORED|text_display:'data' %}">
- <i class="undo icon"></i>Restore
- </a>
- {% endif %}
-
</div>
<div>{{ data.html|safe }}</div>
</div>
