Can set events as being important
[platal.git] / templates / events / index.tpl
index 7e64ba8..c2d7e21 100644 (file)
@@ -108,7 +108,9 @@ Bienvenue {$smarty.session.prenom}
     {if $smarty.foreach.events.total neq 1}
     <tr class="pair" style="height: 18px">
       <td class="half titre" style="height: 18px; padding-top: 1px; padding-bottom: 1px;">
-        {if $category eq 'news'}
+        {if $category eq 'important'}
+          {icon name=error} Informations prioritaires&nbsp;:
+        {elseif $category eq 'news'}
           {icon name=bell} Nouvelles annonces&nbsp;:
         {elseif $category eq 'end'}
           {icon name=clock} Dernières minutes&nbsp;:
@@ -166,7 +168,9 @@ Bienvenue {$smarty.session.prenom}
     <tr>
       <th>
         <div style="float: left">
-          {if $category eq 'news'}
+          {if $category eq 'important'}
+            {icon name=error title="Important"}
+          {elseif $category eq 'news'}
             {icon name=bell title="Nouvelle annonce"}
           {elseif $category eq 'end'}
             {icon name=clock title="Bientôt fini"}
@@ -175,7 +179,7 @@ Bienvenue {$smarty.session.prenom}
           {/if}
         </div>
         <div style="float:right">
-          {if $smarty.session.perms eq 'admin'}
+          {if $smarty.session.perms->hasFlag('admin')}
           <a href="admin/events/edit/{$ev.id}">{icon name=page_edit title="Editer cet article"}</a>
           {/if}
           <a href="events/read/{$ev.id}{if $previd}/newsid{$previd}{/if}" onclick="return readEvent('{$ev.id}')">{icon name=cross title="Cacher cet article"}</a>