Skip to content
Browse files

added title to pep view

  • Loading branch information...
1 parent 1e2c058 commit f439e4f26a504c97e4e4a704897359e97de5ee02 @nieldomingo committed
Showing with 4 additions and 1 deletion.
  1. +3 −1 evently/pepview/loadpep/data.js
  2. +1 −0 evently/pepview/loadpep/mustache.html
View
4 evently/pepview/loadpep/data.js
@@ -2,5 +2,7 @@ function (data) {
var html = data.rows[0].value['html'];
// remove internal links
html = html.replace(/href="(?!http:)[^"]+"/g, '');
- return {'html': html};
+ var title = data.rows[0].value['title'];
+ var pepnum = data.rows[0].value['num'];
+ return {'html': html, 'title': title, 'pepnum': pepnum};
};
View
1 evently/pepview/loadpep/mustache.html
@@ -1 +1,2 @@
+<h1>PEP {{pepnum}}: {{title}}</h1>
{{{ html }}}

0 comments on commit f439e4f

Please sign in to comment.
Something went wrong with that request. Please try again.