The following commit has been merged in the master branch:
commit 88c67390409a8536a971ebeba367446a790d3faa
Author: Michal Čihař <[email protected]>
Date:   Thu Oct 8 15:43:59 2009 +0200

    Show delete link also for approved ones.
    
    There might be better one in newer.

diff --git a/html/phonedb/phone.html b/html/phonedb/phone.html
index 98dd3cc..74cd30b 100644
--- a/html/phonedb/phone.html
+++ b/html/phonedb/phone.html
@@ -11,9 +11,9 @@
 <li><a href="/phones/new?vendor={{ vendor.slug }}">{% trans "Add new record" 
%}</a></li>
 {% if user.is_superuser %}
 <li><a href="/admin/phonedb/phone/{{ phone.id }}/">Edit</a></li>
-{% ifequal phone.state "draft" %}
+{% ifnotequal phone.state "deleted" %}
 <li><a href="{{ phone.get_absolute_url }}delete/">Delete</a></li>
-{% endifequal %}
+{% endifnotequal %}
 {% endif %}
 </ul>
 <h3>{% trans "Similar Phones" %}</h3>

-- 
UNNAMED PROJECT

_______________________________________________
Wammu-svn mailing list
[email protected]
https://lists.cihar.com/cgi-bin/mailman/listinfo/wammu-svn

Reply via email to