diff options
author | Mathieu Bridon (bochecha) <bochecha@fedoraproject.org> | 2009-11-23 21:49:34 (GMT) |
---|---|---|
committer | Mathieu Bridon (bochecha) <bochecha@fedoraproject.org> | 2009-11-23 21:49:34 (GMT) |
commit | 4e700134867dcffd33fc53e710f272c519c2cca1 (patch) | |
tree | c2e312e80a9775e040327d7d1a9c947e8f432bf8 /template.html | |
parent | fc635478cc6676e2e3064f7ee3877418ab831c25 (diff) |
Special-case the LINK item type in the templates.
Ignore-this: f498bd061633fee9b83120e91433db7e
darcs-hash:20091123214934-77622-cf80679228854bc8b727f575cc1a5d4bf24e047a.gz
Diffstat (limited to 'template.html')
-rw-r--r-- | template.html | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/template.html b/template.html index 58c92e4..b67b935 100644 --- a/template.html +++ b/template.html @@ -54,7 +54,21 @@ hr { <py:if test="len(item.notes) > 0"> <li py:for="note in item.notes"> <i class="itemtype">${note.itemtype}</i>: - <span class="${note.itemtype}">${note.line}</span> + <py:choose> + <py:when test="note.itemtype == 'LINK'"> + <span class="${note.itemtype}"> + <a href="${note.url}"> + <py:choose> + <py:when test="note.line">${note.line}</py:when> + <py:otherwise>${note.url}</py:otherwise> + </py:choose> + </a> + </span> + </py:when> + <py:otherwise> + <span class="${note.itemtype}">${note.line}</span> + </py:otherwise> + </py:choose> <span class="details">(<a href='${meeting.logs}#${note.anchor}'>${note.nick}</a>, ${note.time})</span> </li> </py:if> |