web ui title

Bug #1477807 reported by tom murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Won't Fix
Low
Rajiv Sah
Trunk
Fix Committed
Low
Rajiv Sah

Bug Description

this is with contrail 2.20 but also applies to earlier versions.

I deal with many cluster sites at a time. I find that all the Web UI screens have a title of "Contrail Controller" so it becomes very hard to distinguish which webui belongs to which site.

To help this, i would like to see some sort of site identifier in the title to help manage all those windows.

Tags: ui
Revision history for this message
tom murray (tmurray-a) wrote :

I changed /usr/src/contrail/contrail-web-core/webroot/html/dashboard.html
from

    <title>Contrail Controller</title>

to

    <title id="site"> </title>
    <script>
    var site = window.location.hostname;
    document.getElementById("site").innerHTML = "Contrail Controller - " + site;
    </script>

and /usr/src/contrail/contrail-web-core/webroot/html/login.html
from
    <title>Contrail Controller Login</title>

to

    <title id="site"> </title>
    <script>
    var site = window.location.hostname;
    document.getElementById("site").innerHTML = "Contrail Controller Login - " + site;
    </script>

This makes a basic title, but probably something could be extracted from the configuration to have a nicer site name

information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/19434
Submitter: Rajiv Sah (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Bug update]

bug update...

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/19434
Submitter: Rajiv Sah (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/19453
Submitter: Rajiv Sah (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/19434
Committed: http://github.org/Juniper/contrail-web-core/commit/5d5f57758c1b71ef611567ad913c3ef13ec9a3b1
Submitter: Zuul
Branch: master

commit 5d5f57758c1b71ef611567ad913c3ef13ec9a3b1
Author: Rajiv Kumar Shah <email address hidden>
Date: Tue Apr 19 01:09:09 2016 -0700

Closes-Bug: #1477807-web ui title

Change-Id: I669160935bd99bac45f00ab60840a602a726b2c8

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.