[damned-lies] Show message on vertimus page if workflow not active



commit ee83b274a385e098915325d33d4af0f5f7f9f725
Author: Claude Paroz <claude 2xlibre net>
Date:   Thu Jun 17 18:12:51 2010 +0200

    Show message on vertimus page if workflow not active

 teams/admin.py                          |    1 +
 templates/vertimus/vertimus_detail.html |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/teams/admin.py b/teams/admin.py
index f7d1d21..20bad17 100644
--- a/teams/admin.py
+++ b/teams/admin.py
@@ -9,6 +9,7 @@ class LanguageInline(admin.TabularInline):
 
 class TeamAdmin(admin.ModelAdmin):
     search_fields = ('name',)
+    list_display = ('description', 'use_workflow')
     inlines = [ LanguageInline ]
 
     def formfield_for_dbfield(self, db_field, **kwargs):
diff --git a/templates/vertimus/vertimus_detail.html b/templates/vertimus/vertimus_detail.html
index 7f7ebfc..750d42c 100644
--- a/templates/vertimus/vertimus_detail.html
+++ b/templates/vertimus/vertimus_detail.html
@@ -187,6 +187,8 @@ $(document).ready(function() {
   {% blocktrans with language.team.get_description as team_name %}You need to be authenticated and to be member of the {{ team_name }} team.{% endblocktrans %}
   {% endif %}
 {% endifequal %}
+{% else %}
+  <p><img src="{{ MEDIA_URL }}img/warn.png"/>&nbsp;{% trans "This team is not using the Vertimus translation workflow." %}</p>
 {% endif %}
 
 {% endblock %}



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