Mercurial > personas_backend
changeset 195:6f4560d9597a
putting title on top of list
author | root@sm-labs01.mozilla.org |
---|---|
date | Thu, 17 Apr 2008 13:22:20 -0700 |
parents | 5c3e4a3d4062 |
children | 800c9ccb65e4 |
files | personasbackend/personas/templates/personas/minimalist_list.html personasbackend/personas/templates/personas/minimalist_list.html~ |
diffstat | 2 files changed, 3 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/personasbackend/personas/templates/personas/minimalist_list.html Thu Apr 17 13:11:07 2008 -0700 +++ b/personasbackend/personas/templates/personas/minimalist_list.html Thu Apr 17 13:22:20 2008 -0700 @@ -4,9 +4,9 @@ {% if personas %} {% for persona in personas %} <div class="corner-box"> - {% include "personas/thumbnail.html" %} <div class="persona-title"> <h2 class="persona-name">{{ persona.name }}</h2> + {% include "personas/thumbnail.html" %} {% if persona.owner %} <span class="developer"> by {% if persona.owner.first_name %}
--- a/personasbackend/personas/templates/personas/minimalist_list.html~ Thu Apr 17 13:11:07 2008 -0700 +++ b/personasbackend/personas/templates/personas/minimalist_list.html~ Thu Apr 17 13:22:20 2008 -0700 @@ -1,16 +1,7 @@ -{% extends "personas/base.html" %} +{% extends "personas/minimalist_base.html" %} {% block content %} {% if personas %} -{% block intro %} -<p>Here's a list of all available Personas.</p> -<p>If you have the Personas extension installed, just mouseover the -preview image for a Persona to preview it—when your mouse moves -away from the image, your original Persona will replace the preview.</p> -<p>If you like the Persona, you can click on the preview image to set it -as your current Persona.</p> -<p>Enjoy!</p> -{% endblock %} {% for persona in personas %} <div class="corner-box"> {% include "personas/thumbnail.html" %} @@ -26,24 +17,11 @@ </span> {% endif %} </div> - <div class="persona-desc">{{ persona.description }}</div> - {% comment %} - TODO: This doesn't obey DRY; we should figure out a way around - this. Ideally, we should be able to do the equivalent of 'if - persona.can_user_edit(user)'. - {% endcomment %} - {% if perms.personas.can_publish %} - <a href="{% url edit-persona persona.id %}">Edit</a> - {% else %} - {% ifequal persona.owner user %} - <a href="{% url edit-persona persona.id %}">Edit</a> - {% endifequal %} - {% endif %} </div> {% endfor %} {% else %} {% block no-personas %} -<p>There are currently no personas available.</p> +<p>There are currently no Personas available.</p> {% endblock %} {% endif %} {% endblock %}