Skip to content

Commit

Permalink
Merge pull request #58 from derek63/add-versions-to-footer
Browse files Browse the repository at this point in the history
Add versions to footer
  • Loading branch information
jewzaam committed Feb 3, 2015
2 parents 2c0c2ce + b3194a5 commit f90bfc4
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 3 deletions.
16 changes: 16 additions & 0 deletions common/src/main/webapp/css/lightblue-apps.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 60px;
background-color: #f5f5f5;
}
28 changes: 26 additions & 2 deletions common/src/main/webapp/js/lightblue-apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,38 @@
showErrorMessage( textStatus );
});
}

function loadVersions() {
"use strict";

var request = $.ajax({
type: "GET",
url: metadataServicePath + "health",
});

request.done(function( msg ) {
if (msg.objectType === 'error') {
showLightblueErrorMessage(msg);
}
else {
$("#metadata-service-version").text("Metadata Service Version: " + msg);
}
});

request.fail(function( jqXHR, textStatus ) {
showErrorMessage( textStatus );
});
}

$(document).ready(function() {
"use strict";

if (!isAdmin()) {
$(".role-user-admin").hide();
}

}

loadVersions();

var entitySelect = $("#entities");
var versionSelect = $("#versions");
var submitButton = $("#load-content-btn");
Expand Down
10 changes: 10 additions & 0 deletions metadata-mgmt-saml-auth/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>com.redhat.lightblue.client</groupId>
<artifactId>lightblue-client-http</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
Expand Down Expand Up @@ -53,6 +57,12 @@
<artifactId>lightblue-applications-common</artifactId>
</overlay>
</overlays>
<webResources>
<resource>
<directory>src/main/webapp</directory>
<filtering>true</filtering>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
Expand Down
10 changes: 10 additions & 0 deletions metadata-mgmt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>com.redhat.lightblue.client</groupId>
<artifactId>lightblue-client-http</artifactId>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
Expand Down Expand Up @@ -43,6 +47,12 @@
<artifactId>lightblue-applications-common</artifactId>
</overlay>
</overlays>
<webResources>
<resource>
<directory>src/main/webapp</directory>
<filtering>true</filtering>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
Expand Down
10 changes: 9 additions & 1 deletion metadata-mgmt/src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,14 @@ <h3 class="panel-title">
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="text-muted">
<div class="text-muted" id="app-version">App Version: ${project.version} </div>
<div class="text-muted" id="metadata-service-version">Metadata Service Version: </div>
</p>
</div>
</footer>
</body>
</html>

0 comments on commit f90bfc4

Please sign in to comment.