summaryrefslogtreecommitdiffstats
path: root/templates/badge.html
diff options
context:
space:
mode:
authorMike Chen <chagel@gmail.com>2009-07-05 10:23:30 +0800
committerMike Chen <chagel@gmail.com>2009-07-05 10:23:30 +0800
commit4347c2947834fe7f2edf2b457b2d513454fc6a03 (patch)
tree93e9d22d6fb8a6c882e3915a8511a3ac542a1e67 /templates/badge.html
downloadaskbot-4347c2947834fe7f2edf2b457b2d513454fc6a03.tar.gz
askbot-4347c2947834fe7f2edf2b457b2d513454fc6a03.tar.bz2
askbot-4347c2947834fe7f2edf2b457b2d513454fc6a03.zip
initiliaze git rep
Diffstat (limited to 'templates/badge.html')
-rw-r--r--templates/badge.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/templates/badge.html b/templates/badge.html
new file mode 100644
index 00000000..4ffedfa6
--- /dev/null
+++ b/templates/badge.html
@@ -0,0 +1,38 @@
+{% extends "base_content.html" %}
+{% load extra_tags %}
+{% load humanize %}
+{% block title %}{% spaceless %}{{ badge.name }}-奖牌{% endspaceless %}{% endblock %}
+{% block forejs %}
+ <script type="text/javascript">
+ $().ready(function(){
+ $("#nav_badges").attr('className',"on");
+ });
+
+ </script>
+{% endblock %}
+{% block content %}
+<div id="main-bar" class="headNormal">
+ 奖牌
+</div>
+<div id="main-body" style="width:100%;margin-bottom:20px">
+ <p>
+ <a href="{{badge.get_absolute_url}}" title="{{ badge.get_type_display }} : {{ badge.description }}" class="medal"><span class="badge{{ badge.type }}">&#9679;</span>&nbsp;{{ badge.name }}</a> {{ badge.description }}
+ </p>
+ <div>
+ {% if badge.awarded_count %}
+ <p style="float:left"><span class="count">{{ awards|length|intcomma }}</span>
+ <strong>用户已被授予该奖牌:</strong></p>
+ {% endif %}
+ </div>
+ <div id="award-list" style="clear:both;margin-left:20px;line-height:25px;">
+ {% for award in awards %}
+ <p style="width:185px;float:left"><a href="/users/{{ award.id }}/{{ award.name }}">{{ award.name }}</a> {% get_score_badge_by_details award.rep award.gold award.silver award.bronze %}</p>
+ {% endfor %}
+ </div>
+
+</div>
+{% endblock %}
+
+
+
+