nitweb: front end display 404 error
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 25 Aug 2016 04:48:31 +0000 (00:48 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 25 Aug 2016 04:48:31 +0000 (00:48 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

share/nitweb/javascripts/nitweb.js
share/nitweb/views/error.html [new file with mode: 0644]

index 21df4bf..6cac103 100644 (file)
@@ -54,7 +54,7 @@
                                controllerAs: 'entityCtrl'
                        })
                        .otherwise({
-                               redirectTo: '/'
+                               templateUrl: 'views/error.html'
                        });
                $locationProvider.html5Mode(true);
        });
diff --git a/share/nitweb/views/error.html b/share/nitweb/views/error.html
new file mode 100644 (file)
index 0000000..0b5252f
--- /dev/null
@@ -0,0 +1,6 @@
+<div class='container-fluid'>
+       <div class='page-header'>
+               <h2>404 Not found</h2>
+               <p>The page you requested does not exist.</p>
+       </div>
+</div>