mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-19 22:42:17 +00:00
40 lines
1.5 KiB
HTML
40 lines
1.5 KiB
HTML
{% extends request.is_ajax|yesno:"base_ajax_nomodal.html,base.html" %}
|
|
|
|
{% load static %}
|
|
{% load paginator from filters %}
|
|
{% load to_class_name from filters %}
|
|
|
|
{% block content %}
|
|
{% if request.is_ajax %}
|
|
|
|
{% for version in object_list %}
|
|
{% if version.item_changes or version.field_changes or version.old == None %}
|
|
<div class="list-group-item" style="border-radius:0">
|
|
<div class="media" >
|
|
<div class="media-left">
|
|
<a href="#">
|
|
<img class="media-object img-rounded" src="{{ version.revision.user.profile_picture}}" style="max-width:3em;">
|
|
</a>
|
|
</div>
|
|
<div class="media-body">
|
|
<b>{{version.revision.user.name}}</b>
|
|
<span class="pull-right"><small><span class="date" data-date="{{version.revision.date_created}}"></span></small></span>
|
|
<br>
|
|
<small>
|
|
{% if version.old == None %}
|
|
Created
|
|
{% else %}
|
|
Changed {% include 'RIGS/version_changes.html' %} in
|
|
{% endif %}
|
|
|
|
|
|
{% include 'RIGS/object_button.html' with object=version.new %}
|
|
</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
{% endblock %} |