Added profile Modals & links from activity feed

This commit is contained in:
David Taylor
2015-05-29 01:28:36 +01:00
parent a2bba0895b
commit be7fe9ee9b
5 changed files with 176 additions and 86 deletions

View File

@@ -5,7 +5,7 @@
{% load to_class_name from filters %}
{% block content %}
{% if request.is_ajax %}
<div class="list-group-item">
<div class="media">
{% for version in object_list %}
@@ -19,9 +19,11 @@
<div class="media">
{% endif %}
<div class="media-left">
<a href="#">
<img class="media-object img-rounded" src="{{ version.revision.user.profile_picture}}" />
</a>
{% 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>
{% endif %}
</div>
<div class="media-body">
<h5>{{ version.revision.user.name }}
@@ -45,5 +47,5 @@
</div>
</div>
</div>
{% endif %}
{% endblock %}