expose possibility to subscribe to calendar

This commit is contained in:
Frédéric Péters 2009-07-17 09:21:31 +00:00
parent b27d107686
commit 4ad30f57e0
3 changed files with 21 additions and 0 deletions

View File

@ -108,6 +108,17 @@ class AgendaDirectory(Directory):
misc.get_month_name(self.month), self.year)
'</p>'
root_url = get_publisher().get_root_url()
'<div id="agenda-subs">'
'<p>'
_('You can subscribe to this calendar:')
'</p>'
'<ul>'
' <li><a href="%sagenda/icalendar" id="par_ical">%s</a></li>' % (root_url, _('iCalendar'))
' <li><a href="%sagenda/feed" id="par_rss">%s</a></li>' % (root_url, _('Feed'))
'</ul>'
'</div>'
def display_month_links [html] (self):
today = datetime.date(*(time.localtime()[:2] + (1,)))
'<ul id="month-links">'

BIN
theme/ical.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 B

View File

@ -521,6 +521,11 @@ li a#par_rss{
padding:5px 0 5px 20px;
}
li a#par_ical{
background:url(ical.gif) left center no-repeat;
padding:5px 0 5px 20px;
}
#rub_annonce li a:hover {
color:#7dd100;
font-weight:bold;
@ -989,3 +994,8 @@ div#profile ul {
div#profile p.command {
margin-left: 1em;
}
div#agenda-subs {
clear: both;
}