[cpif] r303 - in trunk/frontend-web: . skins/default
svn at argo.es
svn at argo.es
Mon Jul 30 17:13:56 CEST 2007
Author: alvaro
Date: Mon Jul 30 17:13:55 2007
New Revision: 303
Log:
Enlaces para monitorizar/desmonitorizar los hilos
Added:
trunk/frontend-web/skins/default/body_show_thread_mon.html
- copied, changed from r302, /trunk/frontend-web/skins/default/body_show_thread_last.html
trunk/frontend-web/skins/default/body_show_thread_unmon.html
Modified:
trunk/frontend-web/skins.py
trunk/frontend-web/skins/default/body_show_thread.html
Modified: trunk/frontend-web/skins.py
==============================================================================
--- trunk/frontend-web/skins.py (original)
+++ trunk/frontend-web/skins.py Mon Jul 30 17:13:55 2007
@@ -19,6 +19,8 @@
'thread_num_inactive': 'body_show_thread_num_inactive.html',
'thread_next': 'body_show_thread_next.html',
'thread_last': 'body_show_thread_last.html',
+ 'thread_mon': 'body_show_thread_mon.html',
+ 'thread_unmon': 'body_show_thread_unmon.html',
'new_user': 'body_new_user.html',
'generic': 'body_generic.html',
'body': 'body_threadlist.html',
@@ -177,6 +179,8 @@
if first_post + thread_len * 2 <= num_msgs:
aux.append(available_skins[self._skin]['thread_last'] % {'link': '/hilo/%d/%d' % (thread_num, 1 + (num_msgs/thread_len) * thread_len)})
self._dict["nav"]="".join(aux)
+ self._dict["mon"] = available_skins[self._skin]['thread_unmon'] if self._dict["monitor"] else available_skins[self._skin]['thread_mon']
+
def list_metatags(self):
"""Format the thread list"""
Modified: 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.html Mon Jul 30 17:13:55 2007
@@ -2,6 +2,7 @@
<h4>Subforo: %(metatag_title)s</h4>
<h2>Título: %(thread_title)s</h2>
<h3>Iniciado por %(thread_author)s</h3>
+ %(mon)s
<ul class="nav">
%(nav)s
</ul>
Copied: trunk/frontend-web/skins/default/body_show_thread_mon.html (from r302, /trunk/frontend-web/skins/default/body_show_thread_last.html)
==============================================================================
--- /trunk/frontend-web/skins/default/body_show_thread_last.html (original)
+++ trunk/frontend-web/skins/default/body_show_thread_mon.html Mon Jul 30 17:13:55 2007
@@ -1 +1 @@
-<li class="linkidx"><a href='%(link)s'>»</a></li>
+<p class="right"><a href="#">Monitorizar</a></p>
Added: trunk/frontend-web/skins/default/body_show_thread_unmon.html
==============================================================================
--- (empty file)
+++ trunk/frontend-web/skins/default/body_show_thread_unmon.html Mon Jul 30 17:13:55 2007
@@ -0,0 +1 @@
+<p class="right"><a href="#">Dejar de monitorizar</a></p>
More information about the cpif
mailing list