Changeset 1305 in main


Ignore:
Timestamp:
07/03/12 15:25:31 (9 years ago)
Author:
zali
Message:

Template block/users : display username if the full name of the user is empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/templates/blocks/user.html

    r1258 r1305  
    55 
    66{% if user.is_authenticated %} 
    7     <a href="/user/{{user|urlencode }}/">{{user.get_full_name}}</a> | {% now "D j N Y, G:i"%} 
     7    <a href="/user/{{user|urlencode }}/">{{user.get_full_name|default:user.username}}</a> | {% now "D j N Y, G:i"%} 
    88{% else %} 
    99    <a href="{% url login %}?next={{request.get_full_path|urlencode }}">{% trans "Log in" %}</a> 
     
    2929 
    3030    | 
    31     <a class="extlink" rel="help" href="{{DOCUMENTATION_URL}}../resources.html#getting-help"> 
     31    <a class="extlink" rel="help" href="{{DOCUMENTATION_URL}}../resources.html#getting-help" target="_blank"> 
    3232        <span>{% trans "Help" %}</span> 
    3333    </a> 
Note: See TracChangeset for help on using the changeset viewer.