forked from gemoc/gemoc.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
/
publications.rhtml
56 lines (46 loc) · 1.43 KB
/
publications.rhtml
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
54
55
56
---
layout: default
---
<script>
var ie4 = false; if(document.all) { ie4 = true; }
function getObj(id) { if (ie4) { return document.all[id]; } else { return document.getElementById(id); } }
function toggle(elemName, linkName, text) {
elem = getObj (elemName);
link = getObj (linkName);
if (elem.style.display == 'block') {
elem.style.display = 'none';
link.innerHTML = text;
} else {
elem.style.display = 'block';
link.innerHTML = 'hide '+text;
}
}
</script>
<!-- Page Heading/Breadcrumbs -->
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Publications
</h1>
<ol class="breadcrumb">
<li><a href="{{ site.baseurl }}/">Home</a>
</li>
<li class="active">Publications</li>
</ol>
</div>
</div>
<!-- /.row -->
<!-- Content Row -->
<div class="row">
<div class="col-lg-12">
<h1>Publications, by date</h1>
<% years = bib.all_values(:year).sort.reverse; years.each do |year| %>
<% lst = bib["@entry[year=#{year}]"] %>
<h3 class="year"><%= year %></h3>
<OL>
<% lst.each do |entry| %>
<li><%= embed("entry.rhtml", :entry => entry) %></li>
<% end %>
</OL>
<% end %>
</div>
</div>