Add publications template
This commit is contained in:
parent
9f8c9fa092
commit
1b845a3db7
1 changed files with 29 additions and 0 deletions
29
templates/publications.html
Normal file
29
templates/publications.html
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
{% block title %}Publications{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
function disp(s) {
|
||||||
|
var win;
|
||||||
|
var doc;
|
||||||
|
win = window.open("", "WINDOWID");
|
||||||
|
doc = win.document;
|
||||||
|
doc.open("text/plain");
|
||||||
|
doc.write("<pre>" + s + "</pre>");
|
||||||
|
doc.close();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<section id="content" class="body">
|
||||||
|
<h1 class="entry-title">Publications</h1>
|
||||||
|
<ul>
|
||||||
|
{% for key, year, text, bibtex, pdf, slides, poster in publications %}
|
||||||
|
<li id="{{ key }}">{{ text }}
|
||||||
|
[ <a href="javascript:disp('{{ bibtex|replace('\n', '\\n')|escape|forceescape }}');">Bibtex</a> ]
|
||||||
|
{% for label, target in [('PDF', pdf), ('Slides', slides), ('Poster', poster)] %}
|
||||||
|
{{ "[ <a href=\"%s\">%s</a> ]" % (target, label) if target }}
|
||||||
|
{% endfor %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
{% endblock %}
|
Loading…
Reference in a new issue