aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-03-26 00:55:12 +0000
committerpatdenice <patdenice@piwigo.org>2010-03-26 00:55:12 +0000
commit55ea0f2c4cd0a642f1470e6bdee33fc59a25ecbf (patch)
tree0e2f682f7a9440a99e72c41567e26a18c8dbc00e /admin/themes
parent63c78948daab04aa3c0c4bb5af50b791350979d2 (diff)
Feature 1535: Allow to install new languages from PEM.
git-svn-id: http://piwigo.org/svn/trunk@5371 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/themes/default/default-layout.css9
-rw-r--r--admin/themes/default/template/languages_installed.tpl6
-rw-r--r--admin/themes/default/template/languages_new.tpl40
3 files changed, 48 insertions, 7 deletions
diff --git a/admin/themes/default/default-layout.css b/admin/themes/default/default-layout.css
index a4939889c..43ffc2373 100644
--- a/admin/themes/default/default-layout.css
+++ b/admin/themes/default/default-layout.css
@@ -37,10 +37,14 @@ TABLE#detailedStats {
}
/* Plugins, languages tables */
-TABLE.plugins { min-width: 400px; }
+TABLE.plugins,
+TABLE.languages {
+ min-width: 500px;
+}
TABLE.plugins A { border: 0; }
TABLE.plugins TR TD { padding: 4px 10px; }
TABLE.plugins TR TD.pluginState { padding: 4px 16px; }
+TABLE.languages TR TD { padding: 7px 20px; }
TABLE.plugins TR TD.active,
TABLE.languages TR TD.active {
@@ -64,9 +68,6 @@ TABLE.plugins ul.pluginsActions {
TABLE.plugins ul.pluginsActions li { display: inline; }
-TABLE.languages { min-width: 400px; }
-TABLE.languages TR TD { text-align: center; padding: 4px 20px; }
-
/* categoryOrdering */
SELECT.categoryList {
width: 100%;
diff --git a/admin/themes/default/template/languages_installed.tpl b/admin/themes/default/template/languages_installed.tpl
index e83f13437..493d1edda 100644
--- a/admin/themes/default/template/languages_installed.tpl
+++ b/admin/themes/default/template/languages_installed.tpl
@@ -1,5 +1,5 @@
<div class="titrePage">
- <h2>{'Languages'|@translate}</h2>
+ <h2>{'Installed Languages'|@translate}</h2>
</div>
<table class="table2 languages">
@@ -12,11 +12,11 @@
{foreach from=$languages item=language name=languages_loop}
<tr class="{if $smarty.foreach.languages_loop.index is odd}row1{else}row2{/if}">
- <td class="{$language.STATE}" style="text-align: left;">
+ <td class="{$language.STATE}">
{$language.NAME}
{if $language.IS_DEFAULT}<i>({'Default'|@translate})</i>{/if}
</td>
- <td>
+ <td style="text-align: center;">
{if !$language.IS_DEFAULT}
{if $language.STATE == 'active' or $language.STATE == 'missing'}
<a href="{$language.U_ACTION}&amp;action=deactivate">{'Deactivate'|@translate}</a> |
diff --git a/admin/themes/default/template/languages_new.tpl b/admin/themes/default/template/languages_new.tpl
new file mode 100644
index 000000000..dac7489e4
--- /dev/null
+++ b/admin/themes/default/template/languages_new.tpl
@@ -0,0 +1,40 @@
+{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
+{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
+
+<script type="text/javascript">
+jQuery().ready(function(){ldelim}
+ jQuery('.cluetip').cluetip({ldelim}
+ width: 300,
+ splitTitle: '|'
+ });
+});
+</script>
+
+<div class="titrePage">
+ <h2>{'Add New Language'|@translate}</h2>
+</div>
+
+{if !empty($languages)}
+<table class="table2 languages">
+<thead>
+ <tr class="throw">
+ <td>{'Language'|@translate}</td>
+ <td>{'Version'|@translate}</td>
+ <td>{'Date'|@translate}</td>
+ <td>{'Author'|@translate}</td>
+ <td>{'Actions'|@translate}</td>
+ </tr>
+</thead>
+{foreach from=$languages item=language name=languages_loop}
+ <tr class="{if $smarty.foreach.languages_loop.index is odd}row1{else}row2{/if}">
+ <td><a href="{$language.EXT_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$language.EXT_NAME}|{$language.EXT_DESC|htmlspecialchars|nl2br}">{$language.EXT_NAME}</a></td>
+ <td style="text-align:center;"><a href="{$language.EXT_URL}" onclick="window.open(this.href); return false;" class="cluetip" title="{$language.EXT_NAME}|{$language.VER_DESC|htmlspecialchars|nl2br}">{$language.VERSION}</a></td>
+ <td>{$language.DATE}</td>
+ <td>{$language.AUTHOR}</td>
+ <td style="text-align:center;"><a href="{$language.URL_INSTALL}">{'Install'|@translate}</a>
+ / <a href="{$language.URL_DOWNLOAD}">{'download'|@translate|@ucfirst}</a>
+ </td>
+ </tr>
+{/foreach}
+</table>
+{/if} \ No newline at end of file