summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html3
-rw-r--r--templates/tree.html3
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;">&nbsp;</li>
{% if name %}