If team certificate file not found, propose to generate it

This commit is contained in:
nemunaire 2014-11-20 17:42:58 +01:00
commit 39ca8940e1
2 changed files with 3 additions and 1 deletions

View file

@ -23,7 +23,7 @@
<span class="glyphicon glyphicon-trash"></span></a>
<a href="/{$SALT_ADMIN}/certificate/get?name={$t->team_name}">
<span class="glyphicon glyphicon-floppy-save"></span></a>
{if not $t->revoked}
{if not $t->revoked && is_file("{$MISC_DIR}/pki/pkcs/{$t->team_name}.p12")}
<a href="/{$SALT_ADMIN}/certificate/revoke?name={$t->team_name}"
onclick="return confirm('Êtes-vous sûr de vouloir révoquer ce certificat ?')">
<span class="glyphicon glyphicon-remove"></span></a>