[llvm-commits] CVS: llvm-www/pubs/index.html pubs.js
Misha Brukman
brukman at cs.uiuc.edu
Fri Dec 26 10:44:17 PST 2008
Changes in directory llvm-www/pubs:
index.html updated: 1.90 -> 1.91
pubs.js updated: 1.3 -> 1.4
---
Log message:
Split up list of publications into sections by year.
---
Diffs of the changes: (+18 -7)
index.html | 4 ++--
pubs.js | 21 ++++++++++++++++-----
2 files changed, 18 insertions(+), 7 deletions(-)
Index: llvm-www/pubs/index.html
diff -u llvm-www/pubs/index.html:1.90 llvm-www/pubs/index.html:1.91
--- llvm-www/pubs/index.html:1.90 Wed Dec 24 23:27:51 2008
+++ llvm-www/pubs/index.html Fri Dec 26 12:43:11 2008
@@ -1,8 +1,8 @@
<!--#include virtual="../header.incl" -->
<div class="www_sectiontitle">LLVM Related Publications</div>
-<ol id='pubs_list'>
-</ol>
+<div id='pubs_list'>
+</div>
<script src="pubs.js" type="text/javascript"></script>
<script type="text/javascript">displayAllPubs('pubs_list');</script>
Index: llvm-www/pubs/pubs.js
diff -u llvm-www/pubs/pubs.js:1.3 llvm-www/pubs/pubs.js:1.4
--- llvm-www/pubs/pubs.js:1.3 Wed Dec 24 23:27:51 2008
+++ llvm-www/pubs/pubs.js Fri Dec 26 12:43:11 2008
@@ -4,7 +4,8 @@
{url: '2009-03-ASPLOS-Recovery.html',
title: 'Recovery Domains: An Organizing Principle for Recoverable Operating Systems',
author: 'Andrew Lenharth, Samuel T. King, Vikram Adve',
- published: "Proceedings of the Fourteenth International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS '09)"},
+ published: "Proceedings of the Fourteenth International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS '09)",
+ year: 2009},
{url: '2008-12-OSDI-KLEE.html',
title: 'KLEE: Unassisted and Automatic Generation of High-Coverage Tests for Complex Systems Programs',
@@ -529,19 +530,29 @@
/**
* Displays all publications by attaching them to the element with the passed-in
- * id.
+ * id. The publications will be separated by year, and within each, will be in
+ * an ordered list (OL).
*
- * @param {string} id ID of the OL/UL element that will serve as the parent of
- * the publications, each of which will be a list item (LI).
+ * @param {string} id ID of the element that will serve as the parent of
+ * the publications list.
*/
function displayAllPubs(id) {
var MONTHS = [
'Jan.', 'Feb.', 'Mar.', 'Apr.', 'May', 'June',
'July', 'Aug.', 'Sep.', 'Oct.', 'Nov.', 'Dec.'
];
- var list = document.getElementById(id);
+ var container = document.getElementById(id);
+ var list = null;
+ var current_year = -1;
for (var i = 0; i < PUBS.length; ++i) {
var pub = PUBS[i];
+ if (current_year != pub.year) {
+ var header = document.createElement('h2');
+ header.innerHTML = current_year = pub.year;
+ container.appendChild(header);
+ list = document.createElement('ol');
+ container.appendChild(list);
+ }
var item = document.createElement('li');
item.innerHTML += '"<a href="' + pub.url + '">' + htmlEscape(pub.title) +
'</a>"<br>';
More information about the llvm-commits
mailing list