From 2fcd11c28e5d58c1b5a0351fc8bf792abb0a5da4 Mon Sep 17 00:00:00 2001 From: patdenice Date: Thu, 3 Mar 2011 11:54:46 +0000 Subject: Improve display for plugins and themes update page. git-svn-id: http://piwigo.org/svn/trunk@9493 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/plugins_update.tpl | 40 +++++--- admin/themes/default/template/themes_update.tpl | 121 ++++++++++------------- 2 files changed, 80 insertions(+), 81 deletions(-) (limited to 'admin/themes/default/template') diff --git a/admin/themes/default/template/plugins_update.tpl b/admin/themes/default/template/plugins_update.tpl index 11b97c829..4a88169cc 100644 --- a/admin/themes/default/template/plugins_update.tpl +++ b/admin/themes/default/template/plugins_update.tpl @@ -1,10 +1,14 @@ {combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/jquery.ui.min.js' } -{combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.packed.js'} -{footer_script require='jquery.cluetip'} -jQuery().ready(function(){ldelim} - jQuery('.cluetip').cluetip({ldelim} - width: 300, - splitTitle: '|' +{combine_script id='jquery.ui.effects' load='async' require='jquery.ui' path='themes/default/js/ui/minified/jquery.effects.core.min.js' } +{combine_script id='jquery.ui.effects.blind' load='async' require='jquery.ui.effects' path='themes/default/js/ui/minified/jquery.effects.blind.min.js' } + +{footer_script require='jquery.ui.effects.blind'} +jQuery(document).ready(function(){ldelim} + jQuery("td[id^='desc_'], p[id^='revdesc_']").click(function() {ldelim} + id = this.id.split('_'); + jQuery("#revdesc_"+id[1]).toggle('blind'); + jQuery(".button_"+id[1]).toggle(); + return false; }); }); {/footer_script} @@ -18,24 +22,34 @@ jQuery().ready(function(){ldelim}
{'Plugins which need upgrade'|@translate} {foreach from=$plugins item=plugin name=plugins_loop} -
+
- + + + +
- {$plugin.EXT_NAME} + {$plugin.EXT_NAME} - {'Automatic upgrade'|@translate} - | {'Download file'|@translate} + {'Install'|@translate} + | {'Download'|@translate} + | {'Visit plugin site'|@translate}
- {'Version'|@translate} {$plugin.VERSION} + {'Version'|@translate} {$plugin.CURRENT_VERSION} + {'Downloads'|@translate}: {$plugin.DOWNLOADS} - {'By %s'|@translate|@sprintf:$plugin.AUTHOR} + + + {'New Version'|@translate} : {$plugin.NEW_VERSION} + | {'By %s'|@translate|@sprintf:$plugin.AUTHOR} +
+
diff --git a/admin/themes/default/template/themes_update.tpl b/admin/themes/default/template/themes_update.tpl index f83c09ce3..84491f117 100644 --- a/admin/themes/default/template/themes_update.tpl +++ b/admin/themes/default/template/themes_update.tpl @@ -1,77 +1,62 @@ -{combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.packed.js'} -{footer_script require='jquery.cluetip'} -jQuery().ready(function(){ldelim} - jQuery('.cluetip').cluetip({ldelim} - width: 300, - splitTitle: '|' +{combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/jquery.ui.min.js' } +{combine_script id='jquery.ui.effects' load='async' require='jquery.ui' path='themes/default/js/ui/minified/jquery.effects.core.min.js' } +{combine_script id='jquery.ui.effects.blind' load='async' require='jquery.ui.effects' path='themes/default/js/ui/minified/jquery.effects.blind.min.js' } + +{footer_script require='jquery.ui.effects.blind'} +jQuery(document).ready(function(){ldelim} + jQuery("td[id^='desc_'], p[id^='revdesc_']").click(function() {ldelim} + id = this.id.split('_'); + jQuery("#revdesc_"+id[1]).toggle('blind'); + jQuery(".button_"+id[1]).toggle(); + return false; }); }); {/footer_script}
-

{'Check for updates'|@translate}

+

{'Themes'|@translate}

-{if isset($themes_not_uptodate)} -
-{'Themes which need upgrade'|@translate} - - - - - - - - - -{foreach from=$themes_not_uptodate item=theme name=themes_loop} - - - - - - -{/foreach} -
{'Name'|@translate}{'Current
version'|@translate}
{'Available
version'|@translate}
{'Actions'|@translate}
{$theme.EXT_NAME}{$theme.VERSION}{$theme.NEW_VERSION}{'Automatic upgrade'|@translate} - / {'Download file'|@translate}
-{/if} - - -{if isset($themes_uptodate)} -
-{'Themes up to date'|@translate} - - - - - - - -{foreach from=$themes_uptodate item=theme name=themes_loop} - - - - -{/foreach} -
{'Name'|@translate}{'Version'|@translate}
{$theme.NAME}{$theme.VERSION}
-{/if} - - -{if isset($themes_cant_check)} -
-{'Theme versions can\'t be checked'|@translate} - - - - - - - -{foreach from=$themes_cant_check item=theme name=themes_loop} - - - - +{if not empty($update_themes)} +
+
+{'Themes which need upgrade'|@translate} +{foreach from=$update_themes item=theme name=themes_loop} +
+
{'Name'|@translate}{'Version'|@translate}
{$theme.NAME}{$theme.VERSION}
+ + + + + + + + + + + + +
+ {$theme.EXT_NAME} + + {'Install'|@translate} + | {'Download'|@translate} + | {'Visit theme site'|@translate} +
+ {'Version'|@translate} {$theme.CURRENT_VERSION} + + {'Downloads'|@translate}: {$theme.DOWNLOADS} + + + {'New Version'|@translate} : {$theme.NEW_VERSION} + | {'By %s'|@translate|@sprintf:$theme.AUTHOR} +
+ +
+
{/foreach} - +
+ +{elseif not isset($SERVER_ERROR)} +

{'All themes are up to date.'|@translate}

{/if} -- cgit v1.2.3