Ignore:
Timestamp:
Jul 23, 2010, 6:20:32 PM (11 years ago)
Author:
goya
Message:

correction 0 preuves

Location:
cpc/trunk/project/apps/frontend/modules/presence/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/presence/templates/parlementaireSuccess.php

    r1024 r1249  
    3434    echo $seance->getTitre().'</a>';
    3535    $nbpreuves = $presence->getNbPreuves();
    36     if ($nbpreuves > 1) $preuves_str = $nbpreuves."&nbsp;preuves";
    37     else $preuves_str = "1&nbsp;preuve";
    38     echo " <em>(".link_to($preuves_str, "@preuve_presence_seance?seance=".$seance->id."&slug=".$parlementaire->slug).")</em>";
     36    if ($nbpreuves != 0) {
     37      if ($nbpreuves > 1) $preuves_str = $nbpreuves."&nbsp;preuves";
     38      else $preuves_str = "1&nbsp;preuve";
     39      echo " <em>(".link_to($preuves_str, "@preuve_presence_seance?seance=".$seance->id."&slug=".$parlementaire->slug).")</em>";
     40    }
    3941    if ($seance->type == "hemicycle") {
    4042      echo "<ul>";
  • cpc/trunk/project/apps/frontend/modules/presence/templates/seanceSuccess.php

    r1238 r1249  
    3737    if (isset($interv[$p->id])) continue;
    3838    $nbpreuves = $presence->getNbPreuves(); 
    39     echo '<li>'.link_to($p->nom, '@parlementaire?slug='.$p->getSlug()).', '.$p->getLongStatut(1).'<em><a href="'.url_for('@preuve_presence_seance?seance='.$seance->id.'&slug='.$p->slug).'"> ('; if ($nbpreuves > 1) echo "$nbpreuves preuves"; else echo "1 preuve"; echo ')</a></em></li>';
     39    echo '<li>'.link_to($p->nom, '@parlementaire?slug='.$p->getSlug()).', '.$p->getLongStatut(1).'<em><a href="'.url_for('@preuve_presence_seance?seance='.$seance->id.'&slug='.$p->slug).'">'; if ($nbpreuves != 0) {echo ' ('; if ($nbpreuves > 1) echo "$nbpreuves preuves"; else echo "1 preuve"; echo ')</a></em></li>'; }
    4040  }
    4141  echo '</ul></li>';
Note: See TracChangeset for help on using the changeset viewer.