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
70cb8400
Commit
70cb8400
authored
Jun 06, 2016
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(alerting): changed name of root Alerts nav item and page from Alerts to Alerting
parent
f36a44c4
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
18 additions
and
23 deletions
+18
-23
pkg/api/api.go
+1
-2
pkg/api/index.go
+2
-2
pkg/services/sqlstore/migrations/alert_mig.go
+0
-1
public/app/core/routes/routes.ts
+8
-11
public/app/features/alerting/alert_def.ts
+0
-0
public/app/features/alerting/alert_log_ctrl.ts
+0
-0
public/app/features/alerting/alerts_ctrl.ts
+2
-2
public/app/features/alerting/all.ts
+0
-0
public/app/features/alerting/partials/alert_list.html
+4
-4
public/app/features/alerting/partials/alert_log.html
+1
-1
No files found.
pkg/api/api.go
View file @
70cb8400
...
...
@@ -58,8 +58,7 @@ func Register(r *macaron.Macaron) {
r
.
Get
(
"/playlists/"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/playlists/*"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/alerts/"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/alerts/*"
,
reqSignedIn
,
Index
)
r
.
Get
(
"/alerting/"
,
reqSignedIn
,
Index
)
// sign up
r
.
Get
(
"/signup"
,
Index
)
...
...
pkg/api/index.go
View file @
70cb8400
...
...
@@ -81,9 +81,9 @@ func setIndexViewData(c *middleware.Context) (*dtos.IndexViewData, error) {
if
setting
.
AlertingEnabled
&&
(
c
.
OrgRole
==
m
.
ROLE_ADMIN
||
c
.
OrgRole
==
m
.
ROLE_EDITOR
)
{
data
.
MainNavLinks
=
append
(
data
.
MainNavLinks
,
&
dtos
.
NavLink
{
Text
:
"Alert
s
"
,
Text
:
"Alert
ing
"
,
Icon
:
"icon-gf icon-gf-monitoring"
,
Url
:
setting
.
AppSubUrl
+
"/alert
s
"
,
Url
:
setting
.
AppSubUrl
+
"/alert
ing
"
,
})
}
...
...
pkg/services/sqlstore/migrations/alert_mig.go
View file @
70cb8400
...
...
@@ -72,5 +72,4 @@ func addAlertMigrations(mg *Migrator) {
}
mg
.
AddMigration
(
"create alert_heartbeat table v1"
,
NewAddTableMigration
(
alert_heartbeat
))
}
public/app/core/routes/routes.ts
View file @
70cb8400
...
...
@@ -13,7 +13,7 @@ function setupAngularRoutes($routeProvider, $locationProvider) {
var
loadOrgBundle
=
new
BundleLoader
(
'app/features/org/all'
);
var
loadPluginsBundle
=
new
BundleLoader
(
'app/features/plugins/all'
);
var
loadAdminBundle
=
new
BundleLoader
(
'app/features/admin/admin'
);
var
loadAlert
sBundle
=
new
BundleLoader
(
'app/features/alerts
/all'
);
var
loadAlert
ingBundle
=
new
BundleLoader
(
'app/features/alerting
/all'
);
$routeProvider
.
when
(
'/'
,
{
...
...
@@ -190,25 +190,22 @@ function setupAngularRoutes($routeProvider, $locationProvider) {
controllerAs
:
'ctrl'
,
resolve
:
loadPluginsBundle
,
})
.
when
(
'/global-alerts'
,
{
templateUrl
:
'public/app/features/dashboard/partials/globalAlerts.html'
,
})
.
when
(
'/styleguide/:page?'
,
{
controller
:
'StyleGuideCtrl'
,
controllerAs
:
'ctrl'
,
templateUrl
:
'public/app/features/styleguide/styleguide.html'
,
})
.
when
(
'/alert
s
'
,
{
templateUrl
:
'public/app/features/alert
s/partials/alerts_page
.html'
,
controller
:
'Alert
Page
Ctrl'
,
.
when
(
'/alert
ing
'
,
{
templateUrl
:
'public/app/features/alert
ing/partials/alert_list
.html'
,
controller
:
'Alert
List
Ctrl'
,
controllerAs
:
'ctrl'
,
resolve
:
loadAlert
s
Bundle
,
resolve
:
loadAlert
ing
Bundle
,
})
.
when
(
'/alert
s
/:alertId/states'
,
{
templateUrl
:
'public/app/features/alert
s
/partials/alert_log.html'
,
.
when
(
'/alert
ing
/:alertId/states'
,
{
templateUrl
:
'public/app/features/alert
ing
/partials/alert_log.html'
,
controller
:
'AlertLogCtrl'
,
controllerAs
:
'ctrl'
,
resolve
:
loadAlert
s
Bundle
,
resolve
:
loadAlert
ing
Bundle
,
})
.
otherwise
({
templateUrl
:
'public/app/partials/error.html'
,
...
...
public/app/features/alert
s
/alert_def.ts
→
public/app/features/alert
ing
/alert_def.ts
View file @
70cb8400
File moved
public/app/features/alert
s
/alert_log_ctrl.ts
→
public/app/features/alert
ing
/alert_log_ctrl.ts
View file @
70cb8400
File moved
public/app/features/alert
s
/alerts_ctrl.ts
→
public/app/features/alert
ing
/alerts_ctrl.ts
View file @
70cb8400
...
...
@@ -6,7 +6,7 @@ import coreModule from '../../core/core_module';
import
config
from
'app/core/config'
;
import
alertDef
from
'./alert_def'
;
export
class
Alert
Page
Ctrl
{
export
class
Alert
List
Ctrl
{
alerts
:
any
;
filter
=
{
...
...
@@ -58,5 +58,5 @@ export class AlertPageCtrl {
}
}
coreModule
.
controller
(
'Alert
PageCtrl'
,
AlertPage
Ctrl
);
coreModule
.
controller
(
'Alert
ListCtrl'
,
AlertList
Ctrl
);
public/app/features/alert
s
/all.ts
→
public/app/features/alert
ing
/all.ts
View file @
70cb8400
File moved
public/app/features/alert
s/partials/alerts_page
.html
→
public/app/features/alert
ing/partials/alert_list
.html
View file @
70cb8400
<navbar
icon=
"fa fa-fw fa-list"
title=
"Alert
s"
title-url=
"alerts
"
>
<navbar
icon=
"fa fa-fw fa-list"
title=
"Alert
ing"
title-url=
"alerting
"
>
</navbar>
<div
class=
"page-container"
>
<div
class=
"page-header"
>
<h1>
Alert
s
</h1>
<h1>
Alert
ing
</h1>
<div
class=
"gf-form-inline pull-right"
>
<gf-form-switch
class=
"gf-form"
label=
"Ok"
label-class=
"width-5"
checked=
"ctrl.filter.ok"
on-change=
"ctrl.updateFilter()"
></gf-form-switch>
<gf-form-switch
class=
"gf-form"
label=
"Warn"
label-class=
"width-5"
checked=
"ctrl.filter.warn"
on-change=
"ctrl.updateFilter()"
></gf-form-switch>
...
...
@@ -20,12 +20,12 @@
</thead>
<tr
ng-repeat=
"alert in ctrl.alerts"
>
<td>
<a
href=
"alert
s
/{{alert.id}}/states"
>
<a
href=
"alert
ing
/{{alert.id}}/states"
>
{{alert.title}}
</a>
</td>
<td
class=
"text-center"
>
<a
href=
"alert
s
/{{alert.id}}/states"
>
<a
href=
"alert
ing
/{{alert.id}}/states"
>
<i
class=
"icon-gf {{alert.iconCss}}"
></i>
</a>
</td>
...
...
public/app/features/alert
s
/partials/alert_log.html
→
public/app/features/alert
ing
/partials/alert_log.html
View file @
70cb8400
<navbar
icon=
"fa fa-fw fa-list"
title=
"Alerts"
title-url=
"alert
s
"
>
<navbar
icon=
"fa fa-fw fa-list"
title=
"Alerts"
title-url=
"alert
ing
"
>
</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