regluit/frontend/templates/comments.html

84 lines
3.1 KiB
HTML
Raw Normal View History

2015-04-28 03:24:02 +00:00
{% extends 'base.html' %}
2016-05-11 14:41:50 +00:00
2018-01-30 20:31:20 +00:00
{% load sass_tags %}
2012-02-03 15:22:53 +00:00
{% block title %} Comments {% endblock %}
{% block extra_css %}
2018-01-30 20:31:20 +00:00
<link type="text/css" rel="stylesheet" href="{% sass_src 'scss/supporter_layout.scss' %}" />
<link type="text/css" rel="stylesheet" href="{% sass_src 'scss/comments.scss' %}" />
2012-02-03 15:22:53 +00:00
{% endblock %}
{% block extra_head %}
<script type="text/javascript" src="/static/js/wishlist.js"></script>
2012-03-08 02:47:40 +00:00
<script type="text/javascript" src="{{ jquery_ui_home }}"></script>
2012-02-03 15:22:53 +00:00
<script type="text/javascript" src="/static/js/greenpanel.js"></script>
<script type="text/javascript" src="/static/js/toggle.js"></script>
<script type="text/javascript" src="/static/js/tabs.js"></script>
{% endblock %}
{% block topsection %}
<div id="js-topsection">
<div class="js-main">
<div class="js-topnews">
<div class="js-topnews1">
<div class="js-topnews2">
<div class="js-topnews3">
<div class="user-block">
<div id="user-block1">
<div id="block-intro-text"><span class="special-user-name">Latest Comments</span></div>
2012-02-03 15:22:53 +00:00
</div>
<div class="user-block24"><span class="user-short-info">Here's what Ungluers are saying about their books.</span>
2012-02-03 15:22:53 +00:00
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block content %}
<div id="main-container">
<div class="js-main">
<div id="js-leftcol">
{% include "explore.html" %}
</div>
<div id="js-maincol-fr">
<div class="js-maincol-inner">
<div id="content-block">
<div id="content-block-content">
2012-02-03 15:22:53 +00:00
<div style="height:46px;"></div>
{% for comment in latest_comments %}
{% with comment.content_object.id as id %}
2012-03-27 16:36:47 +00:00
{% with comment.user as user %}
<div class="comments {% cycle 'row1' 'row2' %} {% if comment.content_object.last_campaign and comment.user in comment.content_object.last_campaign.managers.all %}official{% endif %}">
2012-02-03 15:22:53 +00:00
<div class="nonavatar">
<div class="image">
2015-04-28 03:24:02 +00:00
<a href="{% url 'work' id %}?tab=2"><img src="{{ comment.content_object.cover_image_thumbnail }}" alt="cover image" /></a>
2012-02-03 15:22:53 +00:00
</div>
2015-04-28 03:24:02 +00:00
<span><a href="{% url 'supporter' comment.user %}">{{ comment.user.username }}</a> on <a href="{% url 'work' id %}?tab=2">{{ comment.content_object.title }}</a></span><br />
2012-02-03 15:22:53 +00:00
2012-03-06 15:11:50 +00:00
<span class="text">{{ comment.comment|linebreaksbr }}</span>
2012-02-03 15:22:53 +00:00
</div>
<div class="avatar">
2015-04-28 03:24:02 +00:00
<a href="{% url 'supporter' comment.user %}">
<img class="user-avatar" src="{{ comment.user.profile.avatar_url }}" height="50" width="50" alt="Avatar for {{ comment.user }}" title="{{ comment.user }}" />
2012-02-03 15:22:53 +00:00
</a>
</div>
</div>
2012-03-27 16:36:47 +00:00
{% endwith %}
{% endwith %}
2012-02-03 15:22:53 +00:00
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}