Repository : http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
commit 4036030b5df9ab569bfba6a57edac66e21465619 Author: Pierre-Yves Chibon pingou@pingoured.fr Date: Thu Nov 15 20:31:46 2012 +0100
Fix the mailto link to the contact of the calendar
As we do not require a contact at the database level, we do consider the case where the email is empty, in such case the link is not presented.
fedocal/templates/master.html | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/fedocal/templates/master.html b/fedocal/templates/master.html index 895d7cb..6a1b0b2 100644 --- a/fedocal/templates/master.html +++ b/fedocal/templates/master.html @@ -61,9 +61,13 @@ calendar_name=calendar.calendar_name)}}" title="Add this calendar to your agenda">iCal export</a> </li> + {% if calendar.calendar_contact %} <li> - <a href="#">Contact admin</a> + <a href="mailto:{{calendar.calendar_contact}}"> + Contact admin + </a> </li> + {% endif %} </ul> </li> {% endfor %}
fedocal-devel@lists.fedorahosted.org