Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
fc8146b5
Commit
fc8146b5
authored
Feb 29, 2016
by
Anthony Woods
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4187 from raintank/issue4185
replace 'app' with 'plugins' where needed.
parents
b32809d0
64184551
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
public/app/features/plugins/page_ctrl.ts
+3
-4
public/app/features/plugins/partials/edit.html
+1
-1
public/app/features/plugins/partials/page.html
+1
-1
No files found.
public/app/features/plugins/page_ctrl.ts
View file @
fc8146b5
...
@@ -5,14 +5,13 @@ import _ from 'lodash';
...
@@ -5,14 +5,13 @@ import _ from 'lodash';
export
class
AppPageCtrl
{
export
class
AppPageCtrl
{
page
:
any
;
page
:
any
;
app
Id
:
any
;
plugin
Id
:
any
;
appModel
:
any
;
appModel
:
any
;
/** @ngInject */
/** @ngInject */
constructor
(
private
backendSrv
,
private
$routeParams
:
any
,
private
$rootScope
)
{
constructor
(
private
backendSrv
,
private
$routeParams
:
any
,
private
$rootScope
)
{
this
.
appId
=
$routeParams
.
appId
;
this
.
pluginId
=
$routeParams
.
pluginId
;
this
.
backendSrv
.
get
(
`/api/org/plugins/
${
this
.
pluginId
}
/settings`
).
then
(
app
=>
{
this
.
backendSrv
.
get
(
`/api/org/apps/
${
this
.
appId
}
/settings`
).
then
(
app
=>
{
this
.
appModel
=
app
;
this
.
appModel
=
app
;
this
.
page
=
_
.
findWhere
(
app
.
pages
,
{
slug
:
this
.
$routeParams
.
slug
});
this
.
page
=
_
.
findWhere
(
app
.
pages
,
{
slug
:
this
.
$routeParams
.
slug
});
if
(
!
this
.
page
)
{
if
(
!
this
.
page
)
{
...
...
public/app/features/plugins/partials/edit.html
View file @
fc8146b5
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
{{ds.name}}
{{ds.name}}
</li>
</li>
<li
ng-repeat=
"page in ctrl.model.pages"
>
<li
ng-repeat=
"page in ctrl.model.pages"
>
<a
href=
"
apps/{{ctrl.app
Id}}/page/{{page.slug}}"
class=
"external-link"
>
{{page.name}}
</a>
<a
href=
"
plugins/{{ctrl.plugin
Id}}/page/{{page.slug}}"
class=
"external-link"
>
{{page.name}}
</a>
</li>
</li>
</ul>
</ul>
</section>
</section>
...
...
public/app/features/plugins/partials/page.html
View file @
fc8146b5
<navbar
icon=
"icon-gf icon-gf-apps"
title=
"{{ctrl.appModel.name}}"
title-url=
"apps/{{ctrl.
app
Id}}/edit"
>
<navbar
icon=
"icon-gf icon-gf-apps"
title=
"{{ctrl.appModel.name}}"
title-url=
"apps/{{ctrl.
plugin
Id}}/edit"
>
</navbar>
</navbar>
<div
class=
"page-container"
>
<div
class=
"page-container"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment