Changeset 789 in main


Ignore:
Timestamp:
02/22/12 09:42:58 (10 years ago)
Author:
pcosquer
Message:

templates: remove some useless variables stored in the context

Location:
trunk/openPLM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/base_views.py

    r787 r789  
    3232import traceback 
    3333import sys 
    34  
    35 import Image 
    3634 
    3735from django.conf import settings 
     
    230228     
    231229        >>> init_ctx('BiosOs','BI-0044','1.4.3') 
    232         {'LANGUAGES': (('fr', u'Fran\xc3\xa7ais'), ('en', 'English')), 
    233          'THUMBNAILS_URL': '/media/thumbnails', 
    234          'current_date': datetime.datetime(2010, 8, 27, 11, 34, 21, 639171), 
     230        {'THUMBNAILS_URL': '/media/thumbnails', 
    235231         'object_reference': 'BI-0044', 
    236232         'object_revision': '1.4.3', 
     
    245241    :return: a dictionnary 
    246242    """ 
    247     now = datetime.datetime.now() 
    248243    return { 
    249         'current_date': now, 
    250244        'object_reference': init_reference, 
    251245        'object_revision': init_revision, 
    252246        'object_type': init_type_, 
    253         'search_query' : "", 
    254247        'THUMBNAILS_URL' : settings.THUMBNAILS_URL, 
    255         'LANGUAGES' : settings.LANGUAGES, 
    256248        'can_generate_pdf' : can_generate_pdf(), 
    257249        } 
  • trunk/openPLM/templates/DisplayHomePage.htm

    r772 r789  
    66{% block LoggedPersonBlock %} 
    77    {% get_current_language as LANGUAGE_CODE %} 
    8     <a href="/user/{{user}}/">{{user.get_full_name}}</a> | {{current_date|date:"D j N Y, G:i"}} 
     8    <a href="/user/{{user}}/">{{user.get_full_name}}</a> | {{now|date:"D j N Y, G:i"}} 
    99    <form id="SetLangForm" action="/i18n/setlang/" method="post"> 
    1010        <ul> 
Note: See TracChangeset for help on using the changeset viewer.