mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-08-20 04:30:42 +02:00
new header
This commit is contained in:
parent
16985ae7d7
commit
e6e05e6be3
@ -112,7 +112,7 @@ div#headerButtons activelink a, div#headerButtons activelink a:hover {
|
|||||||
|
|
||||||
div#headerActions {
|
div#headerActions {
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
padding-top: 4px;
|
padding-top: 2px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 50;
|
z-index: 50;
|
||||||
|
@ -13,6 +13,24 @@
|
|||||||
}
|
}
|
||||||
%>
|
%>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.btn-header {
|
||||||
|
background-color: #171a17;
|
||||||
|
border-color: #575757;
|
||||||
|
}
|
||||||
|
.btn-header:hover {
|
||||||
|
background-color: #F7C931;
|
||||||
|
}
|
||||||
|
.WelcomeHeader {
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
padding: 5px 10px;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.5;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<div id="settings-dialog-modal" class="modal fade">
|
<div id="settings-dialog-modal" class="modal fade">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@ -33,15 +51,23 @@
|
|||||||
<div id="headerToolbar">
|
<div id="headerToolbar">
|
||||||
<c:choose>
|
<c:choose>
|
||||||
<c:when test="${principal != null}">
|
<c:when test="${principal != null}">
|
||||||
<div id="headerActions">
|
|
||||||
|
<div class='WelcomeHeader' >
|
||||||
<spring:message code="WELCOME"/>, ${principal.firstname}
|
<spring:message code="WELCOME"/>, ${principal.firstname}
|
||||||
| <span><a href="c/maps/"><spring:message
|
</div>
|
||||||
code="MY_WISEMAPS"/></a></span>
|
|
||||||
| <span><a id="userSettingsBtn" href="#"
|
<div class="btn-group" id="headerActions">
|
||||||
title="<spring:message code="ACCOUNT_DETAIL"/>"><spring:message
|
|
||||||
code="ACCOUNT"/></a></span>
|
<button type="button" onclick="location.href='c/maps/'" class="btn btn-sm btn-header"><spring:message code="MY_WISEMAPS"/></button>
|
||||||
| <span><a href="c/logout"
|
|
||||||
title="<spring:message code="LOGOUT"/>"><spring:message code="LOGOUT"/></a></span>
|
<button type="button" onclick="accountInfo()" title="<spring:message code="ACCOUNT_DETAIL"/>" class="btn btn-sm btn-header">
|
||||||
|
<spring:message code="ACCOUNT"/>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button onclick="location.href='c/logout'" title="<spring:message code="LOGOUT"/>" type="button" class="btn btn-sm btn-header">
|
||||||
|
<spring:message code="LOGOUT"/>
|
||||||
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:when test="${!param.removeSignin && !requestScope.removeSignin}">
|
<c:when test="${!param.removeSignin && !requestScope.removeSignin}">
|
||||||
@ -69,22 +95,18 @@
|
|||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var userSettingsLink = $('#userSettingsBtn');
|
|
||||||
if (userSettingsLink) {
|
|
||||||
userSettingsLink.click(
|
|
||||||
function (event) {
|
|
||||||
$('#settings-dialog-modal .modal-body').load("c/account/settings",
|
|
||||||
function () {
|
|
||||||
$('#settings-dialog-modal .btn-cancel').unbind('click').click(function () {
|
|
||||||
$('#settings-dialog-modal').modal("hide");
|
|
||||||
window.location.reload();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
);
|
|
||||||
$('#settings-dialog-modal').modal();
|
|
||||||
event.preventDefault();
|
|
||||||
|
|
||||||
});
|
function accountInfo(event) {
|
||||||
|
$('#settings-dialog-modal .modal-body').load("c/account/settings",
|
||||||
|
function () {
|
||||||
|
$('#settings-dialog-modal .btn-cancel').unbind('click').click(function () {
|
||||||
|
$('#settings-dialog-modal').modal("hide");
|
||||||
|
window.location.reload();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
);
|
||||||
|
$('#settings-dialog-modal').modal();
|
||||||
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user