提交 a277b734 编写于 作者: T tfennelly

[JENKINS-23492] Fixed auth/login links in top navbar

上级 65d3799f
...@@ -83,6 +83,9 @@ ...@@ -83,6 +83,9 @@
cursor: pointer; cursor: pointer;
z-index: 2000; z-index: 2000;
} }
#menuSelector.inverse {
background-image: url(menu_down_arrow2.png);
}
A.model-link.inside, #breadcrumbs A.inside {/* additional 'inside' class allows pre-allocation of the context menu space */ A.model-link.inside, #breadcrumbs A.inside {/* additional 'inside' class allows pre-allocation of the context menu space */
padding-right: 16px; padding-right: 16px;
......
...@@ -103,8 +103,16 @@ var breadcrumbs = (function() { ...@@ -103,8 +103,16 @@ var breadcrumbs = (function() {
*/ */
menuSelector.show = function(target) { menuSelector.show = function(target) {
var xy = Dom.getXY(target); var xy = Dom.getXY(target);
if ($(target).hasClassName("inside")) if ($(target).hasClassName("inside"))
xy[0] -= this.offsetWidth; // show the menu selector inside the text xy[0] -= this.offsetWidth; // show the menu selector inside the text
if ($(target).hasClassName("inverse")) {
menuSelector.addClassName("inverse");
} else {
menuSelector.removeClassName("inverse");
}
xy[0] += target.offsetWidth; xy[0] += target.offsetWidth;
xy[1] += target.offsetHeight/2 - this.offsetHeight/2; xy[1] += target.offsetHeight/2 - this.offsetHeight/2;
Dom.setXY(this, xy); Dom.setXY(this, xy);
......
...@@ -170,7 +170,7 @@ ${h.initPageVariables(context)} ...@@ -170,7 +170,7 @@ ${h.initPageVariables(context)}
</j:otherwise> </j:otherwise>
</j:choose> </j:choose>
<span style="white-space:nowrap"> <span style="white-space:nowrap">
<a href="${rootURL}/user/${user.id}" class="model-link inside"><b>${userName}</b></a> <a href="${rootURL}/user/${user.id}" class="model-link inside inverse"><b>${userName}</b></a>
<j:if test="${app.securityRealm.canLogOut()}"> <j:if test="${app.securityRealm.canLogOut()}">
| |
<a href="${rootURL}/logout"><b>${%logout}</b></a> <a href="${rootURL}/logout"><b>${%logout}</b></a>
......
...@@ -184,13 +184,14 @@ dt { ...@@ -184,13 +184,14 @@ dt {
} }
#header .login { #header .login {
position: relative;
top: 8px;
color: white; color: white;
margin-right: 10px; margin-right: 10px;
} }
#header .login a { #header .login a, #header .login a:visited {
position: relative; color: white;
top: 10px;
} }
a:link { a:link {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册