Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
fixed list
Browse files Browse the repository at this point in the history
  • Loading branch information
Keenahn Jung committed Feb 11, 2012
1 parent c70a4f9 commit d458d90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion project/static/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
.prepend-top{margin-top:12px;}
.prepend-top2{margin-top:24px;}

span.score{font-size:24px;line-height:32px;float:left;width:40px;}
span.score{font-size:24px;line-height:36px;float:left;width:40px;}
span.score.neutral{color:#333;}
span.score.negative{color:#c00}
span.score.positive{color:#0c0}
4 changes: 3 additions & 1 deletion project/templates/pitch/pitch_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ <h1>Rate These Pitches!</h1>
<li>
{% if pitch.total_votes > 0 %}
<span class='score positive'>{{ pitch.total_votes }}</span>
{% else if pitch.total_votes == 0 %}
{% else %}
{% if not pitch.total_votes %}
<span class='score neutral'>0</span>
{% else %}
<span class='score negative'>{{ pitch.total_votes }}</span>
{% endif %}
{% endif %}
<h2><a href="{% url pitch_detail pitch.slug %}">{{ pitch.name }}</a></h2>
<p>{{ pitch.pitch }}</p>

Expand Down

0 comments on commit d458d90

Please sign in to comment.