[pirate-politics] r515 committed - included tag_detail.html updated to include tag details

2 views
Skip to first unread message

pirate-...@googlecode.com

unread,
Jan 17, 2011, 5:54:25 PM1/17/11
to pirate-poli...@googlegroups.com
Revision: 515
Author: fragro
Date: Mon Jan 17 14:53:37 2011
Log: included tag_detail.html updated to include tag details
http://code.google.com/p/pirate-politics/source/detail?r=515

Modified:
/trunk/pirate-politics/new_templates/tag_detail.html

=======================================
--- /trunk/pirate-politics/new_templates/tag_detail.html Mon Jan 17
12:38:36 2011
+++ /trunk/pirate-politics/new_templates/tag_detail.html Mon Jan 17
14:53:37 2011
@@ -2,6 +2,7 @@

{% load pp_url %}
{% load argumenttags %}
+{% load tag_helpers %}
{% load consensustags %}


@@ -12,65 +13,42 @@
{% block content %}
<div class="stage">
<div class="issuemask">
- <div class="rightcol">
- <!-- <ul><a href="{% pp_url
template='submit_solution.html' %}"><img src="/static/submit_solution.png"
/></a></ul> -->
- <ul>Events:
- <li>TBA</li>
- </ul>
- <ul>Recently Visited:
- <li>Link 1</li>
- <li>Link 2</li>
- </ul>
-
- </div>
-
- <div class="pagehead">
- argument {% ifequal request.object.arg_type.arg 'yea' %}for
{% endifequal %}{% ifequal request.object.arg_type.arg 'nay' %}against {%
endifequal %}
- <a href="{% pp_url template='solution_detail.html'
object=request.object.parent %}">{{ request.object.parent.name }}</a>
<br>from issue <a href="{% pp_url template='issue_detail_2.html'
object=request.object.parent.issue %}">{{ request.object.parent.issue.name
}}</a>
+
+ <div class="rightcol">
+
+ {% include "_rightcol.html" %}

</div>

<div class="issuebound">
-
-
-
- <div class="solution">
-
- {% pp_consensus_get object=request.object.id user=request.user %}
- <div class = "voting">
- <div class="upvote">
- <span id="upvote{{request.object.id}}">
- <img src= "{{pp_consensus.upvoteimg}}"
id="upvoteimg{{request.object.id}}"
onclick="upvote({{request.object.id}},'upcount{{request.object.id}}','upvoteimg{{request.object.id}}');"/>
- </span>
- </div>
-
-
- <div class="irrvote">
- <span id="neutralvote">
- <img src= "{{pp_consensus.neutvoteimg}}"
id="neutvoteimg{{request.object.id}}"
onclick="neutvote({{request.object.id}},'neutcount{{request.object.id}}','neutvoteimg{{request.object.id}}');"
/>
- </span>
-
- </div>
- <div class="downvote">
- <span id="downvote">
- <img src= "{{pp_consensus.downvoteimg}}"
id="downvoteimg{{request.object.id}}"
onclick="downvote({{request.object.id}},'downcount{{request.object.id}}', 'downvoteimg{{request.object.id}}');"
/>
- </span>
-
- </div>
- </div>
- {% endpp_consensus_get %}
- <h1>
- <div class="solutionback">
- {{request.object.name}}<h2> submitted by
{{request.object.user.username}} on {{request.object.pub_date}} </h2>
-
- </div>
- </h1>
- </div>
- <div class="details">
- <h2>{{request.object.arg_type.arg}} argument
details:</h2>
- {{request.object.text}}
-
- </div>
+ <h1>Tags for {{request.object.name}}</h1>
+ {% pp_get_objects_for_tag object=request.object %}
+
+ <h2>Issues:</h2>
+ <ul>
+ {% for issue in pp_tag.issues %}
+ {% pp_consensus_get object=issue.id
user=request.user %}
+ <li><a href="{% pp_url
template='issue_detail.html' object=issue%}">{{issue.name}}
({{pp_consensus.interest|floatformat}})</a></li>
+ {% endpp_consensus_get %}
+ {% endfor %}
+ </ul>
+ <h2>Solutions:</h2>
+ <ul>
+ {% for solution in pp_tag.solutions %}
+ {% pp_consensus_get object=solution.id
user=request.user %}
+ <li><a href="{% pp_url
template='solution_detail.html' object=solution%}">{{solution.name}}
({{pp_consensus.interest|floatformat}})</a></li>
+ {% endpp_consensus_get %}
+ {% endfor %}
+ </ul>
+ <h2>Arguments:</h2>
+ <ul>
+ {% for argument in pp_tag.arguments %}
+ {% pp_consensus_get object=argument.id
user=request.user %}
+ <li><a href="{% pp_url
template='argument_detail.html' object=argument%}">{{argument.name}}
({{pp_consensus.interest|floatformat}})</a></li>
+ {% endpp_consensus_get %}
+ {% endfor %}
+ </ul>
+ {% endpp_get_objects_for_tag %}
</div>
</div>
</div>

Reply all
Reply to author
Forward
0 new messages