comments by campaign managers get a blue box around them [#28494261]

pull/1/head
eric 2012-05-25 14:51:46 -04:00
parent 4ec7fef25c
commit 9203127da1
4 changed files with 13 additions and 4 deletions

View File

@ -58,7 +58,7 @@ comments rss?
{% for comment in latest_comments %} {% for comment in latest_comments %}
{% with comment.content_object.id as id %} {% with comment.content_object.id as id %}
{% with comment.user as user %} {% with comment.user as user %}
<div class="comments {% cycle 'row1' 'row2' %}"> <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 %}">
<div class="nonavatar"> <div class="nonavatar">
<div class="image"> <div class="image">
<a href="{% url work id %}?tab=2"><img src="{{ comment.content_object.cover_image_thumbnail }}" alt="cover image" /></a> <a href="{% url work id %}?tab=2"><img src="{{ comment.content_object.cover_image_thumbnail }}" alt="cover image" /></a>

View File

@ -1,6 +1,7 @@
<div id="comments"> <div id="comments">
{% for comment in comment_list %} {% for comment in comment_list reversed %}
<div class="work_supporter">
<div class="work_supporter {% if comment.content_object.last_campaign and comment.user in comment.content_object.last_campaign.managers.all %}official{% endif %}">
<a href="/supporter/{{comment.user.username}}"> <a href="/supporter/{{comment.user.username}}">
<div class="work_supporter_avatar"> <div class="work_supporter_avatar">
{% if comment.user.profile.pic_url %} {% if comment.user.profile.pic_url %}

View File

@ -458,6 +458,10 @@ div#content-block-content #tabs-1 img {
vertical-align: middle; vertical-align: middle;
margin-left: -5px; margin-left: -5px;
} }
.official {
border: 3px #B8DDE0 solid;
margin: 3px auto;
}
.editions { .editions {
clear: both; clear: both;
} }

View File

@ -47,3 +47,7 @@
margin: 0 auto; margin: 0 auto;
padding-top: 5px; padding-top: 5px;
} }
.official {
border: 3px #B8DDE0 solid;
margin: 3px auto;
}