Skip to content
Snippets Groups Projects
Commit cf5e2b01 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

purge old angular code for rendering homepage modal which has been replaced now.

parent 9e3ac996
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,6 @@ const reducer = combineReducers(reducers);
var HomeControllers = angular.module('metabase.home.controllers', [
'metabase.home.directives',
'metabase.metabase.services'
]);
......
'use strict';
var HomeDirectives = angular.module('metabase.home.directives', []);
HomeDirectives.directive('mbNewUserOnboarding', ['$modal',
function($modal) {
function link(scope, element, attrs) {
function openModal() {
$modal.open({
templateUrl: '/app/home/partials/modal_user_onboarding.html',
controller: ['$scope', '$modalInstance',
function($scope, $modalInstance) {
$scope.firstStep = true;
$scope.user = scope.user;
$scope.next = function() {
$scope.firstStep = false;
};
$scope.close = function() {
$modalInstance.dismiss('cancel');
};
}
]
});
}
// always start with the modal open
openModal();
}
return {
restrict: 'E',
link: link
};
}
]);
<div>
<div class="bordered rounded shadowed" ng-show="firstStep">
<div class="pl4 pr4 pt4 pb1 border-bottom">
<h2>{{user.first_name}}, welcome to Metabase!</h2>
<h2>Analytics you can use by yourself.</h2>
<p>Metabase lets you find answers to your questions from data your company already has.</p>
<p>It’s easy to use, because it’s designed so you don’t need any analytics knowledge to get started.</p>
</div>
<div class="px4 py2 text-grey-2 flex align-center">
STEP 1 of 2
<button class="Button Button--primary flex-align-right" ng-click="next()">Continue</button>
</div>
</div>
<div class="bordered rounded shadowed" ng-show="!firstStep">
<div class="pl4 pr4 pt4 pb1 border-bottom">
<h2>Just 3 things worth knowing</h2>
<p class="clearfix pt1"><img class="float-left mr2" width="40" height="40" src="/app/home/partials/onboarding_illustration_tables.png">All of your data is organized in Tables. Think of them in terms of Excel spreadsheets with columns and rows.</p>
<p class="clearfix"><img class="float-left mr2" width="40" height="40" src="/app/home/partials/onboarding_illustration_questions.png">To get answers, you Ask Questions by picking a table and a few other parameters. You can visualize the answer in many ways, including cool charts.</p>
<p class="clearfix"><img class="float-left mr2" width="40" height="40" src="/app/home/partials/onboarding_illustration_dashboards.png">You (and anyone on your team) can save answers in Dashboards, so you can check them often. It's a great way to quickly see a snapshot of your business.</p>
</div>
<div class="px4 py2 text-grey-2 flex align-center">
STEP 2 of 2
<button class="Button Button--primary flex-align-right" ng-click="close()">Continue</button>
</div>
</div>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment