diff --git a/pkg/api/api.go b/pkg/api/api.go
index b41100e80ed..a0e136ffd8c 100644
--- a/pkg/api/api.go
+++ b/pkg/api/api.go
@@ -22,6 +22,7 @@ func Register(r *macaron.Macaron) {
r.Post("/login", bind(dtos.LoginCommand{}), wrap(LoginPost))
r.Get("/login/:name", OAuthLogin)
r.Get("/login", LoginView)
+ r.Get("/signup/invited", Index)
// authed views
r.Get("/profile/", reqSignedIn, Index)
@@ -39,6 +40,7 @@ func Register(r *macaron.Macaron) {
r.Get("/dashboard/*", reqSignedIn, Index)
// sign up
+ r.Get("/signup", Index)
r.Post("/api/user/signup", bind(m.CreateUserCommand{}), wrap(SignUp))
// reset password
diff --git a/public/app/controllers/all.js b/public/app/controllers/all.js
index 99b9a496484..500feea3516 100644
--- a/public/app/controllers/all.js
+++ b/public/app/controllers/all.js
@@ -6,6 +6,7 @@ define([
'./inspectCtrl',
'./jsonEditorCtrl',
'./loginCtrl',
+ './invitedCtrl',
'./resetPasswordCtrl',
'./sidemenuCtrl',
'./errorCtrl',
diff --git a/public/app/controllers/invitedCtrl.js b/public/app/controllers/invitedCtrl.js
new file mode 100644
index 00000000000..7fe7dde7054
--- /dev/null
+++ b/public/app/controllers/invitedCtrl.js
@@ -0,0 +1,19 @@
+define([
+ 'angular',
+],
+function (angular) {
+ 'use strict';
+
+ var module = angular.module('grafana.controllers');
+
+ module.controller('InvitedCtrl', function($scope, contextSrv) {
+
+ contextSrv.sidemenu = false;
+
+ $scope.init = function() {
+ };
+
+ $scope.init();
+
+ });
+});
diff --git a/public/app/partials/login.html b/public/app/partials/login.html
index a5894866d5a..f311c929b66 100644
--- a/public/app/partials/login.html
+++ b/public/app/partials/login.html
@@ -1,4 +1,6 @@
+
+
diff --git a/public/app/partials/signup_invited.html b/public/app/partials/signup_invited.html
new file mode 100644
index 00000000000..9c5a3ef571f
--- /dev/null
+++ b/public/app/partials/signup_invited.html
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/app/routes/all.js b/public/app/routes/all.js
index 026eccc1d45..a8018188a3d 100644
--- a/public/app/routes/all.js
+++ b/public/app/routes/all.js
@@ -97,6 +97,10 @@ define([
templateUrl: 'app/partials/login.html',
controller : 'LoginCtrl',
})
+ .when('/signup/invited', {
+ templateUrl: 'app/partials/signup_invited.html',
+ controller : 'InvitedCtrl',
+ })
.when('/user/password/send-reset-email', {
templateUrl: 'app/partials/reset_password.html',
controller : 'ResetPasswordCtrl',
diff --git a/public/css/less/grafana.less b/public/css/less/grafana.less
index b26858057ff..40f2c72d974 100644
--- a/public/css/less/grafana.less
+++ b/public/css/less/grafana.less
@@ -365,3 +365,19 @@
color: @orange;
}
+.signup-page-container {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ height: 100%;
+ width: 100%;
+ background-image: url(/img/background_tease.jpg);
+
+ .signup-logo-container {
+ width: 150px;
+ margin: 0 auto;
+ padding: 80px 0;
+ }
+}
diff --git a/public/css/less/login.less b/public/css/less/login.less
index 7fa677c6a78..ac3ab539e47 100644
--- a/public/css/less/login.less
+++ b/public/css/less/login.less
@@ -93,4 +93,15 @@
}
}
-
+.login-page-background {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ height: 100%;
+ width: 100%;
+ background-image: url(/img/background_tease.jpg);
+ opacity: 0.15;
+ z-index: -1;
+}
diff --git a/public/img/background_tease.jpg b/public/img/background_tease.jpg
new file mode 100644
index 00000000000..043ad7f8976
Binary files /dev/null and b/public/img/background_tease.jpg differ