[cpif] r347 - trunk/frontend-web

svn at argo.es svn at argo.es
Mon Sep 10 18:36:02 CEST 2007


Author: alvaro
Date: Mon Sep 10 18:36:01 2007
New Revision: 347

Log:
Icono nuevos mensajes


Modified:
   trunk/frontend-web/skins.py

Modified: trunk/frontend-web/skins.py
==============================================================================
--- trunk/frontend-web/skins.py	(original)
+++ trunk/frontend-web/skins.py	Mon Sep 10 18:36:01 2007
@@ -83,7 +83,10 @@
     replacement={"***CSS***":"/static/css/%s" %css,
                  "***JS***":"/static/js/%s" %js}
 
-    icons = {"icon ro": os.path.join(sdir,dir,"icons/phpBB2/topic_lock.gif")}
+    icons = {
+        "icon ro": os.path.join(sdir,dir,"icons/phpBB2/topic_lock.gif"),
+        "icon unread": os.path.join(sdir,dir,"icons/phpBB2/icon_newest_reply.gif"),
+        }
     @monitor
     def save_icons(conn,icons):
       from database import save_static,check_image
@@ -100,7 +103,7 @@
       data=f.read()
       for k,v in replacement.iteritems() :
         data=data.replace(k,v)
-      available_skins[dir][skin]=data
+      available_skins[dir][skin] = data
       f.close()
 
 if "default" not in available_skins: # FIXME: an~adir un skin de fallback?
@@ -217,7 +220,7 @@
         mon = available_skins[self._skin]['metatag_unmon'] if mon else available_skins[self._skin]['metatag_mon']
         mon = mon % { "metatag_num": id }
         if nr:
-          aux = available_skins[self._skin]['metatag_unread'] % {"title":title, "format": format, "link": "/indice/%d" % id, "mon": mon}
+            aux = available_skins[self._skin]['metatag_unread'] % {"title":title, "format": format, "link": "/indice/%d" % id, "mon": mon, "icon unread": icons["icon unread"]}
         else:
           aux = available_skins[self._skin]['metatag'] % {"title":title, "format": format, "link": "/indice/%d" % id, "mon": mon}
       else:
@@ -250,6 +253,7 @@
                 "t_replies": n_msgs,
                 "mon":mon,
                 "read only": read_only,
+                "icon unread": icons["icon unread"],
                 }
           else:
             aux = available_skins[self._skin]['thread'] % {"title":title,



More information about the cpif mailing list