Explorar o código

Merge branch 'master' of github.com:grafana/grafana

Torkel Ödegaard %!s(int64=9) %!d(string=hai) anos
pai
achega
5599bdf1bc

+ 5 - 7
examples/nginx-app/plugin.json

@@ -34,13 +34,11 @@
     "updated": "2015-02-10"
     "updated": "2015-02-10"
   },
   },
 
 
-  "includes": {
-    "dashboards": [],
-    "plugins": [
-      {"type": "panel", "name": "Nginx Panel"},
-      {"type": "datasource", "name": "Nginx Datasource"}
-    ]
-  },
+  "includes": [
+    {"type": "dashboard", "name": "Nginx Connection stats", "path": "dashboards/nginx_connection_stats.json"},
+    {"type": "panel", "name": "Nginx Panel"},
+    {"type": "datasource", "name": "Nginx Datasource"}
+  ],
 
 
   "dependencies": {
   "dependencies": {
     "grafanaVersion": "3.x.x",
     "grafanaVersion": "3.x.x",

+ 0 - 0
examples/nginx-app/src/dashboards/nginx_connection_stats.json


+ 1 - 1
public/app/features/plugins/partials/edit.html

@@ -1,5 +1,5 @@
 <navbar title="Plugins" title-url="plugins" icon="icon-gf icon-gf-apps">
 <navbar title="Plugins" title-url="plugins" icon="icon-gf icon-gf-apps">
-<a href="plugins" class="navbar-page-btn">
+<a href="plugins/{{ctrl.model.pluginId}}/edit" class="navbar-page-btn">
   {{ctrl.model.name}}
   {{ctrl.model.name}}
 </a>
 </a>
 </navbar>
 </navbar>