[scodoc-devel] [SVN] Scolar : [1740] Fix: closes #266 (fleches evaluations)

eviennet at lipn.univ-paris13.fr eviennet at lipn.univ-paris13.fr
Ven 22 Déc 21:14:32 CET 2017


Une pièce jointe HTML a été nettoyée...
URL: https://listes.univ-paris13.fr/pipermail/scodoc-devel/attachments/20171222/979bc368/attachment.htm 
-------------- section suivante --------------
Modified: branches/ScoDoc7/sco_moduleimpl_status.py
===================================================================
--- branches/ScoDoc7/sco_moduleimpl_status.py	2017-12-22 19:47:50 UTC (rev 1739)
+++ branches/ScoDoc7/sco_moduleimpl_status.py	2017-12-22 20:14:31 UTC (rev 1740)
@@ -247,11 +247,11 @@
         
         # Fleches:
         H.append('<span class="eval_arrows_chld">')
-        if eval_index > 0 and caneditevals:
+        if eval_index != (len(ModEvals) - 1) and caneditevals:
             H.append('<a href="module_evaluation_move?evaluation_id=%s&amp;after=0" class="aud">%s</a>' % (eval['evaluation_id'], arrow_up))
         else:
             H.append(arrow_none)
-        if eval_index != (len(ModEvals) - 1) and caneditevals:
+        if (eval_index > 0) and caneditevals:
             H.append('<a href="module_evaluation_move?evaluation_id=%s&amp;after=1" class="aud">%s</a>' % (eval['evaluation_id'], arrow_down))
         else:
             H.append(arrow_none)


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