[Scodoc-devel] [SVN] Scolar : [1558] Correction bug affichage indices evaluations pour formules utilisateurs

eviennet at lipn.univ-paris13.fr eviennet at lipn.univ-paris13.fr
Mar 6 Sep 21:51:39 CEST 2016


Une pièce jointe HTML a été nettoyée...
URL: <https://www-rt.iutv.univ-paris13.fr/pipermail/scodoc-devel/attachments/20160906/6da31250/attachment.html>
-------------- section suivante --------------
Modified: branches/ScoDoc7/sco_moduleimpl_status.py
===================================================================
--- branches/ScoDoc7/sco_moduleimpl_status.py	2016-09-06 08:37:49 UTC (rev 1557)
+++ branches/ScoDoc7/sco_moduleimpl_status.py	2016-09-06 19:51:39 UTC (rev 1558)
@@ -211,7 +211,7 @@
     if ModEvals:
         H.append( '<div class="moduleimpl_evaluations_top_links">' + top_table_links + '</div>')
     H.append("""<table class="moduleimpl_evaluations">""")
-    eval_index = len(ModEvals) - 1
+    eval_index = 0
     first = True
     for eval in ModEvals:
         etat = sco_evaluations.do_evaluation_etat(context, eval['evaluation_id'], partition_id=partition_id, select_first_partition=True)
@@ -241,17 +241,17 @@
         
         # Fleches:
         H.append('<span class="eval_arrows_chld">')
-        if eval_index != (len(ModEvals) - 1) and caneditevals:
+        if eval_index > 0 and caneditevals:
             H.append('<a href="module_evaluation_move?evaluation_id=%s&after=0" class="aud">%s</a>' % (eval['evaluation_id'], arrow_up))
         else:
             H.append(arrow_none)
-        if eval_index > 0 and caneditevals:
+        if eval_index != (len(ModEvals) - 1) and caneditevals:
             H.append('<a href="module_evaluation_move?evaluation_id=%s&after=1" class="aud">%s</a>' % (eval['evaluation_id'], arrow_down))
         else:
             H.append(arrow_none)
         H.append('</span></span>')
                 
-        eval_index -= 1
+        eval_index += 1
         H.append("""</td></tr>""")
         H.append("""<tr class="%s"><th class="moduleimpl_evaluations" colspan="2"> </th><th class="moduleimpl_evaluations">Durée</th><th class="moduleimpl_evaluations">Coef.</th><th class="moduleimpl_evaluations">Notes</th><th class="moduleimpl_evaluations">Abs</th><th class="moduleimpl_evaluations">N</th><th class="moduleimpl_evaluations">Moyenne """ % tr_class)
         


Plus d'informations sur la liste de diffusion Scodoc-devel