From 0520c117a95b4112a6b00a733c3562b842380c87 Mon Sep 17 00:00:00 2001 From: Mario Colque Date: Fri, 31 Jan 2014 16:34:25 -0300 Subject: [PATCH] moved templates to includes --- app/views/includes/foot.jade | 2 +- app/views/includes/navbar.jade | 2 +- public/views/includes/connection.html | 8 ++++++ public/views/includes/footer.html | 3 ++ public/views/includes/header.html | 41 +++++++++++++++++++++++++++ public/views/includes/infoStatus.html | 4 +++ 6 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 public/views/includes/connection.html create mode 100644 public/views/includes/footer.html create mode 100644 public/views/includes/header.html create mode 100644 public/views/includes/infoStatus.html diff --git a/app/views/includes/foot.jade b/app/views/includes/foot.jade index b84cba83..305c2449 100755 --- a/app/views/includes/foot.jade +++ b/app/views/includes/foot.jade @@ -1,4 +1,4 @@ -#footer(data-ng-include="'/views/footer.html'", role='navigation') +#footer(data-ng-include="'/views/includes/footer.html'", role='navigation') script(type='text/javascript', src='/socket.io/socket.io.js') script(type='text/javascript', src='/lib/momentjs/moment.js') diff --git a/app/views/includes/navbar.jade b/app/views/includes/navbar.jade index 10463d60..56e5e3c8 100644 --- a/app/views/includes/navbar.jade +++ b/app/views/includes/navbar.jade @@ -1 +1 @@ -.navbar.navbar-default.navbar-fixed-top(data-ng-include="'/views/header.html'", role='navigation') +.navbar.navbar-default.navbar-fixed-top(data-ng-include="'/views/includes/header.html'", role='navigation') diff --git a/public/views/includes/connection.html b/public/views/includes/connection.html new file mode 100644 index 00000000..eb301ab7 --- /dev/null +++ b/public/views/includes/connection.html @@ -0,0 +1,8 @@ +
+
+ Error! +

Can't connect to bitcoind.

+

Can't connect to server.

+

Can't connect to internet. Please, check your connection.

+
+
diff --git a/public/views/includes/footer.html b/public/views/includes/footer.html new file mode 100644 index 00000000..e87127e6 --- /dev/null +++ b/public/views/includes/footer.html @@ -0,0 +1,3 @@ +
+ Insight API v{{version}} +
diff --git a/public/views/includes/header.html b/public/views/includes/header.html new file mode 100644 index 00000000..888b4395 --- /dev/null +++ b/public/views/includes/header.html @@ -0,0 +1,41 @@ +
+
+ + +
+
diff --git a/public/views/includes/infoStatus.html b/public/views/includes/infoStatus.html new file mode 100644 index 00000000..011a8095 --- /dev/null +++ b/public/views/includes/infoStatus.html @@ -0,0 +1,4 @@ +Loading... +{{error}} + +