Revision 02717631
b/snf-astakos-app/astakos/im/static/im/cloudbar/README.rst | ||
---|---|---|
36 | 36 |
and the authentication status of the current visitor of the page. |
37 | 37 |
- Set the ``CLOUDBAR_ACTIVE_SERVICE`` to the id of the service the current |
38 | 38 |
page refers to so that script cat set the appropriate active styles to |
39 |
the services menu for services ids see ``SERVICES_LINK`` |
|
40 |
object in cloudbar.js. |
|
39 |
the services menu for services ids see ``SERVICES_LINK`` object in |
|
40 |
cloudbar.js. Use special **accounts** value to set account menu as the |
|
41 |
active link. |
|
41 | 42 |
- Set the ``CLOUDBAR_LOCATION`` to the url where bar files are served from. |
42 | 43 |
- Include the servicesbar.js script. |
43 | 44 |
|
b/snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.css | ||
---|---|---|
104 | 104 |
font-weight: bold !important; |
105 | 105 |
font-size: 12px !important; |
106 | 106 |
} |
107 |
.servicesbar .profile .user.active { |
|
108 |
background-color: #333; |
|
109 |
} |
|
107 | 110 |
.servicesbar .profile a { |
108 | 111 |
float: none; |
109 | 112 |
} |
b/snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.js | ||
---|---|---|
58 | 58 |
|
59 | 59 |
// create profile links |
60 | 60 |
var user = $('<div class="user"></div>'); |
61 |
if (ACTIVE_MENU == "accounts") { user.addClass("hover active")} |
|
61 | 62 |
var username = $('<a href="#"></a>'); |
62 | 63 |
var usermenu = $("<ul>"); |
63 | 64 |
var get_menu_url = (window.GET_MENU_URL || window.CLOUDBAR_MENU) + '?callback=?&location=' + window.location.toString(); |
b/snf-astakos-app/astakos/im/static/im/cloudbar/cloudbar.less | ||
---|---|---|
79 | 79 |
font-weight: bold !important; |
80 | 80 |
font-size: 12px !important; |
81 | 81 |
} |
82 |
|
|
83 |
&.active { |
|
84 |
background-color: #333; |
|
85 |
} |
|
82 | 86 |
} |
83 | 87 |
a { |
84 | 88 |
float: none; |
Also available in: Unified diff