From 4fdc5ff30c8f390088812bac6f3efe653d649356 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Fri, 8 Jul 2011 17:12:08 +0200 Subject: First test for friendika "live" update --- view/admin_aside.tpl | 5 ++ view/admin_remoteupdate.tpl | 98 +++++++++++++++++++++++++++++++++++++++ view/theme/duepuntozero/style.css | 37 +++++++++++++-- 3 files changed, 136 insertions(+), 4 deletions(-) create mode 100644 view/admin_remoteupdate.tpl (limited to 'view') diff --git a/view/admin_aside.tpl b/view/admin_aside.tpl index c9ab17aa5..1cf431bec 100644 --- a/view/admin_aside.tpl +++ b/view/admin_aside.tpl @@ -30,3 +30,8 @@ + + + diff --git a/view/admin_remoteupdate.tpl b/view/admin_remoteupdate.tpl new file mode 100644 index 000000000..0c15692c2 --- /dev/null +++ b/view/admin_remoteupdate.tpl @@ -0,0 +1,98 @@ + + + +
+
Your version:
$localversion
+{{ if $needupdate }} +
New version:
$remoteversion
+ +
+ + + {{ if $canwrite }} +
+ {{ else }} +

Your friendika installation is not writable by web server.

+ {{ if $canftp }} +

You can try to update via FTP

+ {{ inc field_input.tpl with $field=$ftphost }}{{ endinc }} + {{ inc field_input.tpl with $field=$ftppath }}{{ endinc }} + {{ inc field_input.tpl with $field=$ftpuser }}{{ endinc }} + {{ inc field_password.tpl with $field=$ftppwd }}{{ endinc }} +
+ {{ endif }} + {{ endif }} +
+{{ else }} +

No updates

+{{ endif }} +
diff --git a/view/theme/duepuntozero/style.css b/view/theme/duepuntozero/style.css index bbaa43b57..78a0bff5b 100644 --- a/view/theme/duepuntozero/style.css +++ b/view/theme/duepuntozero/style.css @@ -1943,7 +1943,6 @@ a.mail-list-link { #install-dbuser-label, #install-dbpass-label, #install-dbdata-label, -#install-admin-label, #install-tz-desc { float: left; width: 250px; @@ -1955,8 +1954,7 @@ a.mail-list-link { #install-dbhost, #install-dbuser, #install-dbpass, -#install-dbdata, -#install-admin { +#install-dbdata { float: left; width: 200px; margin-left: 20px; @@ -1966,7 +1964,6 @@ a.mail-list-link { #install-dbuser-end, #install-dbpass-end, #install-dbdata-end, -#install-admin-end, #install-tz-end { clear: both; } @@ -2573,6 +2570,38 @@ a.mail-list-link { #adminpage table#users img { width: 16px; height: 16px; } #adminpage table tr:hover { background-color: #bbc7d7; } #adminpage .selectall { text-align: right; } + +/* + * UPDATE + */ +.popup { + width: 100%; height: 100%; + top:0px; left:0px; + position: absolute; + display: none; +} + +.popup .background { + background-color: rgba(0,0,0,128); + opacity: 0.5; + width: 100%; height: 100%; + position: absolute; + top:0px; left:0px; +} +.popup .panel { + top:25%;left:25%;width:50%;height:50%; + padding: 1em; + position: absolute; + border: 4px solid #000000; + background-color: #FFFFFF; +} +.popup .panel .panel_text { display: block; overflow: auto; height: 80%; } +.popup .panel .panel_in { width: 100%; height: 100%; position: relative; } +.popup .panel .panel_actions { width: 100%; bottom: 4px; left: 0px; position: absolute; } +.panel_text .progress { width: 50%; overflow: hidden; height: auto; border: 1px solid #cccccc; margin-bottom: 5px} +.panel_text .progress span {float: right; display: block; width: 25%; background-color: #eeeeee; text-align: right;} + + /** * ICONS */ -- cgit v1.2.3 From 34ab2aa9594d1bd86464720a839c4df6517761fe Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Wed, 13 Jul 2011 08:58:47 +0200 Subject: move update link in admin aside --- view/admin_aside.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'view') diff --git a/view/admin_aside.tpl b/view/admin_aside.tpl index 1cf431bec..63f109d7f 100644 --- a/view/admin_aside.tpl +++ b/view/admin_aside.tpl @@ -17,6 +17,10 @@ + + {{ if $admin.plugins_admin }}

Plugins

{{ endif }} - - -- cgit v1.2.3