[Oi-commits] r1113 - in trunk: forum templates/forum

oi-commits at pardus.org.tr oi-commits at pardus.org.tr
Fri Mar 7 18:52:27 EET 2008


Author: jnmbk
Date: Fri Mar  7 18:52:27 2008
New Revision: 1113

Modified:
   trunk/forum/models.py
   trunk/templates/forum/topic.html
Log:
django already had it :P

Modified: trunk/forum/models.py
=================================================================
--- trunk/forum/models.py	(original)
+++ trunk/forum/models.py	Fri Mar  7 18:52:27 2008
@@ -82,7 +82,6 @@
                        ("can_see_post_ip", "Can see author ip"),
                        ("can_hide_post", "Can hide"),
                        ("can_see_hidden_posts", "Can see hidden posts"),
-                       ("can_edit_post", "Can edit post"),
                       )
 
     def save(self):
@@ -193,7 +192,6 @@
                        ("can_tag_topic", "Can tag topic"),
                        ("can_see_hidden_topics", "Can see hidden topics"),
                        ("can_merge_topic", "Can merge topic"),
-                       ("can_edit_topic", "Can edit topic"),
                       )
 
     def save(self):

Modified: trunk/templates/forum/topic.html
=================================================================
--- trunk/templates/forum/topic.html	(original)
+++ trunk/templates/forum/topic.html	Fri Mar  7 18:52:27 2008
@@ -39,12 +39,12 @@
             <div id="post_message_top_date">
                 {{ post.created|date:"d-m-Y H:i" }}
             </div>
-            {% if perms.forum.can_edit_topic %}
+            {% if perms.forum.change_topic %}
             <div id="post_message_top_button">
                 <a href="{{ topic.get_edit_url }}">edit_topic</a>
             </div>
             {% endif %}
-            {% if perms.forum.can_edit_post %}
+            {% if perms.forum.change_post %}
             <div id="post_message_top_button">
                 <a href="{{ post.get_edit_url }}"><img src="/media/dijital/img/forum/duzenle.jpg" border="0" /></a>
             </div>


More information about the Oi-commits mailing list