Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbochecha <bochecha@fedoraproject.org>2009-09-22 22:50:23 (GMT)
committer bochecha <bochecha@fedoraproject.org>2009-09-22 22:50:23 (GMT)
commit3a083970811ef7c2f3d164f0def202abfcc30843 (patch)
tree7e7f0258604b4a367b5275cd06ee9f94d06b5b96
parente873d2d4436f0133c190c6b091e47d1401d9682b (diff)
Implement a templating system with Genshi
Ignore-this: 691139664a64911d4f875e6f15d58945 This commit adds a default and very simple template as an example of what can be done. darcs-hash:20090922225023-fa9d6-05f574608858f51a870625045c892cbe244bb3b3.gz
-rw-r--r--meeting-minutes-template-meetbot.html88
1 files changed, 88 insertions, 0 deletions
diff --git a/meeting-minutes-template-meetbot.html b/meeting-minutes-template-meetbot.html
new file mode 100644
index 0000000..58c92e4
--- /dev/null
+++ b/meeting-minutes-template-meetbot.html
@@ -0,0 +1,88 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns:py="http://genshi.edgewall.org/">
+<head>
+ <meta http-equiv="Content-type" content="text/html;charset=UTF-8"/>
+ <title>${meeting.title}</title>
+ <style type="text/css">
+/* This is for the .html in the HTML2 writer */
+body {
+ font-family: Helvetica, sans-serif;
+ font-size:14px;
+}
+h1 {
+ text-align: center;
+}
+a {
+ color:navy;
+ text-decoration: none;
+ border-bottom:1px dotted navy;
+}
+a:hover {
+ text-decoration:none;
+ border-bottom: 0;
+ color:#0000B9;
+}
+hr {
+ border: 1px solid #ccc;
+}
+/* The (nick, time) item pairs, and other body text things. */
+.details {
+ font-size: 12px;
+ font-weight:bold;
+}
+/* The 'AGREED:', 'IDEA', etc, prefix to lines. */
+.itemtype {
+ font-style: normal; /* un-italics it */
+ font-weight: bold;
+}
+/* Example: change single item types. Capitalized command name.
+/* .TOPIC { color:navy; } */
+/* .AGREED { color:lime; } */
+
+ </style>
+</head>
+
+<body>
+ <h1>${meeting.title}</h1>
+ <span class="details"> Meeting started by ${meeting.owner} at ${time.start} ${time.timezone} (<a href="${meeting.logs}">full logs</a>).</span>
+
+ <h3>Meeting summary</h3>
+ <ol>
+ <li py:for="item in agenda">
+ <b class="TOPIC">${item.topic.topic}</b> <span py:if="item.topic.nick" class="details">(<a href='${meeting.logs}#${item.topic.anchor}'>${item.topic.nick}</a>, ${item.topic.time})</span>
+ <ol type="a">
+ <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>
+ <span class="details">(<a href='${meeting.logs}#${note.anchor}'>${note.nick}</a>, ${note.time})</span>
+ </li>
+ </py:if>
+ </ol>
+ </li>
+ </ol>
+
+ <span class="details">Meeting ended at ${time.end} ${time.timezone} (<a href="${meeting.logs}">full logs</a>).</span>
+
+ <h3>Action items</h3>
+ <ol>
+ <li py:for="action in actions">${action}</li>
+ </ol>
+
+ <h3>Action items, by person</h3>
+ <ol>
+ <li py:for="attendee in actions_person">${attendee.nick}
+ <ol>
+ <li py:for="action in attendee.actions">${action}</li>
+ </ol>
+ </li>
+ </ol>
+
+ <h3>People present (lines said)</h3>
+ <ol>
+ <li py:for="attendee in attendees">${attendee.nick} (${attendee.count})</li>
+ </ol>
+
+ <span class="details">Generated by <a href="${meetbot.url}">MeetBot</a> ${meetbot.version}.</span>
+</body>
+</html>