mirror of https://github.com/apache/archiva.git
add a welcome badge on user login
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1426833 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
03345f6ab8
commit
ebf1d0b092
|
@ -92,6 +92,7 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa
|
||||||
hideElementWithKarma();
|
hideElementWithKarma();
|
||||||
$("#main-content").empty();
|
$("#main-content").empty();
|
||||||
$("#user-messages" ).empty();
|
$("#user-messages" ).empty();
|
||||||
|
$("#login-welcome" ).hide();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'restServices/redbackServices/loginService/logout',
|
url: 'restServices/redbackServices/loginService/logout',
|
||||||
complete: function(){
|
complete: function(){
|
||||||
|
|
|
@ -133,7 +133,6 @@ require(["jquery","jquery.tmpl","i18n","knockout"], function(jquery,jqueryTmpl,i
|
||||||
if(window.archivaModel.adminExists==false){
|
if(window.archivaModel.adminExists==false){
|
||||||
displayErrorMessage($.i18n.prop("admin.creation.mandatory"));
|
displayErrorMessage($.i18n.prop("admin.creation.mandatory"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -445,7 +445,8 @@ function(jquery,utils,i18n,jqueryValidate,ko,koSimpleGrid,purl) {
|
||||||
}
|
}
|
||||||
clearForm("#user-login-form");
|
clearForm("#user-login-form");
|
||||||
decorateMenuWithKarma(user);
|
decorateMenuWithKarma(user);
|
||||||
|
$("#login-welcome" ).show();
|
||||||
|
$("#welcome-label" ).html("Welcome " + user.username());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var modalLoginErrMsg=$("#modal-login-err-message");
|
var modalLoginErrMsg=$("#modal-login-err-message");
|
||||||
|
|
|
@ -75,7 +75,13 @@
|
||||||
<div style="max-height: 40px" class="navbar-inner">
|
<div style="max-height: 40px" class="navbar-inner">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div id="organisation-logo" style="max-height: 40px" class="pull-left"></div>
|
<div id="organisation-logo" style="max-height: 40px" class="pull-left"></div>
|
||||||
|
|
||||||
<ul class="nav pull-right">
|
<ul class="nav pull-right">
|
||||||
|
<li id="login-welcome" style="display: none">
|
||||||
|
<a>
|
||||||
|
<span class="label label-important" id="welcome-label"></span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li id="create-admin-link" style="display: none">
|
<li id="create-admin-link" style="display: none">
|
||||||
<a href="#open-admin-create-box" onclick="adminCreateBox();" id="create-admin-link-a">
|
<a href="#open-admin-create-box" onclick="adminCreateBox();" id="create-admin-link-a">
|
||||||
<span class="label label-important">${$.i18n.prop('create.admin.page.link')}</span>
|
<span class="label label-important">${$.i18n.prop('create.admin.page.link')}</span>
|
||||||
|
|
Loading…
Reference in New Issue