From 4e700134867dcffd33fc53e710f272c519c2cca1 Mon Sep 17 00:00:00 2001 From: Mathieu Bridon (bochecha) Date: Mon, 23 Nov 2009 21:49:34 +0000 Subject: Special-case the LINK item type in the templates. Ignore-this: f498bd061633fee9b83120e91433db7e darcs-hash:20091123214934-77622-cf80679228854bc8b727f575cc1a5d4bf24e047a.gz --- (limited to 'template.txt') diff --git a/template.txt b/template.txt index bf58057..565c2ee 100644 --- a/template.txt +++ b/template.txt @@ -10,8 +10,7 @@ ${meeting.title} ${heading} -Meeting started by ${meeting.owner} at ${time.start} ${time.timezone}. The full logs are -available at ${meeting.logs} . +${wrap("Meeting started by %s at %s %s. The full logs are available at %s ."%(meeting.owner, time.start, time.timezone, meeting.logs), 1)} @@ -19,16 +18,19 @@ Meeting summary --------------- {% for item in agenda %}\ -{% choose %}\ +{% choose %} {% when item.topic.nick %}${wrap("* %s (%s, %s)"%(item.topic.topic, item.topic.nick, item.topic.time), 1)}{% end %}\ {% otherwise %}${wrap("* %s"%(item.topic.topic), 1)}{% end %} {% end %}\ {% for note in item.notes %}\ -${wrap("* %s: %s (%s, %s)"%(note.itemtype, note.line, note.nick, note.time), 2)} +{% choose %}\ +{% when note.itemtype == 'LINK' %}${wrap("* %s: %s %s (%s, %s)"%(note.itemtype, note.url, note.line, note.nick, note.time), 2)}{% end %}\ +{% otherwise %}${wrap("* %s: %s (%s, %s)"%(note.itemtype, note.line, note.nick, note.time), 2)}{% end %} +{% end %}\ +{% end %}\ {% end %} -{%end%} -Meeting ended at ${time.end} ${time.timezone}. +${wrap("Meeting ended at %s %s."%(time.end, time.timezone), 1)} -- cgit v0.9.1