summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest/templates
diff options
context:
space:
mode:
authorMagnus Hagander2015-01-20 21:49:30 +0000
committerMagnus Hagander2015-01-20 21:49:30 +0000
commitc80b7e1d58f3bac19a6df99ddf3d4bfc50e6a2ee (patch)
tree2947978eda7db22b3ff32a6cf52ca400e163b0f0 /pgcommitfest/commitfest/templates
parenta9f76bd85287a8b530d5a66825f99215573178eb (diff)
Add activity log and RSS feeds
This somehow got dropped from the old site in a feature branch that was never merged...
Diffstat (limited to 'pgcommitfest/commitfest/templates')
-rw-r--r--pgcommitfest/commitfest/templates/activity.html28
-rw-r--r--pgcommitfest/commitfest/templates/base.html2
2 files changed, 30 insertions, 0 deletions
diff --git a/pgcommitfest/commitfest/templates/activity.html b/pgcommitfest/commitfest/templates/activity.html
new file mode 100644
index 0000000..a864eee
--- /dev/null
+++ b/pgcommitfest/commitfest/templates/activity.html
@@ -0,0 +1,28 @@
+{%extends "base.html"%}
+{%load commitfest %}
+{%block contents%}
+
+<table class="table table-striped table-bordered table-hover table-condensed">
+ <thead>
+ <tr>
+ <th>Time</th>
+ <th>User</th>
+{%if not commitfest%}<th>CommitFest</th>{%endif%}
+ <th>Patch</th>
+ <th>Activity</th>
+ </tr>
+ </thead>
+ <tbody>
+{%for a in activity %}
+ <tr>
+ <td style="white-space: nowrap;">{{a.date}}</td>
+ <td>{{a.by}}</td>
+{%if not commitfest%}<td>{{a.cfname}}</td>{%endif%}
+ <td><a href="/{%if commitfest%}{{commitfest.id}}{%else%}{{a.cfid}}{%endif%}/{{a.patchid}}/">{{a.name}}</a></td>
+ <td>{{a.what}}</td>
+ </tr>
+{%endfor%}
+ </tbody>
+</table>
+
+{%endblock%}
diff --git a/pgcommitfest/commitfest/templates/base.html b/pgcommitfest/commitfest/templates/base.html
index 14be28b..e60f3a9 100644
--- a/pgcommitfest/commitfest/templates/base.html
+++ b/pgcommitfest/commitfest/templates/base.html
@@ -8,6 +8,7 @@
<link rel="stylesheet" href="/static/commitfest/css/bootstrap.css" />
<link rel="stylesheet" href="/static/commitfest/css/bootstrap-theme.min.css" />
<link rel="shortcut icon" href="/static/commitfest/favicon.ico" />
+{%if rss_alternate%} <link rel="alternate" type="application/rss+xml" title="{{rss_alternate_title}}" href="{{rss_alternate}}" />{%endif%}
</head>
<body>
<div class="container-fluid">
@@ -24,6 +25,7 @@
<a href="/account/login/?next={{request.path}}">Log in</a>
{%endif%}
</li>
+{%if header_activity%} <li class="pull-right active"><a href="{{header_activity_link}}">{{header_activity}}</a></li>{%endif%}
</ul>
<h1>{{title}}</h1>