mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Automatic creation of views/urls for anything registered with reversion, with a small amount of hackage to preserve legacy stuff. (and the DAMNED asset IDs!) I would never get distracted...
52 lines
1.9 KiB
HTML
52 lines
1.9 KiB
HTML
{% extends request.is_ajax|yesno:"base_ajax_nomodal.html,base_rigs.html" %}
|
|
|
|
{% load static %}
|
|
{% load humanize %}
|
|
{% load paginator from filters %}
|
|
{% load to_class_name from filters %}
|
|
|
|
{% block content %}
|
|
<div class="list-group-item">
|
|
<div class="media">
|
|
{% for version in object_list %}
|
|
{% if not version.withPrevious %}
|
|
{% if not forloop.first %}
|
|
</div> {#/.media-body#}
|
|
</div> {#/.media#}
|
|
</div>
|
|
<div class="list-group-item">
|
|
<div class="media">
|
|
{% endif %}
|
|
<div class="align-self-start mr-3">
|
|
{% if version.revision.user %}
|
|
<a href="{% url 'profile_detail' pk=version.revision.user.pk %}" class="modal-href">
|
|
<img class="media-object img-rounded" src="{{ version.revision.user.profile_picture}}" />
|
|
</a>
|
|
{% else %}
|
|
<img class="media-object img-rounded" src="{% static 'imgs/pyrigs-avatar.png' %}" />
|
|
{% endif %}
|
|
</div>
|
|
<div class="media-body">
|
|
<h5>
|
|
{{ version.revision.user.name|default:'System' }}
|
|
<span class="ml-3"><small>{{version.revision.date_created|naturaltime}}</small></span>
|
|
</h5>
|
|
{% endif %}
|
|
<p>
|
|
<small>
|
|
{% if version.changes.old == None %}
|
|
Created
|
|
{% else %}
|
|
Changed {% include 'partials/version_changes.html' %} in
|
|
{% endif %}
|
|
|
|
{% include 'partials/object_button.html' with object=version.changes.new %}
|
|
</small>
|
|
</p>
|
|
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|