Bug 31700 - Revise UCS overview site
Revise UCS overview site
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Apache
UCS 3.1
Other Linux
: P5 enhancement (vote)
: UCS 3.2
Assigned To: Alexander Kläser
Florian Best
: interim-2
Depends on:
Blocks: 32642 31559 31805 32610 32613 32698 33026
  Show dependency treegraph
 
Reported: 2013-06-11 07:53 CEST by Stefan Gohmann
Modified: 2013-11-19 06:42 CET (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Design, Release Goal, Usability
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2013-06-11 07:53:02 CEST
The UCS overview site http://<Server IP> should be revised. The interface for 3rd party apps should be compatible at least for UCS 3.2.
Comment 1 Erik Damrose univentionstaff 2013-08-14 14:19:21 CEST
ucs-overview supports switching between different languages. However, the available languages (english and german) are hardcoded in template files. While working on the overview an easier way to integrate more languages could be explored for future development.
Comment 2 Alexander Kläser univentionstaff 2013-09-17 02:51:02 CEST
(In reply to Erik Damrose from comment #1)
> ucs-overview supports switching between different languages. However, the
> available languages (english and german) are hardcoded in template files.
> While working on the overview an easier way to integrate more languages
> could be explored for future development.

This has been respected, the localization is now very generic and extensible. Necessary variables are written via UCR template (see Bug 31805) into a JSON file which is read via JavaScript. Texts on the website itself are localized in JavaScript similar to UMC.


 univention-apache (6.0.1-1) unstable; urgency=low
 .
   * Bug #32022: revised UCS start site, replaced
   * Bug #31805: replace links via template files with UCR variables
Comment 3 Stefan Gohmann univentionstaff 2013-09-17 09:39:18 CEST
Nice.

I think the default page after the installation looks like an error: "There are currently no user web services installed." Would it be better to display the admin site in this case by default?
Comment 4 Alexander Kläser univentionstaff 2013-09-17 12:13:37 CEST
(In reply to Stefan Gohmann from comment #3)
> Nice.
> 
> I think the default page after the installation looks like an error: "There
> are currently no user web services installed." Would it be better to display
> the admin site in this case by default?

Not sure, to be discussed. Initially, the word "Administration" was a link in the text which would open the administration tab. This, however, was not technically not as easy to realize properly.
Comment 5 Alexander Kläser univentionstaff 2013-09-17 12:15:05 CEST
It seems that the paddings to the window borders are not being adapted when shrinking the view on mobile devices. This used to work.
Comment 6 Alexander Kläser univentionstaff 2013-09-17 13:01:07 CEST
The tab with administration links is now shown in case no service links are available. The problems with margins/paddings on mobile devices has been resolved. The favicon was not displayed correctly, this has been resolved, as well.

 univention-apache (6.0.3-1) unstable; urgency=low
 .
   * Bug #31700: fixed favicon and margins for mobile devices
Comment 7 Florian Best univentionstaff 2013-09-17 16:24:16 CEST
The old de.html and en.html still exists.

Also the new redirect rule does not match, patch:

Index: services/univention-apache/conffiles/etc/apache2/sites-available/default
===================================================================
--- services/univention-apache/conffiles/etc/apache2/sites-available/default    (Revision 44155)
+++ services/univention-apache/conffiles/etc/apache2/sites-available/default    (Arbeitskopie)
@@ -42,6 +42,5 @@
 
 <Directory /var/www/ucs-overview/>
        RewriteEngine On
-       RewriteRule ^/ucs-overview/de.html$ /ucs-overview?lang=de [L,R]
-       RewriteRule ^/ucs-overview/en.html$ /ucs-overview?lang=en [L,R]
+       RewriteRule ^(de|en).html$ /ucs-overview?lang=$1 [L,R
Comment 8 Alexander Kläser univentionstaff 2013-09-18 11:18:33 CEST
(In reply to Florian Best from comment #7)
> The old de.html and en.html still exists.

Yes, this is correct. There are still references in other packages to this multi file template. These references will be adjusted via Bug 32611.

> Also the new redirect rule does not match, patch:
> 
> Index:
> services/univention-apache/conffiles/etc/apache2/sites-available/default
> ===================================================================
> --- services/univention-apache/conffiles/etc/apache2/sites-available/default
> (Revision 44155)
> +++ services/univention-apache/conffiles/etc/apache2/sites-available/default
> (Arbeitskopie)
> @@ -42,6 +42,5 @@
>  
>  <Directory /var/www/ucs-overview/>
>         RewriteEngine On
> -       RewriteRule ^/ucs-overview/de.html$ /ucs-overview?lang=de [L,R]
> -       RewriteRule ^/ucs-overview/en.html$ /ucs-overview?lang=en [L,R]
> +       RewriteRule ^(de|en).html$ /ucs-overview?lang=$1 [L,R

Perfect, it works now. Thanks :) .


 univention-apache (6.0.4-1) unstable; urgency=low
 .
   * Bug #31700: adjusted apache redirect rule for old overview files
Comment 9 Alexander Kläser univentionstaff 2013-09-19 16:19:56 CEST
On Android tablets, the site would not be displayed properly. Therefore, the tab focussing mechanism needed to be adapted. Now it is also possible to directly address http://localhost/ucs-overview#admin or #service. I also fixed problems with rounded borders on IE9 (the CSS filter command would prevent other CSS effects, therefore I deactivated it).

 univention-apache (6.0.6-1) unstable; urgency=low
 .
   * Bug #31700: fixed problems with Android tablets, fixed problems with
     rounded borders on IE9, direct links to #admin or #service are now
     possible
Comment 10 Florian Best univentionstaff 2013-09-20 14:54:28 CEST
3.1-1 → 3.2 OK

> * Removed link from univention logo
> * Made whole buttons clickable (instead of just text/icon)
> * Removed head line for link groups
OK

language switch OK

ipad, android, firefox, chromium, ie OK

RewriteRule OK
Comment 11 Stefan Gohmann univentionstaff 2013-11-19 06:42:56 CET
UCS 3.2 has been released:
 http://docs.univention.de/release-notes-3.2-en.html
 http://docs.univention.de/release-notes-3.2-de.html

If this error occurs again, please use "Clone This Bug".