浏览代码

fix(404): fixed 404 page

Torkel Ödegaard 9 年之前
父节点
当前提交
e3564d12a1
共有 2 个文件被更改,包括 9 次插入7 次删除
  1. 1 0
      pkg/api/api.go
  2. 8 7
      public/app/partials/error.html

+ 1 - 0
pkg/api/api.go

@@ -307,4 +307,5 @@ func Register(r *macaron.Macaron) {
 
 	InitAppPluginRoutes(r)
 
+	r.NotFound(NotFoundHandler)
 }

+ 8 - 7
public/app/partials/error.html

@@ -1,11 +1,12 @@
+<navbar title="404" icon="fa fa-fw fa-question" title-url="/">
+</navbar>
 
-<div class="row-fluid" style="margin-top: 100px;">
-	<div class="span2"></div>
+<div class="page-container">
 
-	<div class="grafana-info-box span8 text-center">
-			<h3>Page not found (404)</h3>
-		</div>
-
-	<div class="span2"></div>
+  <div class="page-header">
+    <h1>
+			Page not found (404)
+		</h1>
+	</div>
 
 </div>