[pirate-politics] r525 committed - removed references to treebeard

1 view
Skip to first unread message

pirate-...@googlecode.com

unread,
Jan 26, 2011, 6:59:52 PM1/26/11
to pirate-poli...@googlegroups.com
Revision: 525
Author: fragro
Date: Wed Jan 26 15:58:58 2011
Log: removed references to treebeard
http://code.google.com/p/pirate-politics/source/detail?r=525

Modified:
/trunk/pirate-politics/pirate_comments/models.py
/trunk/pirate-politics/pirate_comments/templatetags/commenttags.py
/trunk/pirate-politics/static/style.css

=======================================
--- /trunk/pirate-politics/pirate_comments/models.py Wed Jan 26 15:29:32
2011
+++ /trunk/pirate-politics/pirate_comments/models.py Wed Jan 26 15:58:58
2011
@@ -4,7 +4,6 @@
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
-from treebeard.ns_tree import NS_Node


#from ModuleDeliberation.models import Comment
=======================================
--- /trunk/pirate-politics/pirate_comments/templatetags/commenttags.py Wed
Jan 26 15:29:32 2011
+++ /trunk/pirate-politics/pirate_comments/templatetags/commenttags.py Wed
Jan 26 15:58:58 2011
@@ -21,6 +21,24 @@

get_namespace = namespace_get('pp_comment')

+
+@block
+def pp_comment_count(context, nodelist, *args, **kwargs):
+ context.push()
+ namespace = get_namespace(context)
+
+ object_pk = kwargs.get('object', None)
+
+ comments = Comment.objects.all()
+ count = len(list(comments.filter(object_pk=object_pk)))
+
+ namespace['count'] = count
+
+ output = nodelist.render(context)
+ context.pop()
+
+ return output
+
@block
def pp_comment_get(context, nodelist, *args, **kwargs):
pass
=======================================
--- /trunk/pirate-politics/static/style.css Wed Jan 26 15:29:32 2011
+++ /trunk/pirate-politics/static/style.css Wed Jan 26 15:58:58 2011
@@ -73,8 +73,6 @@
background-position: 0 center;
color:#BCBCBC;
}
-
-

.register_title {
float:center;
@@ -155,7 +153,7 @@

.issuebound {
position:relative;
- width:68%;
+ width:67%;
/*position:left;*/
float:left;
/*border:2px dashed #67A3E4;*/
@@ -179,7 +177,7 @@

.rightcol {
position:relative;
- width:24%;
+ width:25%;
float:left;
overflow:hidden;
color:black;
@@ -374,7 +372,7 @@
}

.bullet:after {
- color:white;
+ color:black;
content:"interest";
position: relative;
width: 45px;;
@@ -387,8 +385,6 @@
font-size:80%;

}
-
-

.commentstructure li {
padding:5px;
@@ -398,12 +394,12 @@


.bullet h1, .bullet p {
- color:white;
+ color:black;
padding:8px;
text-align:center;
border:0;
position:relative;
- left:-2px;
+ left:0px;
bottom:+2px;
overflow:visible;
}

Reply all
Reply to author
Forward
0 new messages