[cpif] r146 - in trunk/frontend-web: . skins/default

svn at argo.es svn at argo.es
Tue Jun 12 18:47:23 CEST 2007


Author: alvaro
Date: Tue Jun 12 18:47:22 2007
New Revision: 146

Log:
Eliminado el form de aniadir un nuevo post al hilo.


Added:
   trunk/frontend-web/skins/default/body_show_thread_anonymous.html
      - copied, changed from r145, /trunk/frontend-web/skins/default/body_show_thread.html
Modified:
   trunk/frontend-web/skins.py

Modified: trunk/frontend-web/skins.py
==============================================================================
--- trunk/frontend-web/skins.py	(original)
+++ trunk/frontend-web/skins.py	Tue Jun 12 18:47:22 2007
@@ -9,6 +9,7 @@
 skin_files = {
     'header':         'header.html',
     'body_thread':    'body_show_thread.html',
+    'body_thread_anonymous':    'body_show_thread_anonymous.html',
     'thread_entry':   'body_show_thread_entry.html',
     'thread_prev':    'body_show_thread_prev.html',
     'thread_num':     'body_show_thread_num.html',
@@ -176,9 +177,12 @@
         aux = available_skins[self._skin]['body_anonymous']
     elif "thread_entries" in urls[self._url]:
       self.show_thread()
-      self._dict["link_form_new_post"] = "/nuevo_post_POST/%d/%d" %(metatag,self._dict["msg_num"])
       self._dict["link_metatag"] = "/indice/%d" % metatag
-      aux = available_skins[self._skin]['body_thread']
+      if self._user:
+        self._dict["link_form_new_post"] = "/nuevo_post_POST/%d/%d" %(metatag,self._dict["msg_num"])
+        aux = available_skins[self._skin]['body_thread']
+      else:
+        aux = available_skins[self._skin]['body_thread_anonymous']
     elif "login" in urls[self._url]:
       aux = available_skins[self._skin]['generic'] % { "body": available_skins[self._skin]['form_login']}
       self._dict["link_form_login"] = "/LOGIN/%s" % "/".join(self._path[1:])

Copied: trunk/frontend-web/skins/default/body_show_thread_anonymous.html (from r145, /trunk/frontend-web/skins/default/body_show_thread.html)
==============================================================================
--- /trunk/frontend-web/skins/default/body_show_thread.html	(original)
+++ trunk/frontend-web/skins/default/body_show_thread_anonymous.html	Tue Jun 12 18:47:22 2007
@@ -3,11 +3,5 @@
     <h3>Iniciado por %(thread_author)s</h3>
     %(body)s
     <hr>
-    <p><form action="%(link_form_new_post)s" method="post" enctype="multipart/form-data">
-      <table>
-        <tr><td>Texto:</td><td><br><textarea name="texto" rows="10" cols="60"></textarea></td></tr>
-        <tr><td colspan=2 align=right><input class="form-element" type="submit" name="submit" value="Publicar nuevo mensaje"/></td></tr>
-      </table>
-    </form>
     <a href="%(link_metatag)s">Volver al subforo '%(metatag_title)s'</a><br />
     <a href="/">Pagina principal</a>



More information about the cpif mailing list