Added:
/trunk/pirate-politics/new_templates
/trunk/pirate-politics/new_templates/404.html
/trunk/pirate-politics/new_templates/500.html
/trunk/pirate-politics/new_templates/_issue.html
/trunk/pirate-politics/new_templates/_rightcol.html
/trunk/pirate-politics/new_templates/_solution.html
/trunk/pirate-politics/new_templates/_sourcetags.html
/trunk/pirate-politics/new_templates/_voting.html
/trunk/pirate-politics/new_templates/argument_detail.html
/trunk/pirate-politics/new_templates/base.html
/trunk/pirate-politics/new_templates/helloworld.html
/trunk/pirate-politics/new_templates/home.html
/trunk/pirate-politics/new_templates/issue_detail.html
/trunk/pirate-politics/new_templates/issue_try1.html
/trunk/pirate-politics/new_templates/issuelist_test.html
/trunk/pirate-politics/new_templates/issues.html
/trunk/pirate-politics/new_templates/login.html
/trunk/pirate-politics/new_templates/object_test.html
/trunk/pirate-politics/new_templates/permgroups.html
/trunk/pirate-politics/new_templates/register.html
/trunk/pirate-politics/new_templates/session.html
/trunk/pirate-politics/new_templates/session_form.html
/trunk/pirate-politics/new_templates/solution.html
/trunk/pirate-politics/new_templates/solution_detail.html
/trunk/pirate-politics/new_templates/solutions.html
/trunk/pirate-politics/new_templates/submit.html
/trunk/pirate-politics/new_templates/submit_issue.html
/trunk/pirate-politics/new_templates/submit_nay_argument.html
/trunk/pirate-politics/new_templates/submit_solution.html
/trunk/pirate-politics/new_templates/submit_yea_argument.html
/trunk/pirate-politics/new_templates/tag_detail.html
/trunk/pirate-politics/new_templates/topics.html
/trunk/pirate-politics/new_templates/user_profile.html
/trunk/pirate-politics/new_templates/welcome.html
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/404.html Mon Jan 17 12:38:36 2011
@@ -0,0 +1,6 @@
+{% extends 'base.html' %}
+{% block title %}Page not found{% endblock %}
+
+{% block content %}
+The page you requested could not be found.
+{% endblock %}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/500.html Mon Jan 17 12:38:36 2011
@@ -0,0 +1,6 @@
+{% extends 'base.html' %}
+{% block title %}Server error{% endblock %}
+
+{% block content %}
+There was an error while handling your request.
+{% endblock %}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/_issue.html Mon Jan 17 12:38:36
2011
@@ -0,0 +1,48 @@
+{% load pp_url %}
+{% load topictags %}
+{% load issuetags %}
+{% load consensustags %}
+{% load argumenttags %}
+{% load solutiontags %}
+
+ {% if iss_obj %}
+
+
+ <div class="issue">
+ <div class="bullet">
+ {% if request.user.is_authenticated %}
+ {% pp_consensus_get object=iss_obj.id
user=request.user %}
+ <h1> {{ pp_consensus.interest|floatformat }}
+ </h1>
+ {% endpp_consensus_get %}
+ {% else %}
+ {% pp_consensus_get object=iss_obj.id %}
+ <h1> {{ pp_consensus.interest|floatformat }}
+ </h1>
+ {% endpp_consensus_get %}
+ {% endif %}
+ <!-- <div class="bullet_daylight"></div>
+ <div class="bullet_verdict"></div> -->
+ </div>
+ <div class="issueback">
+<a href="{% pp_url template='issue_detail.html' object=iss_obj %}">
{{iss_obj.name}} </a>
+
+ <div class="threecol">
+ <div class="colmid">
+ <div class="colleft">
+ <div class="col2">
+ {{ iss_obj.arguments }} arguments
+ </div>
+ <div class="col1">
+ {{ iss_obj.solutions }} solution</a>
+ </div>
+ <div class="col3">
+ {{iss_obj.comments}} comments
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+{% endif %}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/_rightcol.html Mon Jan 17 12:38:36
2011
@@ -0,0 +1,48 @@
+{% load pp_url %}
+{% load topictags %}
+{% load issuetags %}
+{% load consensustags %}
+{% load argumenttags %}
+{% load solutiontags %}
+{% load sourcetags %}
+{% load tag_helpers %}
+
+
+ {% if request.user.is_authenticated %}
+ <ul class="d">
+ <b>Recently Visited:</b>
+ {% for name, link in request.session.last_visited reversed %}
+ <li><a href="{{link}}">{{name}}</a></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+
+ {% if request.object %}
+ <ul class="d">
+ <b>Tags:</b> {% if request.user.is_authenticated and
request.object %}<a href="javascript:;"
onmousedown="toggleSlide('tag_rightcol');">+tag</a>{% endif %}
+ {% pp_get_tags_for_object object=request.object %}
+ {% for tag in pp_tag.tags %}
+ <li><a href="{% pp_url template='tag_detail.html'
object=pp_tag.tag %}">{{tag.name}}</a></li>
+ {% endfor %}
+ {% endpp_get_tags_for_object %}
+
+ {% endif %}
+
+ </ul>
+
+ {% if request.user.is_authenticated and request.object %}
+
+ {% pp_tag_form POST=request.POST path=request.path
object=request.object %}
+ <div id="tag_rightcol" style="display:none; overflow:hidden;
height:50px;">
+ {{ pp_tag.form.errors }}
+ <form method="post" action="">
+ {{ pp_tag.form.tag}}
+ {{pp_tag.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" class='button green' value="Submit
Tag">
+ </form>
+ </div>
+ {% endpp_tag_form %}
+ {% endif %}
+
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/_solution.html Mon Jan 17 12:38:36
2011
@@ -0,0 +1,49 @@
+{% load pp_url %}
+{% load topictags %}
+{% load issuetags %}
+{% load consensustags %}
+{% load argumenttags %}
+{% load solutiontags %}
+
+ {% if iss_obj %}
+
+ <div class="issue">
+ <div class="main">
+ <div class="bullet">
+ {% if request.user.is_authenticated %}
+ {% pp_consensus_get object=iss_obj.id
user=request.user %}
+ <h1> {{ pp_consensus.interest|floatformat }}
+ </h1>
+ {% endpp_consensus_get %}
+ {% else %}
+ {% pp_consensus_get object=iss_obj.id %}
+ <h1> {{ pp_consensus.interest|floatformat }}
+ </h1>
+ {% endpp_consensus_get %}
+ {% endif %}
+ <!-- <div class="bullet_daylight"></div>
+ <div class="bullet_verdict"></div> -->
+ </div>
+ <div class="issueback">
+<a href="{% pp_url template='solution_detail.html' object=iss_obj %}">
{{iss_obj.name}} </a>
+
+ <div class="threecol">
+ <div class="colmid">
+ <div class="colleft">
+ <div class="col2">
+ {{ iss_obj.arguments }} arguments
+ </div>
+ <div class="col1">
+ submitted by <a href="{% pp_url
template='user_profile.html'
object=iss_obj.user %}">{{iss_obj.user.username}}</a>
+ </div>
+ <div class="col3">
+ {{iss_obj.comments}} comments
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {% endif %}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/_sourcetags.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,77 @@
+{% load pp_url %}
+{% load topictags %}
+{% load issuetags %}
+{% load consensustags %}
+{% load argumenttags %}
+{% load solutiontags %}
+{% load sourcetags %}
+{% load tag_helpers %}
+
+<h2>Sources:
+{% ifequal request.user request.object.user %}<a href="javascript:;"
onmousedown="toggleSlide('mydiv');">+url</a>
+
+{% comment %}<a href="javascript:;"
onmousedown="toggleSlide('mydiv2');">+image</a>
+{% endcomment %}
+{% endifequal %}
+</h2>
+ {% ifequal request.user request.object.user %}
+
+ <div id="mydiv" style="display:none; overflow:hidden;
height:30px;">
+
+ {% pp_urlsource_form POST=request.POST
object=request.object user=request.user %}
+ <div id = "add">
+ {{ pp_source.form.errors }}
+ <form method="post" action="">
+ {{ pp_source.urlform.url}}
+ {{ pp_source.urlform.form_id}}
+ {% csrf_token %}
+ <input type="submit" class="button green"
value="Submit URL">
+ </form>
+ </div>
+ {% endpp_urlsource_form %}
+
+
+ </div></div>
+
+ <div id="mydiv2" style="display:none; overflow:hidden;
height:50px;">
+{% comment %}
+ {% pp_imgsource_form POST=request.POST FILE=request.FILES
object=request.object %}
+ <div id = "add">
+ {{ pp_source.imgform.errors }}
+ <form form enctype="multipart/form-data" method="post"
action="">
+ {{ pp_source.imgform.img}}
+ {{ pp_source.imgform.form_id}}
+ {% csrf_token %}
+ <input type="submit" value="Submit URL">
+ </form>
+ </div>
+ {% endpp_imgsource_form %}
+{% endcomment %}
+ </div>
+
+
+
+ {% endifequal %}
+
+ {% pp_get_sources object=request.object %}
+ <ul>
+ {% for urlsource in pp_source.urlsource_list %}
+ <li>
+ {% ifequal request.user request.object.user %}
+ <a href="{{urlsource.url}}">{{urlsource.url}}</a> <a
href="/sourcedelete/{{urlsource.id}}/" class="small button red">-</a>
+ {% else %}
+ <a href="{{urlsource.url}}">{{urlsource.url}}</a>
+ {% endifequal %}
+ </li>
+ {% empty %}
+ No Sources
+ {% endfor %}
+ {% endpp_get_sources %}
+ </ul>
+
+
+
+
+
+
+ </div>
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/_voting.html Mon Jan 17 12:38:36
2011
@@ -0,0 +1,23 @@
+
+
+<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>
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/argument_detail.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,56 @@
+{% extends 'base.html' %}
+
+{% load pp_url %}
+{% load argumenttags %}
+{% load consensustags %}
+{% load tag_helpers %}
+
+
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block content %}
+ <div class="stage">
+ <div class="issuemask">
+ <div class="rightcol">
+ {% include '_rightcol.html' %}
+ </div>
+ <div class="pagehead">
+
+
+ </div>
+
+ <div class="issuebound">
+
+
+
+ <div class="solution">
+
+ {% pp_consensus_get object=request.object.id user=request.user %}
+ {% include "_voting.html"%}
+ {% 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="detail">
+ <h2>{{request.object.arg_type.arg}} argument
details:</h2>
+ {{request.object.text}}
+
+ </div>
+
+
+ {% include '_sourcetags.html' %}
+ </div>
+ </div>
+ </div>
+ </div>
+{% endblock content %}
+</body>
+</html>
+
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/base.html Mon Jan 17 12:38:36 2011
@@ -0,0 +1,154 @@
+{% load pp_url %}
+{% load topictags %}
+
+
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}"
+ xml:lang="{% firstof LANGUAGE_CODE 'en' %}"
+ lang="{% firstof LANGUAGE_CODE 'en' %}">
+ <head>
+
+ <link rel="stylesheet" type="text/css" href="/static/style.css" />
+
+ <title>{{request.path|cut:"/"|cut:".html"|capfirst}} -
Nonrel-testapp</title>
+
+ {% block css %}
+ {% endblock %}
+
+ <script type="text/javascript" src="/static/motionpack.js"></script>
+
+ <script type="text/javascript"
src="/static/jquery-1.4.2.min.js"></script>
+
+ <script type="text/javascript">
+
+ function changeText(text,div_id)
+ {
+ elem = document.getElementById(div_id);
+ elem.innerHTML = text;
+ };
+
+ function changeImgSrc(text,div_id)
+ {
+ elem = document.getElementById(div_id);
+ elem.src = text;
+ };
+
+ function upvote(idk,div_id,img_id){
+ $.post("/vote/", {vote: "up", pk: idk },
+ function(data) {
+ if(data.FAIL != true){
+ changeImgSrc(data.imgsrc,img_id);
+ changeText(data.count,div_id);
+ }
+ }, "json");
+ };
+ function downvote(idk,div_id,img_id){
+ $.post("/vote/", {vote: "down", pk: idk },
+ function(data) {
+ if(data.FAIL != true){
+ changeImgSrc(data.imgsrc,img_id);
+ changeText(data.count,div_id);
+ }
+ }, "json");
+ };
+ function neutvote(idk,div_id,img_id){
+ $.post("/vote/", {vote: "neut", pk: idk },
+ function(data) {
+ if(data.FAIL != true){
+ changeImgSrc(data.imgsrc,img_id);
+ changeText(data.count,div_id);
+ }
+ }, "json");
+ };
+
+ </script>
+
+ {% block js %}
+
+ {% endblock %}
+
+ {% block extra-head %}{% endblock %}
+ </head>
+
+<body>
+ <div id="header">
+ <div class="headtitle"><a STYLE="text-decoration:none" href="{% pp_url
template='issues.html' dimension='hot'%}">egalit.ar</a></div>
+ <ul>
+ <li><a href="{% pp_url template='issues.html'
dimension='hot'%}">issues</a></li>
+
+ {% if request.user.is_authenticated %}
+ <li><a href="{% pp_url template='user_profile.html'
object=request.user%}">profile</a></li> {% else %}
+ <li><a href="/register.html">profile</a></li>
+ {% endif %}
+ <li><a href="/platform">platform</a></li>
+ </ul>
+ </div>
+
+ <div id="mainContent">
+ {% block content-header %}
+
+ <div class="threecol">
+ <div class="colmid">
+ <div class="colleft">
+ <div class="col2">
+ <ul>browse:
+ <li><a STYLE="text-decoration:none" href="/hot/">hot</a></li> |
+ <li><a STYLE="text-decoration:none"
href="/cont.html">controversial</a></li> |
+ <li><a STYLE="text-decoration:none" href="/new.html">new </a></li>
+ </ul>
+ {% endblock %}
+ </div>
+ <div class="col1">
+ <ul>topic:
+ {% pp_get_topic issue=request.object %}
+ {% if pp_topic.topic and pp_topic.parent %}
+ <li> {{pp_topic.parent}} </li> ->
+ <li> {{pp_topic.topic}} </li>
+ {% else %}
+ {% if pp_topic.topic %}
+ <li> {{pp_topic.topic}} </li>
+ {% else %}
+ <li> Browse Topics </li>
+ {% endif %}
+ {% endif %}
+ {% endpp_get_topic %}
+ </ul>
+ </div>
+ <div class="col3">
+ {% if request.user.username %}
+ <ul>hello
+ <li> {{request.user.username}}</li> |
+ <li>rep: 0</li> |
+ <li><a STYLE="text-decoration:none" href="/logout/">logout</a></li>
+ {% else %}
+ <ul>welcome:
+ <li><a STYLE="text-decoration:none"
href="/register.html">register</a></li> |
+ <li><a STYLE="text-decoration:none" href="/login.html">login</a></li>
+ {% endif %}
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {% if error %}<div class="error">{{ error }}</div>{% endif %}
+ {% if info %}<div class="info">{{ info }}</div>{% endif %}
+ {% if messages %}
+ {% for message in messages %}
+ <div class="info">{{ message }}</div>
+ {% endfor %}
+ {% endif %}
+ {% endblock %}
+
+ {% block content %}
+ These aren't the droids you are looking for.{% endblock %}
+ </div>
+ </div>
+ <div id="footer">
+ <p><!--Copyright {% now "Y" %} pirate-politics--> </p>
+ </div>
+ </body>
+</html>
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/helloworld.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,8 @@
+{% extends 'base.html' %}
+{% block title %}Hello World{% endblock %}
+{% block content %}
+ {% hello_tag user=request.user session=request.session
POST=request.POST path=request.path %}
+ {% include "session.html" %}
+ {% include "session_form.html" %}
+ {% endhello_tag %}
+{% endblock content %}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/home.html Mon Jan 17 12:38:36 2011
@@ -0,0 +1,89 @@
+{% extends 'base.html' %}
+
+{% load pp_url %}
+{% load topictags %}
+{% load issuetags %}
+{% load consensustags %}
+
+{% block title %}
+{% if request.object %}{{ request.object.text }}{% endif %} Issues
+{% endblock title %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/issues.css" />
+{% endblock %}
+
+{% block content %}
+
+<div class = "topicdisplay">
+{% pp_get_topic_list topic=request.object %}
+ {% for topic in pp_topic.topic_list %}
+
+ <a href="{% pp_url template="issues.html" object=topic %}">{{
topic.text }}</a>
+
+ {% endfor %}
+</div>
+{% endpp_get_topic_list %}
+
+ <hr />
+
+{% pp_get_issue_list dimension="cont" topic=request.object %}
+
+<div id ="issueList">
+ <h2>Issues</h2>
+ {% for issue in pp_issue.issue_list %}
+
+ {% pp_consensus_get object=issue.id user=request.user %}
+ <div class = "issue">
+ <span class="name">{{issue.name|
title}}:{{issue.interest}}</span>
+ <div class = "voting">
+
+ <span id="upvote{{issue.id}}">
+ <img src= "{{pp_consensus.upvoteimg}}"
id="upvoteimg{{issue.id}}"
onclick="upvote({{issue.id}},'upcount{{issue.id}}','upvoteimg{{issue.id}}');"/>
+ </span>
+ (<span
id="upcount{{issue.id}}">{{pp_consensus.upvotes}}</span>)<br />
+ <span id="neutralvote">
+ <img src= "{{pp_consensus.neutvoteimg}}"
id="neutvoteimg{{issue.id}}"
onclick="neutvote({{issue.id}},'neutcount{{issue.id}}','neutvoteimg{{issue.id}}');"
/>
+ </span>
+ (<span
id="neutcount{{issue.id}}">{{pp_consensus.neutvotes}}</span>)<br />
+ <span id="downvote">
+ <img src= "{{pp_consensus.downvoteimg}}"
id="downvoteimg{{issue.id}}"
onclick="downvote({{issue.id}},'downcount{{issue.id}}', 'downvoteimg{{issue.id}}');"
/>
+ </span>
+ (<span
id="downcount{{issue.id}}">{{pp_consensus.downvotes}}</span>)
+
+ </div>
+ <div class = "details">
+ <div class="text">{{issue.text}}</div>
+ <span class="topic">Categorized under <a
href="/categories/{{issue.topic}}">{{issue.topic}}</a></span>
+ <span class="detailLink"><a href="{% pp_url
template="issue_detail.html" object=issue %}">More details</a></span>
+ </div>
+ </div>
+ {% endpp_consensus_get %}
+ {% empty %}
+ There are no issues at this time, dude.
+
+</div>
+
+
+ {% endfor %}
+
+
+{% endpp_get_issue_list %}
+
+{% pp_issue_form POST=request.POST path=request.path
topic=request.object %}
+ <div id = "add">
+ <hr />
+ <h2>Create an issue</h2>
+ {{ pp_issue.form.errors }}
+ <form method="post" action="">
+ Hey: {{ pp_issue.form.user }} <br>
+ Speak your Mind: <br/>{{ pp_issue.form.text }}<br/>
+ {{ pp_issue.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" value="Submit">
+ </form>
+ </div>
+{% endpp_issue_form %}
+
+
+
+{% endblock content %}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/issue_detail.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,87 @@
+{% extends 'base.html' %}
+
+{% load markup %}
+
+{% load pp_url %}
+{% load topictags %}
+{% load issuetags %}
+{% load consensustags %}
+{% load argumenttags %}
+{% load solutiontags %}
+{% load sourcetags %}
+{% load tag_helpers %}
+
+
+{% block title %}
+{% if request.object %}{{ request.object.text }}{% endif %} Issues
+{% endblock title %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block content %}
+ <div class="stage">
+ <div class="issuemask">
+
+ <div class="rightcol">
+
+ {% include "_rightcol.html" %}
+
+ </div>
+
+ <div class="issuebound">
+
+ {% pp_get_issue object=request.object %}
+
+ <div class="issue">
+ <div class="main">
+ <div class="bullet">
+ {% pp_consensus_get object=pp_issue.issue.id
user=request.user %}
+ <h1> {{ pp_consensus.interest|floatformat }}
+ </h1>
+ {% endpp_consensus_get %}
+ </div>
+ <div class="bullet_">
+ {% ifequal pp_issue.issue.user
request.user%}
+ <ul><a href="{% pp_url
template='submit_issue.html' object=pp_issue.issue %}" class='button
blue'>edit</a></ul>
+
+ {% endifequal %}
+
+
+ </div>
+ <div class="issueback">
+ {{pp_issue.issue.name}}
+ <div class="threecol">
+ <div class="colmid">
+ <div class="colleft">
+ <div class="col2">
+ {{pp_issue.issue.arguments}} arguments
+ </div>
+ <div class="col1">
+ <a href="{% pp_url template='solutions.html'
object=pp_issue.issue %}"> {{ pp_issue.issue.solutions}} solutions</a>
+ </div>
+ <div class="col3">
+ {{pp_issue.issue.comments}} comments
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="details">
+ {{pp_issue.issue.text|markdown}}
+
+ {% include "_sourcetags.html" %}
+
+ </div>
+ {% endpp_get_issue %}
+ </div>
+ </div>
+ </div>
+ </div>
+</body>
+</html>
+
+
+{% endblock content %}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/issue_try1.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,118 @@
+{% extends 'base.html' %}
+
+{% load pp_url %}
+{% load topictags %}
+{% load issuetags %}
+{% load consensustags %}
+{% load argumenttags %}
+{% load solutiontags %}
+
+{% block title %}
+{% if request.object %}{{ request.object.text }}{% endif %} Issues
+{% endblock title %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block content %}
+ <div class="threecol">
+ <div class="colmid">
+ <div class="colleft">
+ <div class="col2">
+ <ul>Browse by:
+ <li><a STYLE="text-decoration:none" href="/hot.html">hot</a></li> |
+ <li><a STYLE="text-decoration:none"
href="/cont.html">controversial</a></li> |
+ <li><a STYLE="text-decoration:none" href="/new.html">new </a></li>
+ </ul>
+ </div>
+ <div class="col1">
+ <ul>Topic:
+ {% pp_get_topic_hierarchy topic=request.object %}
+ {% if pp_topic.hierarchy %}
+ {% for topic in pp_topic.hierarchy %}
+ <li><a href="{% pp_url
template="issues.html" object=topic %}">{{ topic.text }}</a></li> ->
+ {% endfor %}
+ {% else %}
+ <li> Browse List </li>
+ {% endif %}
+ {% endpp_get_topic_hierarchy %}
+ </ul>
+ </div>
+ <div class="col3">
+ {% if request.user.name %}
+ <ul>User Details:
+ <li> {{request.user.name}}</li> |
+ <li>Messages</li> |
+ <li>Karma Points</li>
+ {% else %}
+ <ul>Welcome:
+ <li>register</li> |
+ <li>login</li>
+ {% endif %}
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div class="stage">
+ <div class="issuemask">
+ <div class="rightcol">
+ <ul>Events:
+ <li>TBA</li>
+ </ul>
+ <ul>Recently Visited:
+ <li>Link 1</li>
+ <li>Link 2</li>
+ </ul>
+
+ </div>
+
+ <div class="issuebound">
+
+ {% pp_get_issue_list dimension="new" topic=request.object %}
+
+ {% for issue in pp_issue.issue_list %}
+
+
+ <div class="issue">
+ <h1>
+ <div class="bullet">
+ <h1> {{ issue.interest }}
+ </h1>
+ <!-- <div class="bullet_daylight"></div>
+ <div class="bullet_verdict"></div> -->
+ </div>
+ <div class="issueback">
+ <a STYLE="text-decoration:none" href="{% pp_url
template="issue_detail_2.html" object=issue %}">{{issue.name}}</a>
+ <div class="threecol">
+ <div class="colmid">
+ <div class="colleft">
+ <div class="col2">
+ X Arguments
+ </div>
+ <div class="col1">
+ {{ issue.solutions}} Solutions
+ </div>
+ <div class="col3">
+ {{issue.comments}} Comments
+ </div>
+ </div>
+ </div>
+ </div>
+
+ </div>
+ </h1>
+ </div>
+ {% endfor %}
+ {% endpp_get_issue_list %}
+ </div>
+ </div>
+ </div>
+</body>
+</html>
+
+ <div class="threecol">
+ <div class="colmid">
+
+
+{% endblock content %}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/issuelist_test.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,8 @@
+{% pp_get_issue_list dimension="new" topic=request.topic%}
+
+ {% for issue in pp_issue.issue_list %}
+ {{issue.text}}
+
+ {% endfor %}
+
+{% endpp_get_issue_list %}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/issues.html Mon Jan 17 12:38:36
2011
@@ -0,0 +1,65 @@
+{% extends 'base.html' %}
+
+{% load pp_url %}
+{% load topictags %}
+{% load issuetags %}
+{% load consensustags %}
+{% load argumenttags %}
+{% load solutiontags %}
+
+{% block title %}
+{% if request.object %}{{ request.object.text }}{% endif %} Issues
+{% endblock title %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+ {% block browser_bar %}
+ <ul>issues:
+ <li><a STYLE="text-decoration:none" href="{% pp_url
template='issues.html' dimension='hot'%}">hot</a></li> |
+ <li><a STYLE="text-decoration:none" href="{% pp_url
template='issues.html' dimension='cont'%}">controversial</a></li> |
+ <li><a STYLE="text-decoration:none" href="{% pp_url
template='issues.html' dimension='new'%}">new </a></li>
+ </ul>
+ {% endblock %}
+
+{% block content %}
+ <div class="stage">
+ <div class="issuemask">
+ <div class="rightcol">
+ {% if request.user.is_authenticated %}
+ <ul><a href="{% pp_url template='submit_issue.html' %}"
class='button blue'>Submit Issue</a></ul>
+ {% else %}
+<ul><a href="{% pp_url template='register.html' %}" class='button
blue'>Submit Issue</a></ul>
+ {% endif %}
+ {% include '_rightcol.html' %}
+ </div>
+ <div class="issuebound">
+ {% if request.dimension%}
+
+ {% pp_get_issue_list dimension=request.dimension
topic=request.object %}
+
+ {% for iss_obj in pp_issue.issue_list %}
+
+ {% include '_issue.html' %}
+
+ {% endfor %}
+ {% endpp_get_issue_list %}
+
+ {% else %}
+ {% pp_get_issue_list dimension="hot" topic=request.object %}
+
+ {% for iss_obj in pp_issue.issue_list %}
+
+ {% include '_issue.html' %}
+
+ {% endfor %}
+ {% endpp_get_issue_list %}
+ {% endif %}
+ </div>
+ </div>
+ </div>
+{% endblock content %}
+</body>
+</html>
+
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/login.html Mon Jan 17 12:38:36 2011
@@ -0,0 +1,27 @@
+{% extends 'base.html' %}
+{% load pp_url %}
+{% load usertags %}
+
+{% block title %}Login Page{% endblock %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block content%}
+
+{% pp_user_login_form POST=request.POST path=request.path
request=request %}
+ <div id = "login">
+ {{ pp_login.form.errors }}
+
+ <form method="post" action="">
+ Name:{{ pp_login.form.name }}<br>
+ Pass:{{ pp_login.form.password }}<br>
+ {{ pp_login.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" value="Submit">
+ </form>
+ </div>
+{% endpp_user_login_form %}
+
+{% endblock content %}
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/object_test.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,1 @@
+{{request.object.text}}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/permgroups.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,42 @@
+{% extends 'base.html' %}
+{% block title %}Permission Groups{% endblock %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/permgroups.css" />
+{% endblock %}
+{% block content %}
+ {% pp_permgroup_list %}
+ <div id = "groupList">
+ <div class="titleText">Group List</div>
+ {% for group in pp_permissions.groups %}
+ <div class = "group">
+ <span class="name">{{ group.name }}</span><span class="active">{%
if group.is_active %} Active {% else %} Inactive {% endif %} </span><span
class="description">{{ group.description }}</span>
+ </div>
+ {% empty %}
+ There are no groups at this time
+ {% endfor %}
+ </div>
+ {% endpp_permgroup_list %}
+ {% pp_permgroup_form POST=request.POST path=request.path %}
+ <form method="post">
+ <div class ="titleText">Add a Group </div>
+
+ <div class="roundbox">
+ <span class= "title">group name</span>
+ <div id="name">{{ pp_permissions.form.name }}</div>
+ </div>
+ <div class="roundbox">
+ <span class= "title">group description</span>
+ <div id ="description">{{ pp_permissions.form.description }}</div>
+ </div>
+ <div class="roundbox">
+ <div id="active"> <span class= "title">currently active: </span>
+ {{ pp_permissions.form.is_active }}</div>
+ </div>
+ <div id="submit">
+ <input type="submit">
+ </div>
+ {{ pp_permissions.form.form_id }}
+ {% csrf_token %}
+ </form>
+ {% endpp_permgroup_form %}
+{% endblock content %}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/register.html Mon Jan 17 12:38:36
2011
@@ -0,0 +1,27 @@
+{% extends 'base.html' %}
+{% load pp_url %}
+{% load usertags %}
+
+{% block title %}Register Page{% endblock %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block content%}
+
+{% pp_user_registration_form POST=request.POST path=request.path
request=request %}
+ <div id = "register">
+ {{ pp_login.form.errors }}
+ <div class="add">
+ <form method="post" action="">
+ {{ pp_login.form.as_p }}
+ {{ pp_login.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" value="Submit">
+ </form>
+ </div>
+ </div>
+{% endpp_user_registration_form %}
+
+{% endblock content %}
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/session.html Mon Jan 17 12:38:36
2011
@@ -0,0 +1,11 @@
+<table id="sessionTable">
+ <tr>
+ <td>Your username is {{ hello.username }}.</td>
+ <tr/><tr>
+ <td>Your session id is {{ hello.session_id }}.</td>
+ <tr/><tr>
+ <td>You have tried to access the path "{{ hello.path }}".</td>
+ <tr/><tr>
+ <td>Current arguments: "{{ hello.args }}".</td>
+ <tr/>
+</table>
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/session_form.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,20 @@
+<form method="post">
+<table id="helloworldTable">
+ <tr>
+ <th colspan=2>Add fields to the session:</th>
+ </tr><tr>
+ <td>{{ hello.form.key }}</td>
+ <td>{{ hello.form.value }}</td>
+ </tr><tr>
+ <td colspan=2 align=center><input type="submit"></td>
+ <tr/>
+ {% for pair in hello.session_values %}
+ <tr>
+ <td><b>{{ pair.0 }}</b></td>
+ <td>{{ pair.1 }}</td>
+ </tr>
+ {% endfor %}
+</table>
+{{ hello.form.form_id }}
+{% csrf_token %}
+</form>
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/solution.html Mon Jan 17 12:38:36
2011
@@ -0,0 +1,67 @@
+{% extends 'base.html' %}
+{% load pp_url %}
+{% load solutiontags %}
+{% load argumenttags %}
+
+{% block title %}
+solution detail
+{% endblock title %}
+{% block content %}
+
+
+{% pp_get_solution object=request.object %}
+<h2>Details for {{pp_solution.solution.name|title}}</h2>
+ <ul>
+ <li>{{pp_solution.solution.text }}</li>
+ <li><a
href="/upvote/{{pp_solution.solution.topic}}/{{pp_solution.solution.id}}">Support:
{{ pp_solution.upvotes }}</a></li>
+ <li><a
href="/neutvote/{{pp_solution.solution.topic}}/{{pp_solution.solution.id}}">Neutral:
{{ pp_solution.neutralvotes }}</a></li>
+ <li><a
href="/downvote/{{pp_solution.solution.topic}}/{{pp_solution.solution.id}}">Oppose:
{{ pp_solution.neutralvotes }}</a></li>
+ </ul>
+
+ {% pp_get_arg_types %}
+
+<!--Display Arguments for this solution-->
+
+ {% for arg_type in pp_argumentation.arg_type_list %}
+
+ {{arg_type}} <br>
+
+ {% pp_get_argument_list solution=pp_solution.solution
arg_type=arg_type %}
+
+ {% for arg in pp_argumentation.argument_list %}
+ {{arg.name}} <br>
+ {{arg.text}} <br>
+
+ {% endfor %}
+
+ {% endpp_get_argument_list %}
+
+<!--Form for adding new arguments for this solution-->
+ {% pp_argument_form POST=request.POST path=request.path
user=request.user object=pp_solution.solution arg_type=arg_type %}
+
+ <div id = "add">
+ <hr />
+ {{ pp_argumentation.form.errors }}
+ <form method="post" action="">
+ {{ pp_argumentation.form.name }}<br>
+ {{ pp_argumentation.form.text }}<br>
+ {% csrf_token %}
+ <input type="submit" value="Submit">
+ </form>
+ </div>
+
+ {% endpp_argument_form %}
+
+ {% endfor %}
+
+ {% endpp_get_arg_types %}
+
+
+{% endpp_get_solution %}
+
+
+{% endblock content %}
+
+
+
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/solution_detail.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,150 @@
+{% extends 'base.html' %}
+
+{% load markup %}
+
+{% load pp_url %}
+{% load topictags %}
+{% load issuetags %}
+{% load consensustags %}
+{% load argumenttags %}
+{% load solutiontags %}
+{% load sourcetags %}
+{% load tag_helpers %}
+
+{% block title %}
+{% if request.object %}{{ request.object.text }}{% endif %} Issues
+{% endblock title %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block browser_bar %}
+ <ul>solutions:
+ <li><a STYLE="text-decoration:none" href="{% pp_url
template='solutions.html' dimension='hot'
object=request.object %}">hot</a></li> |
+ <li><a STYLE="text-decoration:none" href="{% pp_url
template='solutions.html' dimension='cont'
object=request.object %}">controversial</a></li> |
+ <li><a STYLE="text-decoration:none" href="{% pp_url
template='solutions.html' dimension='new' object=request.object %}">new
</a></li>
+ </ul>
+ {% endblock %}
+
+{% block content %}
+ <div class="stage">
+ <div class="issuemask">
+
+ <div class="rightcol">
+
+ {% include "_rightcol.html" %}
+
+ </div>
+
+ <div class="issuebound">
+
+
+ {% pp_get_solution object=request.object %}
+
+ {% pp_consensus_get object=pp_solution.solution.id
user=request.user %}
+
+ <div class="issue">
+ <div class="main">
+ <div class="bullet2">
+ {% include '_voting.html' %}
+ </div>
+
+ <div class="bullet2_">
+ {% ifequal pp_solution.solution.user
request.user%}
+ <ul><a href="{% pp_url
template='submit_solution.html' object=pp_solution.solution %}"
class='button blue'>edit</a></ul>
+
+ {% endifequal %}
+ </div>
+ <div class="issueback2">
+{{pp_solution.solution.name}}<br>
+
+<div class="userinfo">submitted by <a href="{% pp_url
template='user_profile.html'
object=pp_solution.user%}">{{pp_solution.solution.user.username}}</a>
{{pp_solution.solution.submit_date|date:"(d/m/Y h:sA)"}} | comment |
interest:{{pp_consensus.consensus.interest|floatformat}}</div>
+
+ </div>
+ </div>
+
+
+
+ <div class="details">
+ {{pp_solution.solution.text|markdown}}
+
+ </div>
+ {% include "_sourcetags.html" %}
+
+ <div class="argument">
+
+
+ <div class="yea_argument">
+ <h1>Yea Arguments
+{% if request.user.is_authenticated %}
+<a href="{% pp_url template='submit_yea_argument.html'
object=pp_solution.solution %}">+</a>
+{% endif %}</h1>
+
+ <ul>
+
+ {% pp_get_argument_list object=pp_solution.solution
arg_type="yea" %}
+
+ {% for arg in pp_argumentation.argument_list %}
+
+ {% if request.user.is_authenticated %}
+ {% pp_consensus_get object=arg.id
user=request.user %}
+ <li> {{pp_consensus.interest}} : <a
href="{% pp_url template='argument_detail.html'
object=arg %}">{{arg.name}}</a> </li>
+ {% endpp_consensus_get %}
+ {% else %}
+ {% pp_consensus_get object=arg.id %}
+ <li> {{pp_consensus.interest}} : <a
href="{% pp_url template='argument_detail.html'
object=arg %}">{{arg.name}}</a> </li>
+ {% endpp_consensus_get %}
+
+ {% endif %}
+
+
+ {% empty %} None yet!
+ {% endfor %}
+
+
+
+ {% endpp_get_argument_list %}
+
+
+
+ </ul>
+
+ </div>
+
+ <div class="nay_argument">
+ <h1>Nay Arguments
+{% if request.user.is_authenticated %}
+<a href="{% pp_url template='submit_nay_argument.html'
object=pp_solution.solution %}">+</a>
+{% endif %}</h1>
+ <ul>
+
+ {% pp_get_argument_list object=pp_solution.solution
arg_type="nay" %}
+
+ {% for arg in pp_argumentation.argument_list %}
+
+ {% pp_consensus_get object=arg.id
user=request.user %}
+ <li> {{pp_consensus.interest}} : <a
href="{% pp_url template='argument_detail.html'
object=arg %}">{{arg.name}}</a> </li>
+ {% endpp_consensus_get %}
+
+
+ {% empty %} None yet!
+ {% endfor %}
+
+ {% endpp_get_argument_list %}
+
+ </ul>
+
+
+ {% endpp_consensus_get %}
+ {% endpp_get_solution %}
+ </div>
+ </div>
+ </div>
+ </div>
+</div> </div>
+ </div>
+</body>
+</html>
+
+
+{% endblock content %}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/solutions.html Mon Jan 17 12:38:36
2011
@@ -0,0 +1,72 @@
+{% extends 'base.html' %}
+
+{% load pp_url %}
+{% load topictags %}
+{% load issuetags %}
+{% load consensustags %}
+{% load argumenttags %}
+{% load solutiontags %}
+
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block browser_bar %}
+ <ul>issues:
+ <li><a STYLE="text-decoration:none" href="{% pp_url
template='solutions.html' dimension='hot'%}">hot</a></li> |
+ <li><a STYLE="text-decoration:none" href="{% pp_url
template='solutions.html' dimension='cont'%}">controversial</a></li> |
+ <li><a STYLE="text-decoration:none" href="{% pp_url
template='solutions.html' dimension='new'%}">new </a></li>
+ </ul>
+ {% endblock %}
+
+{% block content %}
+ <div class="stage">
+ <div class="issuemask">
+
+ <div class="rightcol">
+ {% if request.user.is_authenticated %}
+ <ul><a href="{% pp_url template='submit_solution.html'
object=request.object %}" class='button blue'>Submit Solution</a></ul>
+ {% else %}
+<ul><a href="{% pp_url template='register.html' %}" class='button
blue'>Submit Solution</a></ul>
+ {% endif %}
+ {% include '_rightcol.html' %}
+ </div>
+ <div class="pagehead">
+
+ </div>
+
+ <div class="issuebound">
+
+ {% if request.dimension %}
+
+ {% pp_get_solution_list issue=request.object
dimension=request.dimension %}
+
+
+ {%for iss_obj in pp_solution.solution_list%}
+
+ {% include '_solution.html' %}
+
+ {% endfor %}
+
+ {% endpp_get_solution_list %}
+
+ {% else %}
+ {% pp_get_solution_list issue=request.object dimension="hot" %}
+
+
+ {%for iss_obj in pp_solution.solution_list%}
+
+ {% include '_solution.html' %}
+
+ {% endfor %}
+
+ {% endpp_get_solution_list %}
+ {% endif %}
+ </div>
+ </div>
+ </div>
+{% endblock content %}
+</body>
+</html>
+
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/submit.html Mon Jan 17 12:38:36
2011
@@ -0,0 +1,42 @@
+{% extends 'base.html' %}
+{% load pp_url %}
+{% load issuetags %}
+
+{% block title %}Login Page{% endblock %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block content%}
+
+<div class="stage">
+ <div class="issuemask">
+ <div class="rightcol">
+ <ul>Events:
+ <li>TBA</li>
+ </ul>
+ <ul>Recently Visited:
+ <li>Link 1</li>
+ <li>Link 2</li>
+ </ul>
+
+ </div>
+
+{% pp_issue_form POST=request.POST path=request.path request=request %}
+ <div id = "add">
+ <h2>Submit a New Issue</h2>
+ {{ pp_issue.form.errors }}
+ <form method="post" action="">
+ Name: <br/>{{ pp_issue.form.name }}<br/>
+ Text: <br/>{{ pp_issue.form.text }}
+ {{ pp_issue.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" value="Submit Issue">
+ </form>
+ </div>
+
+</div></div>
+{% endpp_issue_form %}
+
+{% endblock content %}
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/submit_issue.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,52 @@
+{% extends 'base.html' %}
+{% load pp_url %}
+{% load issuetags %}
+
+{% block title %}Login Page{% endblock %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block content%}
+
+<div class="stage">
+ <div class="issuemask">
+ <div class="rightcol">
+ {% include "_rightcol.html" %}
+
+ </div>
+{% if request.object %}
+{% pp_issue_form POST=request.POST path=request.path request=request
issue=request.object %}
+ <div id = "add">
+ <h2>Edit Issue</h2>
+ {{ pp_issue.form.errors }}
+ <form method="post" action="">
+ Name: <br>{{ pp_issue.form.name }}<br>
+ Text: <br>{{ pp_issue.form.text }}
+ {{ pp_issue.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" class="button green" value="Submit Issue" />
+ </form>
+ </div>
+{% endpp_issue_form %}
+{% else %}
+{% pp_issue_form POST=request.POST path=request.path request=request %}
+ <div id = "add">
+ <h2>Submit a New Issue</h2>
+ {{ pp_issue.form.errors }}
+ <form method="post" action="">
+ Name: <br>{{ pp_issue.form.name }}<br>
+ Text: <br>{{ pp_issue.form.text }}
+ {{ pp_issue.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" class="button green" value="Submit Issue" />
+ </form>
+ </div>
+{% endpp_issue_form %}
+{% endif %}
+
+</div></div>
+
+
+{% endblock content %}
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/submit_nay_argument.html Mon Jan
17 12:38:36 2011
@@ -0,0 +1,34 @@
+{% extends 'base.html' %}
+{% load pp_url %}
+{% load argumenttags %}
+
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block content%}
+
+<div class="stage">
+ <div class="issuemask">
+ <div class="rightcol">
+ {% include "_rightcol.html" %}
+
+ </div>
+
+{% pp_argument_form POST=request.POST path=request.path
object=request.object request=request arg_type='nay' %}
+ <div id = "add">
+ <h2>Submit a new Nay argument for <br>{{request.object.name}}</h2>
+ {{ pp_argumentation.form.errors }}
+ <form method="post" action="">
+ {{ pp_argumentation.form.as_p }}
+ {{ pp_argumentation.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" class="button green" value="Submit Nay" />
+ </form>
+ </div>
+
+</div></div>
+{% endpp_argument_form %}
+
+{% endblock content %}
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/submit_solution.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,36 @@
+{% extends 'base.html' %}
+{% load pp_url %}
+{% load solutiontags %}
+
+{% block title %}Login Page{% endblock %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block content%}
+
+<div class="stage">
+ <div class="issuemask">
+ <div class="rightcol">
+ {% include "_rightcol.html" %}
+
+ </div>
+
+{% pp_solution_form POST=request.POST path=request.path
issue=request.object request=request %}
+ <div id = "add">
+ <h2>Submit a new solution for: <br>{{request.object.name}}</h2>
+ {{ pp_solution.form.errors }}
+ <form method="post" action="">
+ Name: <br>{{ pp_solution.form.name }}<br>
+ Text: <br>{{ pp_solution.form.text }}
+ {{ pp_solution.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" class="button green" value="Submit Solution" />
+ </form>
+ </div>
+
+</div></div>
+{% endpp_solution_form %}
+
+{% endblock content %}
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/submit_yea_argument.html Mon Jan
17 12:38:36 2011
@@ -0,0 +1,35 @@
+{% extends 'base.html' %}
+{% load pp_url %}
+{% load argumenttags %}
+
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block content%}
+
+<div class="stage">
+ <div class="issuemask">
+ <div class="rightcol">
+ {% include "_rightcol.html" %}
+
+ </div>
+
+{% pp_argument_form POST=request.POST path=request.path
object=request.object request=request arg_type='yea' %}
+ <div id = "add">
+ <h2>Submit a new Yea argument for <br>{{request.object.name}}</h2>
+ {{ pp_argumentation.form.errors }}
+ <form method="post" action="">
+ Name: <br>{{ pp_argumentation.form.name }}<br>
+ Text: <br>{{ pp_argumentation.form.text }}
+ {{ pp_argumentation.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" class="button green" value="Submit Yea" />
+ </form>
+ </div>
+
+</div></div>
+{% endpp_argument_form %}
+
+{% endblock content %}
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/tag_detail.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,82 @@
+{% extends 'base.html' %}
+
+{% load pp_url %}
+{% load argumenttags %}
+{% load consensustags %}
+
+
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% 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>
+
+ <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>
+ </div>
+ </div>
+ </div>
+ </div>
+{% endblock content %}
+</body>
+</html>
+
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/topics.html Mon Jan 17 12:38:36
2011
@@ -0,0 +1,32 @@
+{% extends "base.html" %}
+{% load pp_url %}
+{% load topictags %}
+{% block title %}
+{% if request.object %}{{ request.object.text }}{% endif %} Topics
+{% endblock title %}
+
+{% block content %}
+{% pp_get_topic_list topic=request.object %}
+ {% if pp_topic.topic_list %}
+ <h2>Topics</h2>
+ <ol>
+ {% for topic in pp_topic.topic_list %}
+
+ <li> <a href="{% pp_url template="topics.html" object=topic %}">{{
topic.text }}</a> </li>
+
+ {% endfor %}
+
+ </ol>
+{% endif %}
+
+{% endpp_get_topic_list %}
+{% pp_topic_form POST=request.POST path=request.path root=request.object %}
+<h2> Create a new topic </h2>
+ <form method="post" action="">
+ {{ pp_topic.form.as_p }}
+ {% csrf_token %}
+ <input type="submit" value="Submit">
+ </form>
+{% endpp_topic_form %}
+
+{% endblock %}
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/user_profile.html Mon Jan 17
12:38:36 2011
@@ -0,0 +1,81 @@
+{% extends 'base.html' %}
+
+{% load pp_url %}
+{% load argumenttags %}
+{% load profiletags %}
+
+
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% 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">
+
+ </div>
+
+ {% pp_get_user_profile user=request.object %}
+
+ <div class="issuebound">
+
+ {% if pp_profile.profile %}
+ <h1>{{pp_profile.user.username}}:</h2>
+
+
+ Date of Birth: {{pp_profile.profile.birth_date}}<br>
+ Bio: {{pp_profile.profile.bio}}
+
+ {% else %}
+ {% ifequal request.user request.object %}
+ {% if request.user.is_authenticated %}
+ {% pp_profile_form POST=request.POST
user=request.user %}
+ <h2>Add profile for {{request.user.username}}</h2>
+ <div id = "add">
+ {{ pp_profile.form.errors }}
+ <form method="post" action="">
+ Birth Date:<br>
+ {{ pp_profile.form.birth_date}}
+ <br>
+ Biography:<br>
+ {{ pp_profile.form.bio}}
+ {{ pp_profile.form.form_id}}
+ {% csrf_token %}
+ <input type="submit" value="Submit">
+ </form>
+ </div>
+ {% endpp_profile_form %}
+
+ {% endif %}
+ {% endifequal %}
+ {% endif %}
+
+
+ <h3>Reputation Reports:</h3>
+
+ <h3>Recent Activity:</h3>
+
+
+ {% endpp_get_user_profile %}
+ </div>
+ </div>
+ </div>
+ </div>
+{% endblock content %}
+</body>
+</html>
+
+
=======================================
--- /dev/null
+++ /trunk/pirate-politics/new_templates/welcome.html Mon Jan 17 12:38:36
2011
@@ -0,0 +1,15 @@
+{% extends 'base.html' %}
+{% load pp_url %}
+{% load usertags %}
+
+{% block title %}Register Page{% endblock %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/style.css" />
+{% endblock %}
+
+{% block content%}
+<h1>WELCOME TO PIRATE-POLITICS</h1>
+
+
+{% endblock content %}
+