Browse Source

Simplify VPN template

Baptiste Jonglez 10 years ago
parent
commit
00f0e05149
1 changed files with 1 additions and 1 deletions
  1. 1 1
      coin/vpn/templates/vpn/vpn.html

+ 1 - 1
coin/vpn/templates/vpn/vpn.html

@@ -26,7 +26,7 @@
                 <tr>
                     <td class="center boolviewer" colspan="2">
                         <input type="checkbox" disabled="disabled"{% if object.activated %} checked="checked"{% endif %} />
-                        <span>Ce VPN est {% if object.activated %}activé{% else %}désactivé{% endif %}</span>
+                        <span>Ce VPN est {{ object.activated|yesno:"activé,désactivé" }}</span>
                     </td>
                 </tr>
                 <tr><td class="center" colspan="2"><input type="submit" value="Valider" /></td></tr>