[extensions-web: 34/75] Add the extension's homepage if it exists.



commit 29199d524c72c70cf7d39be023061afa09473265
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Sep 16 03:26:25 2011 -0400

    Add the extension's homepage if it exists.

 .../extensions/templates/extensions/detail.html    |    8 ++++++++
 sweettooth/static/css/sweettooth.css               |    6 ++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/extensions/templates/extensions/detail.html b/sweettooth/extensions/templates/extensions/detail.html
index 2889c55..41edae1 100644
--- a/sweettooth/extensions/templates/extensions/detail.html
+++ b/sweettooth/extensions/templates/extensions/detail.html
@@ -36,6 +36,14 @@
       <p class="description" id="extension_description">
         {{ extension.description }}
       </p>
+
+      <dl>
+      {% if extension.url %}
+        <dt>Extension Homepage</dt>
+        <dd><a href="{{ extension.url }}">{{ extension.url }}</a></dd>
+      {% endif %}
+      </dl>
+
       <hr style="clear: both;">
 
       {% block comments %}
diff --git a/sweettooth/static/css/sweettooth.css b/sweettooth/static/css/sweettooth.css
index f8c3d89..e26688d 100644
--- a/sweettooth/static/css/sweettooth.css
+++ b/sweettooth/static/css/sweettooth.css
@@ -239,6 +239,12 @@ li.extension {
     height: 32px;
 }
 
+.extension dt, .extension dd {
+    font-size: 1em;
+    display: inline-block;
+    padding: 0 1em;
+}
+
 /* Comments */
 /* ==================================================================== */
 



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