]> git.parisson.com Git - teleforma.git/commitdiff
fix style
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 16 Dec 2013 22:49:00 +0000 (23:49 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 16 Dec 2013 22:49:00 +0000 (23:49 +0100)
teleforma/context_processors.py
teleforma/templates/teleforma/answer_detail.html

index 4138e934304de08f3b1e4ad7fc544870be1683ed..c71841983e04099e13987d508bf21ba72f075e87 100644 (file)
@@ -110,11 +110,13 @@ def all_seminars(request, progress_order=False, date_order=False):
     else:
         seminars = {}
 
+    #TOFIX
     if not user.is_superuser  and seminars and progress_order == True:
         s_list = [{'seminar': seminar, 'progress': seminar_progress(user, seminar)} for seminar in seminars]
         seminars = sorted(s_list, key=lambda k: k['progress'], reverse=False)
         seminars = [s['seminar'] for s in seminars]
 
+    #TOFIX
     if not user.is_superuser and seminars and date_order == True:
         s_list = []
         for seminar in seminars:
@@ -145,6 +147,7 @@ def total_progress(request):
     if not user.is_authenticated():
         return {'total_progress': 0}
 
+    #TOFIX
     if user.is_superuser:
         return {'total_progress': 100}
 
index 60773080cef80a5b06e31b6530fb4ccb7e781b3c..c944ad74d3a3940303c10ee75f02fbe249bad596 100644 (file)
@@ -46,7 +46,7 @@ $('#reject').unbind('click').click(function() {
 <div class="course_subtitle">
    <h3><img src="{{ STATIC_URL }}telemeta/images/item_title.png" width="10px" alt="" /> {% trans "Answer" %}{% if answer.question.rank %} n° {{ answer.question.rank }}{% endif %} ({{ answer.answer|length }} {% trans "characters" %})</h3>
   </div>
-  <div style="text-align: justify; padding: .5em;">
+  <div style="text-align: justify; padding: 0.5em 0.5em 1em 0.5em;">
     {{ answer.answer|safe }}
   </div>
 </div>