Commits

zerodx  committed 224c48a

Template modifications.

  • Participants
  • Parent commits 4a461fc

Comments (0)

Files changed (2)

                            logout_url = users.create_logout_url("/"), 
                            links = l,
                            flashes = get_flashed_messages(),
-                           start = start);
+                           start = time() - start);
 
 # set the secret key.  keep this really secret:
 app.secret_key = 'the secret key'

File templates/main.html

     <section id='links'>
         <ul>
             {% for link in links %}
-            <li><a href="{{ link }}">{{ link }}</a></li>
+            <li class="{{ loop.cycle('odd', 'even') }}"><a href="{{ link }}">{{ link[7:]|truncate(80, True, '...') }}</a></li>
             {% endfor %}
         </ul>
     </section>