[cpif] r253 - trunk/frontend-web
svn at argo.es
svn at argo.es
Tue Jul 10 12:19:31 CEST 2007
Author: jcea
Date: Tue Jul 10 12:19:30 2007
New Revision: 253
Log:
Cosmetica en el calendario
Modified:
trunk/frontend-web/calendario.py
Modified: trunk/frontend-web/calendario.py
==============================================================================
--- trunk/frontend-web/calendario.py (original)
+++ trunk/frontend-web/calendario.py Tue Jul 10 12:19:30 2007
@@ -27,34 +27,32 @@
"month_name": nombres_meses[fecha[1]].capitalize(),
"current_year": fecha[0],
}
- prev_year_text = '<a href="/indice/%%(metatag)d/%d"><<</a>' % (date_number - 100)
- next_year_text = '<a href="/indice/%%(metatag)d/%d">>></a>' % (date_number + 100)
- prev_month_text = '<a href="/indice/%%(metatag)d/%d"><</a>' % ((date_number - 1)
+ prev_year_text = '<a href="/indice/%%(metatag)d/%d">«</a>' % (date_number - 100)
+ next_year_text = '<a href="/indice/%%(metatag)d/%d">»</a>' % (date_number + 100)
+ prev_month_text = '<a href="/indice/%%(metatag)d/%d">‹</a>' % ((date_number - 1)
if month > 1
else (date_number - 89))
- next_month_text = '<a href="/indice/%%(metatag)d/%d">></a>' % ((date_number + 1)
+ next_month_text = '<a href="/indice/%%(metatag)d/%d">›</a>' % ((date_number + 1)
if month < 12
else (date_number + 89))
if yearmon_min > prev_y:
- data.update({ 'prev_year': "<<",
+ data.update({ 'prev_year': "«",
'prev_month': (prev_month_text
if yearmon_min < orig_date
- else "<") })
+ else "‹") })
else:
data.update({ 'prev_month': prev_month_text,
- 'prev_year': ("<<"
+ 'prev_year': ("«"
if yearmon_min.month > prev_y.month
else prev_year_text) })
- print orig_date
- print yearmon_max
if yearmon_max < next_y:
- data.update({ 'next_year': ">>",
- 'next_month': (">"
+ data.update({ 'next_year': "»",
+ 'next_month': ("›"
if yearmon_max <= orig_date
else next_month_text) })
else:
data.update({ 'next_month': next_month_text,
- 'next_year': (">>"
+ 'next_year': ("»"
if yearmon_max.month > next_y.month
else next_year_text) })
@@ -82,3 +80,4 @@
import datetime
dt=datetime.datetime.fromtimestamp(ts,tz)
return "%d de %s de %d, a las %.2d:%.2d" %(dt.day,nombres_meses[dt.month],dt.year,dt.hour,dt.minute)
+
More information about the cpif
mailing list