aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/admin_advices/admin_advices.tpl
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-08-12 20:43:56 +0000
committervdigital <vdigital@piwigo.org>2008-08-12 20:43:56 +0000
commit8ab0da7da22a84b735aff05f40ac57f347a739bd (patch)
tree81a6f643da62c108e7b8d87849d93b812e46f744 /plugins/admin_advices/admin_advices.tpl
parent5d407384638b33be92cf77c01a82842cf205520c (diff)
Admin advices can be easily extended to new advices.
Admin advices plugin can be translated like any other plugins. Admin advices plugin has been extended with External summary (a technical and non translated part). Some template cleaning. git-svn-id: http://piwigo.org/svn/trunk@2472 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/admin_advices/admin_advices.tpl80
1 files changed, 52 insertions, 28 deletions
diff --git a/plugins/admin_advices/admin_advices.tpl b/plugins/admin_advices/admin_advices.tpl
index 85c385286..56ca9a85e 100644
--- a/plugins/admin_advices/admin_advices.tpl
+++ b/plugins/admin_advices/admin_advices.tpl
@@ -1,39 +1,63 @@
-{if isset($ADVICE_ABOUT)}
<div class="content">
+
<h3>{'An_advice_about'|@translate} {$ADVICE_ABOUT}</h3>
- <h4>{$ADVICE_TEXT}</h4>
- <table summary="Admin advices summary">
- <tr><td style="text-align: left; width: 50%;">
+ <h4>{$ADVICE_TEXT}</h4>
+ <table summary="Admin advices summary">
+ {if isset($More)}
+ <tr>
+ <td style="text-align: left; width: 50%;">
{foreach from=$More item=advice}
{$advice}<BR />
{/foreach}
<br />
- </td><td style="text-align: right; width: 20%;">
+ </td>
+ <td style="text-align: right; width: 20%;">
{if isset($thumbnail.IMAGE)}
- <a href="{$thumbnail.U_MODIFY}" title="{'link_info_image'|@translate}">
- <img class="thumbnail" src="{$thumbnail.IMAGE}"
- alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"></a>
- </td><td style="text-align: left;">
- <img src="{$themeconf.icon_dir}/{$thumbnail.NAME}check.png"
- alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Name'|@translate}<br />
- <img src="{$themeconf.icon_dir}/{$thumbnail.COMMENT}check.png"
- alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Description'|@translate}<br />
- <img src="{$themeconf.icon_dir}/{$thumbnail.AUTHOR}check.png"
- alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Author'|@translate}<br />
- <img src="{$themeconf.icon_dir}/{$thumbnail.CREATE_DATE}check.png"
- alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Creation date'|@translate}<br />
- <img src="{$themeconf.icon_dir}/{$thumbnail.METADATA}check.png"
- alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Metadata'|@translate}<br />
- <img src="{$themeconf.icon_dir}/{$thumbnail.TAGS}check.png"
- alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Tags'|@translate} ({$thumbnail.NUM_TAGS})
+ <a href="{$thumbnail.U_MODIFY}" title="{'link_info_image'|@translate}">
+ <img class="thumbnail" src="{$thumbnail.IMAGE}"
+ alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"></a>
+ </td><td style="text-align: left;">
+ <img src="{$themeconf.icon_dir}/{$thumbnail.NAME}check.png"
+ alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Name'|@translate}<br />
+ <img src="{$themeconf.icon_dir}/{$thumbnail.COMMENT}check.png"
+ alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Description'|@translate}<br />
+ <img src="{$themeconf.icon_dir}/{$thumbnail.AUTHOR}check.png"
+ alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Author'|@translate}<br />
+ <img src="{$themeconf.icon_dir}/{$thumbnail.CREATE_DATE}check.png"
+ alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Creation date'|@translate}<br />
+ <img src="{$themeconf.icon_dir}/{$thumbnail.METADATA}check.png"
+ alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Metadata'|@translate}<br />
+ <img src="{$themeconf.icon_dir}/{$thumbnail.TAGS}check.png"
+ alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}"> {'Tags'|@translate} ({$thumbnail.NUM_TAGS})
{/if}
- </td>
- </tr>
-
- <tr>
- <td colspan=2>{$smarty.now|date_format:"%A, %B %e, %Y - %r"} --- Templates generated by <a href="http://www.smarty.net/" onclick="window.open(this.href, ''); return false;">Smarty</a> {$smarty.version}</td>
+ </td>
</tr>
+ {/if}
</table>
-
+ <div class="summary">
+ <h4>External summary</h4>
+ <ul>Database Analysis<br />
+ {if ($pwgsize != $size)}
+ - Space used by {$prefixTable} tables: {$pwgsize}<br />
+ {/if}
+ - Space used by all tables: {$size}<br />
+ - {$checked_tables}<br />
+ - Unused allocated space by {$prefixTable} tables: {$pwgspacef}<br />
+ {if ($spacef > 0 and $pwgspacef != $spacef)}
+ - Unused allocated space: {$spacef}<br />
+ {/if}
+ {if ($spacef > 0)}
+ Useful links:
+ <a class="internal" href="{$U_maintenance}">{'repair and optimize database'|@translate}</a> -
+ {else}
+ MySQL documentation:
+ {/if}
+ <a class="external" href="http://dev.mysql.com/doc/" onclick="window.open(this.href, ''); return false;">MySQL</a>
+ <br /><br />
+ Templates generated on {$smarty.now|date_format:"%A, %B %e, %Y - %r"} by
+ <a class="external" href="http://www.smarty.net/" onclick="window.open(this.href, ''); return false;">Smarty</a>
+ {$smarty.version}
+ </ul>
+ </div>
</div>
-{/if} \ No newline at end of file
+