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

svn at argo.es svn at argo.es
Fri Jun 15 23:29:26 CEST 2007


Author: alvaro
Date: Fri Jun 15 23:29:23 2007
New Revision: 159

Log:
Aniadido el numero de respuestas a la portada.


Modified:
   trunk/frontend-web/skins.py
   trunk/frontend-web/skins/default/body_threadlist_thread.html
   trunk/frontend-web/skins/default/body_threadlist_thread_unread.html
   trunk/frontend-web/url_indice.py

Modified: trunk/frontend-web/skins.py
==============================================================================
--- trunk/frontend-web/skins.py	(original)
+++ trunk/frontend-web/skins.py	Fri Jun 15 23:29:23 2007
@@ -164,7 +164,7 @@
     thread_len=globales.thread_len
     for date,threads in t_list:
       self.set_text(available_skins[self._skin]['group_date'] % {'group_date':daydate(date,self._tz)})
-      for thread, title, ts, nr, nr_point in threads:
+      for thread, title, ts, nr, nr_point, n_msgs in threads:
         format = self._style.pop(0)
         self._style.append(format)
         if nr:
@@ -174,13 +174,15 @@
               "link_notread": "/hilo/%d/%d#%d" %(thread,page,nr_point),
               "t_date": hourdate(ts,self._tz),
               "format": format,
-              "not_read":nr_point
+              "not_read":nr_point,
+              "t_replies":n_msgs
               }
         else:
           aux = available_skins[self._skin]['thread'] % {"title":title,
               "link": "/hilo/%d" %thread,
               "t_date":hourdate(ts,self._tz),
-              "format": format
+              "format": format,
+              "t_replies":n_msgs
               }
         self.set_text(aux)
 

Modified: trunk/frontend-web/skins/default/body_threadlist_thread.html
==============================================================================
--- trunk/frontend-web/skins/default/body_threadlist_thread.html	(original)
+++ trunk/frontend-web/skins/default/body_threadlist_thread.html	Fri Jun 15 23:29:23 2007
@@ -1,3 +1,3 @@
 <div class="alt %(format)s" onkeypress="window.location='%(link)s';" onclick="window.location='%(link)s';" >
-  <a href="%(link)s">%(title)s</a> (%(t_date)s)
+  <a href="%(link)s">%(title)s</a> (%(t_date)s) - Respuestas: %(t_replies)s
 </div>

Modified: trunk/frontend-web/skins/default/body_threadlist_thread_unread.html
==============================================================================
--- trunk/frontend-web/skins/default/body_threadlist_thread_unread.html	(original)
+++ trunk/frontend-web/skins/default/body_threadlist_thread_unread.html	Fri Jun 15 23:29:23 2007
@@ -1,3 +1,3 @@
 <div class="alt %(format)s" onkeypress="window.location='%(link)s';" onclick="window.location='%(link)s';" >
-  <a href="%(link)s">%(title)s</a> (%(t_date)s) - <a href='%(link_notread)s'>No le&iacute;do</a>
+  <a href="%(link)s">%(title)s</a> (%(t_date)s) - <a href='%(link_notread)s'>No le&iacute;do</a>  - Respuestas: %(t_replies)
 </div>

Modified: trunk/frontend-web/url_indice.py
==============================================================================
--- trunk/frontend-web/url_indice.py	(original)
+++ trunk/frontend-web/url_indice.py	Fri Jun 15 23:29:23 2007
@@ -75,7 +75,8 @@
         title,
         hilos[id]["TS"], 
         hilos[id]["mensajes"].get(punto_no_leido.get(id,None)), # El numero de mensajes hasta el no leido
-        punto_no_leido.get(id,None)) for id,title,not_read in h])) # El punto donde el usuario no ha leido
+        punto_no_leido.get(id,None),
+        hilos[id]["num_mensajes"]) for id,title,not_read in h])) # El punto donde el usuario no ha leido
 
       num_hilos+=l
     ts=ts2



More information about the cpif mailing list