public
Description: Simple personal journal application written in Django (né Logbook)
Homepage: http://treypiepmeier.com/code/chiplog/
Clone URL: git://github.com/trey/chiplog.git
Installed Timeago.
trey (author)
Sat Aug 23 08:56:01 -0700 2008
commit  0a55e017a80f9529b31c5750192e1aa48469e25c
tree    de96cd05b0ed4e07c4d558c8ec89e2f9efa085ce
parent  01248111247a424fad3d07a1c10020fad8551d2d
...
20
21
22
 
 
 
23
...
20
21
22
23
24
25
26
0
@@ -20,4 +20,7 @@ $(document).ready(function() {
0
     $('#header div label').hide();
0
   }
0
 
0
+ // Timeago: http://timeago.yarp.com/
0
+ $('abbr[class*=timeago]').timeago();
0
+
0
 });
...
5
6
7
 
8
9
10
...
5
6
7
8
9
10
11
0
@@ -5,6 +5,7 @@
0
 <script src="http://www.google.com/jsapi" type="text/javascript"></script>
0
 <script type="text/javascript">google.load("jquery", "1.2.6");</script>
0
 <script src="{{ MEDIA_URL }}chiplog/js/jquery.toggleval.js" type="text/javascript"></script>
0
+<script src="{{ MEDIA_URL }}chiplog/js/jquery.timeago.js" type="text/javascript"></script>
0
 <script src="{{ MEDIA_URL }}chiplog/js/base.js" type="text/javascript"></script>
0
 
0
 <div id="wrapper">
...
34
35
36
37
38
39
40
41
 
42
43
44
...
34
35
36
 
 
 
 
 
37
38
39
40
0
@@ -34,11 +34,7 @@
0
         <span class="delete"><a href="/chiplog/delete/{{ entry.id }}/">&otimes;</a></span>
0
         <span class="date">
0
           <a href="/chiplog/edit/{{ entry.id }}">
0
- {% if entry.is_today %}
0
- {{ entry.created|timesince }} ago
0
- {% else %}
0
- {{ entry.created|time }}
0
- {% endif %}
0
+ <abbr class="timeago" title="{{ entry.created|date:"Y-m-d G:i:s" }}">{{ entry.created|date:"l F j, Y" }}</abbr>
0
           </a>
0
         </span>
0
       </div>

Comments

    No one has commented yet.