forked from cmu-catalyst/cmu-catalyst.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publications.tmpl
53 lines (53 loc) · 1.58 KB
/
publications.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<table class="table">
<tbody>
{%- set prev_year = 1900 %}
{%- for entry in entries %}
<tr>
<td>
<span class="date">
{% if entry.fields['year'] != prev_year %}
<big><strong>{{ entry.fields['year'] }}</strong></big><br />
{% endif %}
{%- set prev_year = entry.fields['year'] %}
{{ entry.fields['month']|monthname }}
</span>
</td>
<td class="publication">
<span class="pubtitle">
{%- set url = entry|main_url %}
{%- if url %}
<img src="img/pdficon_small.png" width="16"
height="16" alt="PDF" />
<a href="{{ url|escape }}">{{ entry|title }}</a>.
{%- else %}
{{ entry|title }}.
{%- endif %}
</span><br />
<span class="authors">
{{ entry.persons['author']|author_list }}.
</span><br />
<span class="venuetype">{{ entry|venue_type -}}</span><span class="venue">{{ entry|venue -}}</span>.
{%- if entry.fields['note'] %}
<span class="note">
{{ entry.fields['note']|escape }}.
</span>
{%- endif %}
<br />
<span class="links">
{%- for type, url in (entry|extra_urls).items() %}
[<a href="{{ url|escape }}">{{ type|escape }}</a>]
{%- endfor %}
{%- if entry.fields['abstract'] %}
[<a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);" onclick="$('#abstract_{{entry.fields['key']}}').slideToggle('fast');return false;">abstract</a>]
{%- endif %}
</span>
{%- if entry.fields['abstract'] %}
<div id="abstract_{{entry.fields['key']}}" class="abstract">
{{ entry.fields['abstract'] |escape }}
</div>
{%- endif %}
</td>
</tr>
{%- endfor %}
</tbody>
</table>