Skip to content
Snippets Groups Projects
Commit 6c684552 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '129-admin-link' into 'master'

Resolve "Admin link"

Closes #129

See merge request !26
parents 20aaee78 c24601df
No related branches found
No related tags found
1 merge request!26Resolve "Admin link"
...@@ -19,17 +19,26 @@ Header.prototype.constructor = Header; ...@@ -19,17 +19,26 @@ Header.prototype.constructor = Header;
Header.prototype._createHeaderGui = function() { Header.prototype._createHeaderGui = function() {
var self = this; var self = this;
self.getElement().className = "minerva-header";
var projectId = self.getMap().getProject().getProjectId(); var projectId = self.getMap().getProject().getProjectId();
var projectName = self.getMap().getProject().getName(); var projectName = self.getMap().getProject().getName();
var link = Functions.createElement({ var link = Functions.createElement({
type : "a", type : "a",
name : "headerPanel",
className : "mainTitle",
content : '<i class="fa fa-home" style="font-size:17px"></i> ' + projectName, content : '<i class="fa fa-home" style="font-size:17px"></i> ' + projectName,
}); });
link.href = ServerConnector.getServerBaseUrl() + "/?id=" + projectId; link.href = ServerConnector.getServerBaseUrl() + "?id=" + projectId;
self.getElement().appendChild(link); self.getElement().appendChild(link);
link = Functions.createElement({
type : "a",
style : "padding-right:15px; float:right",
content : '<i class="fa fa-lock" style="font-size:17px"></i>&nbsp;',
});
link.href = ServerConnector.getServerBaseUrl() + "admin.xhtml?id=" + projectId;
self.getElement().appendChild(link);
}; };
module.exports = Header; module.exports = Header;
...@@ -27,15 +27,6 @@ Footer.prototype._createFooterGui = function() { ...@@ -27,15 +27,6 @@ Footer.prototype._createFooterGui = function() {
self.getElement().className = "footerLinks"; self.getElement().className = "footerLinks";
var link = Functions.createElement({ var link = Functions.createElement({
type : "a",
name : "footerAdminLink",
style : "padding-left:25px;",
content : '<i class="fa fa-lock" style="font-size:17px"></i> &nbsp;ADMIN',
});
link.href = ServerConnector.getServerBaseUrl() + "/admin.xhtml?id=" + projectId;
self.getElement().appendChild(link);
link = Functions.createElement({
type : "a", type : "a",
name : "footerManualLink", name : "footerManualLink",
style : "padding-left:25px;", style : "padding-left:25px;",
......
...@@ -4,7 +4,11 @@ ...@@ -4,7 +4,11 @@
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"> xmlns:p="http://primefaces.org/ui">
<a href="#{request.contextPath}/?id=#{mapMB.currentMapId}" class="mainTitle"><i class="fa fa-home" style="font-size:17px"></i> #{mapMB.currentProject.name}</a> <h:outputStylesheet library="css" name="global.css" />
<div class="minerva-header">
<a href="#{request.contextPath}/?id=#{mapMB.currentMapId}" class="mainTitle"><i class="fa fa-home" style="font-size:17px"></i> #{mapMB.currentProject.name}</a>
</div>
</html> </html>
...@@ -7,6 +7,29 @@ table.mapInfoBoxResultsTable, table.mapInfoBoxResultsTable th, table.mapInfoBoxR ...@@ -7,6 +7,29 @@ table.mapInfoBoxResultsTable, table.mapInfoBoxResultsTable th, table.mapInfoBoxR
border: 1px solid black; border: 1px solid black;
} }
.minerva-header{
background-color:#333333;
color:#ffffff;
display:block;
}
.minerva-header a:link, .minerva-header a:visited {
background-color:#333333;
color:#ffffff;
line-height:36px;
height:36px;
text-decoration:none;
transition: background-color 0.4s ease-in-out 0s;
font-size:13px;
font-weight:900;
padding-left:15px;
}
.minerva-header a:hover {
background-color:#000000;
transition: background-color 0.4s ease-in-out 0s;
}
.mapChartNameDiv { .mapChartNameDiv {
width: 150px; width: 150px;
float: left; float: left;
......
...@@ -1018,11 +1018,6 @@ ui-overlay-visible *{visibility:visible !important;} ...@@ -1018,11 +1018,6 @@ ui-overlay-visible *{visibility:visible !important;}
.ui-wizard-nav-next{float:right;} .ui-wizard-nav-next{float:right;}
.ui-wizard-step-title{font-size:18px;margin:0 3px 0 0;padding:0.4em;float:left;} .ui-wizard-step-title{font-size:18px;margin:0 3px 0 0;padding:0.4em;float:left;}
a.mainTitle:link, a.mainTitle:visited {background-color:#333333; color:#ffffff; display:block; flaot:left; line-height:36px; height:36px; text-decoration:none; transition: background-color 0.4s ease-in-out 0s; font-size:13px; font-weight:900; padding-left:15px;}
a.mainTitle:hover {background-color:#000000; transition: background-color 0.4s ease-in-out 0s;}
.overview_button {color:#FFFFFF; height:36px; line-height:35px; padding:0 18px; margin:0; border:none; background-color:#017DA7; font-size:13px; font-weight:900; border-right:1px solid #9DE1F8; cursor:pointer; transition: background-color 0.4s ease-in-out 0s; } .overview_button {color:#FFFFFF; height:36px; line-height:35px; padding:0 18px; margin:0; border:none; background-color:#017DA7; font-size:13px; font-weight:900; border-right:1px solid #9DE1F8; cursor:pointer; transition: background-color 0.4s ease-in-out 0s; }
.overview_button:hover {background-color:#01536D; transition: background-color 0.4s ease-in-out 0s; } .overview_button:hover {background-color:#01536D; transition: background-color 0.4s ease-in-out 0s; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment