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
6cc1502c
Commit
6cc1502c
authored
Jan 14, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed register routes/ctrl to signup
parent
9f4ea730
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
src/app/controllers/all.js
+1
-1
src/app/controllers/signUpCtrl.js
+2
-2
src/app/partials/login.html
+1
-1
src/app/routes/backend/all.js
+2
-2
No files found.
src/app/controllers/all.js
View file @
6cc1502c
...
...
@@ -7,6 +7,6 @@ define([
'./inspectCtrl'
,
'./jsonEditorCtrl'
,
'./loginCtrl'
,
'./
register
Ctrl'
,
'./
signUp
Ctrl'
,
'./errorCtrl'
,
],
function
()
{});
src/app/controllers/
register
Ctrl.js
→
src/app/controllers/
signUp
Ctrl.js
View file @
6cc1502c
...
...
@@ -6,7 +6,7 @@ function (angular) {
var
module
=
angular
.
module
(
'grafana.routes'
);
module
.
controller
(
'
Register
Ctrl'
,
function
(
$scope
,
backendSrv
,
$location
)
{
module
.
controller
(
'
SignUp
Ctrl'
,
function
(
$scope
,
backendSrv
,
$location
)
{
$scope
.
loginModel
=
{};
$scope
.
grafana
.
sidemenu
=
false
;
...
...
@@ -19,7 +19,7 @@ function (angular) {
return
;
}
backendSrv
.
post
(
'/api/account'
,
$scope
.
loginModel
).
then
(
function
()
{
backendSrv
.
post
(
'/api/account
/signup
'
,
$scope
.
loginModel
).
then
(
function
()
{
$location
.
path
(
'/login'
);
});
};
...
...
src/app/partials/login.html
View file @
6cc1502c
...
...
@@ -38,7 +38,7 @@
</div>
<div
class=
"register-box text-center"
>
<a
href=
"
register
"
class=
"btn btn-info"
>
Sign up now!
</a>
<a
href=
"
signup
"
class=
"btn btn-info"
>
Sign up now!
</a>
</div>
</div>
...
...
src/app/routes/backend/all.js
View file @
6cc1502c
...
...
@@ -46,9 +46,9 @@ define([
templateUrl
:
'app/partials/login.html'
,
controller
:
'LoginCtrl'
,
})
.
when
(
'/
register
'
,
{
.
when
(
'/
signup
'
,
{
templateUrl
:
'app/partials/register.html'
,
controller
:
'
Register
Ctrl'
,
controller
:
'
SignUp
Ctrl'
,
})
.
when
(
'/dashboard/solo/:id/'
,
{
templateUrl
:
'app/partials/solo-panel.html'
,
...
...
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