Commit 5f1f380d authored by bmortier's avatar bmortier
Browse files

Merge branch '6275-remove-leftover-of-dashboard-in-the-core' into 'dev'

Resolve "remove leftover of dashboard in the core"

See merge request fusiondirectory/fd-plugins!1043
Showing with 0 additions and 121 deletions
+0 -121
<div id="{$sectionId}" class="plugin-section fullwidth">
<span class="legend">
{if !empty($sectionIcon)}<img src="{$sectionIcon|escape}" alt=""/>{/if}{$section|escape}
</span>
<div>
<h1>
{if $attributes.locked.accounts|@count > 0}
{t count=$attributes.locked.accounts|@count 1=$attributes.locked.accounts|@count plural="There are %1 locked accounts"}There is one locked account{/t}
{else}
{t}There is no locked account{/t}
{/if}
</h1>
{if $attributes.locked.accounts|@count > 0}
<table style="width: 100%;" class="listingTable">
<colgroup>
<col width="10%"/>
<col width="15%"/>
<col width="15%"/>
<col width="15%"/>
<col width="15%"/>
<col width="10%"/>
</colgroup>
<thead>
<tr style="background-color: white; text-align:center;">
<th colspan="4" style="background-color: white; padding:5px;">
{t}Locked accounts{/t}
</th>
<th colspan="3" style="background-color: white; padding:5px;">
{t}Manager concerned{/t}
</th>
</tr>
<tr style="background-color: #E8E8E8; height:26px;font-weight:bold;">
<!-- uid/cn/telephonNumber/mail/shadowExpire/sambaKickoffTime -->
<th>{t}uid{/t}</th><th>{t}cn{/t}</th><th>{t}telephoneNumber{/t}</th><th>{t}pwdAccountLockedTime{/t}</th>
<th>{t}manager{/t}</th><th>{t}mail{/t}</th><th>{t}telephoneNumber{/t}</th>
</tr>
</thead>
<tbody>
{foreach from=$attributes.locked.accounts item=account}
<tr>
<td>&nbsp;{$account.uid|escape}</td>
<td>&nbsp;{$account.cn|escape}</td>
<td>&nbsp;{$account.telephoneNumber|escape}</td>
<td>&nbsp;{$account.pwdAccountLockedTime|escape}</td>
<td>&nbsp;{$account.manager_cn|escape}</td>
<td><a href="mailto:{$account.manager_mail|escape}">{$account.manager_mail|escape}</a></td>
<td>&nbsp;{$account.manager_phone|escape}</td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
</div>
</div>
<div id="{$sectionId}" class="plugin-section">
<span class="legend">
{if !empty($sectionIcon)}<img src="{$sectionIcon|escape}" alt=""/>{/if}{$section|escape}
</span>
<div>
{foreach from=$attributes item=infos}
<ul>
{foreach from=$infos item=server}
<li style="list-style-image:url(geticon.php?context=devices&amp;icon=server&amp;size=16)" id="server_{$server.name|escape}">
{$server.link}
<ul>
{foreach from=$server.zones item=zone}
<li style="list-style:disc">
{if isset($zone.text)}
{$zone.text|escape}
{else}
{$zone.link}
{/if}
</li>
{/foreach}
</ul>
</li>
{/foreach}
</ul>
{/foreach}
</div>
</div>
<div id="{$sectionId}" class="plugin-section">
<span class="legend">
{if $sectionIcon}<img src="{$sectionIcon|escape}" alt=""/>{/if}{$section|escape}
</span>
<div>
<table style="border-collapse:collapse; border:1px solid #B0B0B0; width:100%; vertical-align:top; text-align:left;">
{$attributes.pc_ids}
</table>
</div>
</div>
<div id="{$sectionId}" class="plugin-section">
<span class="legend">
{if !empty($sectionIcon)}<img src="{$sectionIcon|escape}" alt=""/>{/if}{$section|escape}
</span>
<div>
<ul>
{foreach from=$attributes.stats.systems item=stat}
<li style="list-style-image:url({$stat.img|escape})">
{$stat.nb|escape} {$stat.name|escape}
</li>
{/foreach}
</ul>
{if $attributes.stats.argonaut}
{if $attributes.stats.argonaut.nb_servers > 1}
<img src="geticon.php?context=status&amp;icon=dialog-warning&amp;size=16" style="vertical-align:middle;margin-right:3px;" alt="warning"/>{t}There are several argonaut servers! (this is not yet supported){/t}
{elseif $attributes.stats.argonaut.nb_servers == 1}
{t escape=none 1=$attributes.stats.argonaut.server.link 2=$attributes.stats.argonaut.server.ipHostNumber 3=$attributes.stats.argonaut.server.argonautProtocol 4=$attributes.stats.argonaut.server.argonautPort}There is an argonaut server running on %1 (%3://%2:%4){/t}<br/>
{if $attributes.stats.argonaut.nb_clients > 0}
{t count=$attributes.stats.argonaut.nb_clients 1=$attributes.stats.argonaut.nb_clients plural="%1 systems are configured to run an argonaut client."}Only one system is configured to run an argonaut client.{/t}<br/>
{else}
{t}But no system is configured to run an argonaut client!{/t}<br/>
{/if}
{elseif $attributes.stats.argonaut.nb_clients > 0}
<img src="geticon.php?context=status&amp;icon=dialog-warning&amp;size=16" style="vertical-align:middle;margin-right:3px;" alt="warning"/>{t count=$attributes.stats.argonaut.nb_clients 1=$attributes.stats.argonaut.nb_clients plural="%1 systems are configured to run an argonaut client, but there is no argonaut server configured!"}A system is configured to run an argonaut client, but there is no argonaut server configured!{/t}<br/>
{/if}
{/if}
</div>
</div>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment