Changeset 0d1ed019eb9d4e582193457c2a32a71be2d89f18


Ignore:
Timestamp:
08.08.2013 22:44:45 (7 years ago)
Author:
Stanislaw Klekot <dozzie@…>
Branches:
b66903eafbcb1d49112014abc82c8bf683413db0
Children:
8c19aecdceb24b9c961cf4c1a7076c429b305d4e
Parents:
5e6c197b2877c0a3757b26b78b8d73550bb0e0fa
git-author:
Stanislaw Klekot <dozzie@…> (08.08.2013 22:44:45)
git-committer:
Stanislaw Klekot <dozzie@…> (08.08.2013 22:44:45)
Message:

Added "page refreshed" information.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • dashwiki/context_processors.py

    rdbb332 r0d1ed0  
    22 
    33from django.conf import settings 
     4import time 
    45 
    56#----------------------------------------------------------------------------- 
     
    1314  return { 'dashwiki': value } 
    1415 
     16def current_time(request): 
     17  return { 
     18    'NOW':     time.strftime("%Y/%m/%d %H:%M:%S %z"), 
     19    'NOW_UTC': time.strftime('%Y/%m/%d %H:%M:%S +0000', time.gmtime()), 
     20  } 
     21 
    1522#----------------------------------------------------------------------------- 
    1623# vim:ft=python:foldmethod=marker 
  • dashwiki/settings.py

    rd8164e r0d1ed0  
    148148  'django.core.context_processors.request', # enable `request' in templates 
    149149  'dashwiki.context_processors.dashwiki_settings', # dashwiki.DASHWIKI_* 
     150  'dashwiki.context_processors.current_time',      # NOW, NOW_UTC 
    150151) 
    151152 
  • static/style.css

    r5e6c19 r0d1ed0  
    112112} 
    113113 
     114#right-subnavbar { 
     115  padding: 0; 
     116  float: right; 
     117  padding: 0 10px; 
     118  padding-top: 2px; 
     119  color: #999a9c; 
     120} 
     121 
    114122/*--------------------------------------------------------------------------*/ 
    115123 
  • templates/template.html

    rd8164e r0d1ed0  
    3333{% endif %} 
    3434      </ul> 
     35      <div id="right-subnavbar"> 
     36        refreshed at {{ NOW }} 
     37      </div> 
    3538    </div> 
    3639    <div id="content"> 
Note: See TracChangeset for help on using the changeset viewer.