Browse Source

Templating fixes, added timestamps.

Nathaniel van Diepen 10 years ago
parent
commit
15d9842988
4 changed files with 13 additions and 10 deletions
  1. 1 1
      bugs.appcache
  2. 7 7
      data/pages/project.template
  3. 1 1
      data/version
  4. 4 1
      js/index.js

+ 1 - 1
bugs.appcache

@@ -111,4 +111,4 @@ NETWORK:
 *
 
 FALLBACK:
-Version Mon Nov 18 12:42:06 MST 2013
+Version Mon Nov 18 13:37:35 MST 2013

+ 7 - 7
data/pages/project.template

@@ -1,19 +1,19 @@
-<h3>
-	{{title}} - <a style="font-size:small;color:gray;text-decoration:none;" href="#~{{user.name}}">{{user.name}}</a>
-</h3>
-<div>
+<h2>
+	{{title}} <a style="font-size:small;color:gray;text-decoration:none;" href="#~{{user.name}}">{{user.name}}</a>
+</h2>
+<div style="font-size:large;">
 	{{description}}
 </div>
-<h4>
+<span style="font-size:small;">
 	Comments
-</h4>
+</span>
 <ul>
 	{{#each comments}}
 		<li>
 			<a style="font-size:small;color:gray;text-decoration:none;" href="#~{{name}}">
 				{{name}}
 			</a>
-			<time class="timeago">
+			<time style="font-size:smaller;" class="timeago">
 				{{timestamp}}
 			</time>
 			<div>

+ 1 - 1
data/version

@@ -1 +1 @@
-Mon Nov 18 12:42:06 MST 2013
+Mon Nov 18 13:37:35 MST 2013

+ 4 - 1
js/index.js

@@ -310,7 +310,10 @@
 				$(selector).find('time.timeago').each(function(){
 					var time = new Date($(this).text()*1000);
 					$(this).replaceWith(
-						$('<abbr>').attr('title',time.toISOString()).timeago()
+						$('<abbr>').attr({
+							'title': time.toISOString(),
+							'style': $(this).attr('style')
+						}).addClass($(this).attr('class')).timeago()
 					);
 				});
 			},