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
64184551
Commit
64184551
authored
Feb 29, 2016
by
Anthony Woods
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace 'app' with 'plugins' where needed.
parent
6fd0d5e2
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 @
64184551
...
...
@@ -5,14 +5,13 @@ import _ from 'lodash';
export
class
AppPageCtrl
{
page
:
any
;
app
Id
:
any
;
plugin
Id
:
any
;
appModel
:
any
;
/** @ngInject */
constructor
(
private
backendSrv
,
private
$routeParams
:
any
,
private
$rootScope
)
{
this
.
appId
=
$routeParams
.
appId
;
this
.
backendSrv
.
get
(
`/api/org/apps/
${
this
.
appId
}
/settings`
).
then
(
app
=>
{
this
.
pluginId
=
$routeParams
.
pluginId
;
this
.
backendSrv
.
get
(
`/api/org/plugins/
${
this
.
pluginId
}
/settings`
).
then
(
app
=>
{
this
.
appModel
=
app
;
this
.
page
=
_
.
findWhere
(
app
.
pages
,
{
slug
:
this
.
$routeParams
.
slug
});
if
(
!
this
.
page
)
{
...
...
public/app/features/plugins/partials/edit.html
View file @
64184551
...
...
@@ -72,7 +72,7 @@
{{ds.name}}
</li>
<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>
</ul>
</section>
...
...
public/app/features/plugins/partials/page.html
View file @
64184551
<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>
<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