diff options
author | Leif Johansson <leifj@sunet.se> | 2011-08-16 13:30:51 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-08-16 13:30:51 +0200 |
commit | 2ad60725b712e1fcea5c79bb085edb7c89f38a19 (patch) | |
tree | 659084b604880f0afde0fa01186724b6728f68b5 /templates | |
parent | e3618b195de9ad343dc89a98d58c0af5aff50d97 (diff) |
switch back to profile but more stdnewprofiles
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 3 | ||||
-rw-r--r-- | templates/tree.html | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html index 5d1a4c1..110d7b8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,3 +1,4 @@ +{% load userdisplay %} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> <head> @@ -75,7 +76,7 @@ {% if user.is_authenticated %} <ul class="menubar"> <li> - <a href="#">{{user.get_full_name}}</a> + <a href="#">{{user|userdisplay}}</a> <ul> <li><a href="/user/home">Dashboard</a></li> <li><a href="/accounts/logout">Logout</a></li> diff --git a/templates/tree.html b/templates/tree.html index 27399fc..78fc0e2 100644 --- a/templates/tree.html +++ b/templates/tree.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load userdisplay %} {% block js %} <script type="text/javascript"> $(function() { @@ -39,7 +40,7 @@ $(function() { <ul id="sidemenu"> {% if user.is_authenticated %} <li><a class="gravatar" href="#" title="{{user.email}}"></a></li> - <li><a href="/user/home"><span class="ui-icon ui-icon-home"></span>{{user.get_full_name}}</a></li> + <li><a href="/user/home"><span class="ui-icon ui-icon-home"></span>{{user|userdisplay}}</a></li> {% endif %} <li style="border-top: 1px solid black; width: 100%; margin-top: 5px;"> </li> {% if name %} |