summaryrefslogtreecommitdiffstats
path: root/public_html
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-01-25 10:12:00 +0100
committerAleksander Machniak <alec@alec.pl>2012-01-25 10:12:00 +0100
commit5ea5c5c15a6600ea453dcad4ed97c986e74769d3 (patch)
tree160962fa97547d8e872eb96e3bad8cfcd9d84848 /public_html
parent43be773eb91677e00636f7d09c2896794f2e64cb (diff)
downloadwebadmin-5ea5c5c15a6600ea453dcad4ed97c986e74769d3.tar.gz
Some improvements for main page look
Diffstat (limited to 'public_html')
-rw-r--r--public_html/js/kolab_admin.js9
-rw-r--r--public_html/skins/default/style.css11
-rw-r--r--public_html/skins/default/templates/main.html14
3 files changed, 27 insertions, 7 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index 6742279..d1b3daf 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -273,7 +273,7 @@ function kolab_admin()
// handle HTTP response
this.http_response = function(response)
{
- var i;
+ var i, el, t;
if (!response)
return;
@@ -288,8 +288,11 @@ function kolab_admin()
$('#'+i).html(response.objects[i]);
// Update gen. time
- if (this.env.request_time)
- $('#request_time').text(((new Date()).getTime() - this.env.request_time)/1000);
+ if (this.env.request_time) {
+ t = ((new Date()).getTime() - this.env.request_time)/1000;
+ el = $('#reqtime');
+ el.text(el.text().replace(/[0-9.,]+/, t));
+ }
// we have translation labels to add
if (typeof response.labels === 'object')
diff --git a/public_html/skins/default/style.css b/public_html/skins/default/style.css
index 73412be..30521cd 100644
--- a/public_html/skins/default/style.css
+++ b/public_html/skins/default/style.css
@@ -213,9 +213,9 @@ td.label {
}
#footer {
- color: silver;
+ margin: 2px 15px;
+ color: #b0b0b0;
font-size: 9px;
- text-align: center;
margin-bottom: 10px;
}
@@ -580,7 +580,7 @@ fieldset.tabbed
/**** Main screen elements ****/
#main {
- padding: 30px;
+ padding: 5px 30px;
}
#main div {
@@ -618,6 +618,11 @@ fieldset.tabbed
}
+#reqtime {
+ white-space: nowrap;
+ vertical-align: top;
+}
+
/**** User task elements ****/
#userlist table {
diff --git a/public_html/skins/default/templates/main.html b/public_html/skins/default/templates/main.html
index ace14be..5c1dae3 100644
--- a/public_html/skins/default/templates/main.html
+++ b/public_html/skins/default/templates/main.html
@@ -18,6 +18,7 @@
<div id="navigation">{$main_menu}</div>
<div id="task_navigation">{$task_menu}</div>
<div id="content">
+ <h1>{$engine->translate('welcome')}</h1>
<div id="main">
{foreach $tasks as $link => $label}
<div class="{preg_replace('/\..*$/', '', $link)}" onclick="kadm.command('{$link}', '', this)">
@@ -28,7 +29,18 @@
</div>
</div>
<div id="footer">
- <span id="request_time">{$engine->gentime()}</span>
+ <table width="100%" cellpadding="0">
+ <tr>
+ <td width="99%">
+ {$engine->translate('about.community')}<br />
+ {$engine->translate('about.warranty')}<br />
+ {$engine->translate('about.support')}
+ </td>
+ <td width="1%" id="reqtime">
+ {$engine->translate('reqtime', {$engine->gentime()})}
+ </td>
+ </tr>
+ </table>
</div>
</body>
{$script}