[extensions-web] Only show the "Activate" link if we're actually inactive



commit 3cd0b98248752addd53aa3ddcc67f06bcb0eeb8e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Dec 1 16:01:52 2011 -0500

    Only show the "Activate" link if we're actually inactive

 .../templates/extensions/detail_edit.html          |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/extensions/templates/extensions/detail_edit.html b/sweettooth/extensions/templates/extensions/detail_edit.html
index e31d09b..c98ee24 100644
--- a/sweettooth/extensions/templates/extensions/detail_edit.html
+++ b/sweettooth/extensions/templates/extensions/detail_edit.html
@@ -73,7 +73,7 @@
         <td class="extension_status_toggle{% if version.is_active %} visible{% endif %}">
           <a href="{% url extensions-ajax-set-status-inactive %}">Inactivate</a>
         </td>
-        <td class="extension_status_toggle{% if not version.is_active %} visible{% endif %}">
+        <td class="extension_status_toggle{% if version.is_inactive %} visible{% endif %}">
           <a href="{% url extensions-ajax-set-status-active %}">Activate</a>
         </td>
         {% endif %}



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