[extensions-web] Adjust for new style on the review and profiles page



commit d241e69be25287cc09ab31ffb186060dbb6f9045
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Jun 2 21:50:32 2012 -0400

    Adjust for new style on the review and profiles page

 .../auth/templates/registration/profile.html       |    2 +-
 sweettooth/review/templates/review/review.html     |   38 +++++++++++--------
 2 files changed, 23 insertions(+), 17 deletions(-)
---
diff --git a/sweettooth/auth/templates/registration/profile.html b/sweettooth/auth/templates/registration/profile.html
index 02ba25b..6323256 100644
--- a/sweettooth/auth/templates/registration/profile.html
+++ b/sweettooth/auth/templates/registration/profile.html
@@ -22,7 +22,7 @@
     {% for extension in extensions %}
     <li class="extension profile">
       <h4 class="extension-name"><a href="{{ extension.get_absolute_url }}">
-          <img src="{{ extension.icon.url }}" class="icon">{{ extension.name }}
+          <img src="{{ extension.icon.url }}" class="icon"> {{ extension.name }}
       </a></h4>
       <p class="description">
         {{ extension.description }}
diff --git a/sweettooth/review/templates/review/review.html b/sweettooth/review/templates/review/review.html
index 772b27f..0c34193 100644
--- a/sweettooth/review/templates/review/review.html
+++ b/sweettooth/review/templates/review/review.html
@@ -7,26 +7,32 @@
 <h2 class="expandy_header expanded"> Details Page Preview </h2>
 <div id="preview">
   <div class="extension">
-    <img src="{{ extension.icon.url }}" class="icon">
+    <h3 class="extension-name">
+      <a href="{{ extension.get_absolute_url }}">
+        <img src="{{ extension.icon.url }}" class="icon"> {{ extension.name }}
+      </a>
+    </h3>
 
-    {% if extension.screenshot %}
-    {% thumbnail extension.screenshot "300x200" as th %}
-    <a href="{{ extension.screenshot.url }}" class="screenshot"><img src="{{ th.url }}" /></a>
-    {% endthumbnail %}
-    {% endif %}
-
-    <h3 class="extension-name"><a href="{{ extension.get_absolute_url }}">{{ extension.name }}</a></h3>
     <span class="author">by <a href="{% url auth-profile user=extension.creator %}">{{ extension.creator }}</a></span>
-    <p class="description">
-      {{ extension.description }}
-    </p>
-
-    <dl>
-      {% if extension.url %}
-      <dt>Extension Homepage</dt>
-      <dd><a href="{{ extension.url }}" id="extension_url">{{ extension.url }}</a></dd>
+
+    <div>
+      {% if extension.screenshot %}
+      {% thumbnail extension.screenshot "300x200" as th %}
+      <a href="{{ extension.screenshot.url }}" class="screenshot"><img src="{{ th.url }}" /></a>
+      {% endthumbnail %}
       {% endif %}
-    </dl>
+
+      <p class="description">
+        {{ extension.description }}
+      </p>
+
+      <dl>
+        {% if extension.url %}
+        <dt>Extension Homepage</dt>
+        <dd><a href="{{ extension.url }}" id="extension_url">{{ extension.url }}</a></dd>
+        {% endif %}
+      </dl>
+    </div>
 
     <hr>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]