Fix titles and stuff

master
Nick Sergeant 2012-04-13 16:26:58 -04:00
parent 6183d1f38c
commit 69be9ce25d
3 changed files with 4 additions and 3 deletions

View File

@ -10,10 +10,10 @@
{% endblock %}
{% block tags %}
<div class="profile group" title="{{ user.username }}">
<div class="profile group">
<span class="avatar" style="background-image: url('http://www.gravatar.com/avatar/{{ user.email|md5 }}?s=50');"></span>
<div class="meta">
<div class="username">
<div class="username" title="{{ user.username }}">
{{ user.username }}
</div>
{% if user.username == 'nick' %}

View File

@ -2,7 +2,7 @@
{% load pagination_tags %}
{% block page-title %}/ {% if public %}public{% else %}{{ user.username }}{% endif %}{% if tag %} / {{ tag }}{% endif %} - {{ block.super }}{% endblock %}
{% block page-title %}/ {% if public and not public_user %}public{% else %}{{ user.username }}{% endif %}{% if tag %} / {{ tag }}{% endif %} - {{ block.super }}{% endblock %}
{% block js %}
{{ block.super }}

View File

@ -73,6 +73,7 @@ def list_user(request, username, tag_slug=None):
'has_snipts': True,
'lexers': sorted(get_all_lexers()),
'public': public,
'public_user': (public and user),
'snipts': snipts,
'tags': tags,
'tag': tag,