From 1902b2c1dfff62c0225a170db38a4882df9143e6 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 4 Jan 2013 22:59:40 +0100 Subject: o Adding a basic navbar for ease of use. o Bootstrap-responsive. --- src/main/webapp/WEB-INF/tags/common/head.tagx | 2 ++ src/main/webapp/WEB-INF/urlrewrite.xml | 4 ++-- src/main/webapp/apps/app.js | 8 ++++++++ src/main/webapp/apps/core/navbar.html | 21 +++++++++++++++++++++ src/main/webapp/apps/frontPageApp/frontPage.html | 4 +++- src/main/webapp/apps/frontPageApp/frontPageApp.js | 2 +- src/main/webapp/apps/personApp/person.html | 2 ++ src/main/webapp/apps/personApp/personApp.js | 4 ++-- src/main/webapp/index.jspx | 5 ----- 9 files changed, 41 insertions(+), 11 deletions(-) create mode 100644 src/main/webapp/apps/core/navbar.html (limited to 'src') diff --git a/src/main/webapp/WEB-INF/tags/common/head.tagx b/src/main/webapp/WEB-INF/tags/common/head.tagx index 0ad2ba2..0f288fb 100755 --- a/src/main/webapp/WEB-INF/tags/common/head.tagx +++ b/src/main/webapp/WEB-INF/tags/common/head.tagx @@ -9,7 +9,9 @@ <c:if test="${not empty title }">${title } - </c:if>Yeah + + diff --git a/src/main/webapp/WEB-INF/urlrewrite.xml b/src/main/webapp/WEB-INF/urlrewrite.xml index a649f8b..a4834c9 100755 --- a/src/main/webapp/WEB-INF/urlrewrite.xml +++ b/src/main/webapp/WEB-INF/urlrewrite.xml @@ -16,13 +16,13 @@ - ^/person/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$ + ^/person/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/?$ $1 /person/person.jspx - ^/person/([-_0-9A-Za-z]{22})$ + ^/person/([-_0-9A-Za-z]{22})/?$ $1 /person/person.jspx diff --git a/src/main/webapp/apps/app.js b/src/main/webapp/apps/app.js index e69de29..c1ea158 100644 --- a/src/main/webapp/apps/app.js +++ b/src/main/webapp/apps/app.js @@ -0,0 +1,8 @@ +var directives = angular.module('core.directives', []); + +directives.directive('navbar', function () { + return { + restrict: 'E', + templateUrl: '/apps/core/navbar.html' + }; +}); diff --git a/src/main/webapp/apps/core/navbar.html b/src/main/webapp/apps/core/navbar.html new file mode 100644 index 0000000..fa0074c --- /dev/null +++ b/src/main/webapp/apps/core/navbar.html @@ -0,0 +1,21 @@ + diff --git a/src/main/webapp/apps/frontPageApp/frontPage.html b/src/main/webapp/apps/frontPageApp/frontPage.html index 5cdea9a..3c433ee 100755 --- a/src/main/webapp/apps/frontPageApp/frontPage.html +++ b/src/main/webapp/apps/frontPageApp/frontPage.html @@ -1,4 +1,6 @@
+ +