-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathahaModal.jade
More file actions
147 lines (140 loc) · 5.76 KB
/
ahaModal.jade
File metadata and controls
147 lines (140 loc) · 5.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
.modal-backdrop
.modal-dialog.modal-aha(
ng-class = "{\
'modal-lg': $root.featureFlags.demoProject,\
'modal-md': !$root.featureFlags.demoProject\
}"
)
header.modal-header
h1.modal-heading(
ng-if = "!AMC.isSettingUpRunnabot()"
) Let’s get running! 👋
h1.modal-heading(
ng-if = "AMC.isSettingUpRunnabot() && !$root.featureFlags.ahaBranchUrlStep"
)
//- During aha 4:
| You did it! 👏
h1.modal-heading(
ng-if = "AMC.isSettingUpRunnabot() && $root.featureFlags.ahaBranchUrlStep"
)
//- During aha 4:
| One more thing…
//- close buttons
svg.grid-content.shrink.iconnables.icons-close(
ng-click = "AMC.actions.close()"
ng-if = "!AMC.isSettingUpRunnabot() && !AMC.isAddingFirstRepo()"
)
use(
xlink:href = "#icons-close"
)
svg.grid-content.shrink.iconnables.icons-close(
ng-click = "AMC.actions.close(true)"
ng-if = "AMC.isSettingUpRunnabot()"
)
use(
xlink:href = "#icons-close"
)
.modal-body
//- if demo feature is off
.grid-block.shrink.vertical.align-center.aha-overview.padding-md.padding-bottom-sm(
ng-if = "!$root.featureFlags.demoProject && !AMC.isSettingUpRunnabot() && !AMC.hasRunnabot()"
)
p.grid-content.shrink.text-center.p.weight-light It takes just 3 steps to get everything set up. 
br
| But don’t worry — we’re here to help!
button.grid-content.shrink.btn.btn-md.green(
data-event-name = "Milestone 2: Started"
ng-click = "AMC.getStarted()"
) Get Started
//- if demo feature is on
.grid-block.shrink.vertical.align-center.noscroll.aha-overview(
ng-if = "$root.featureFlags.demoProject && !AMC.isSettingUpRunnabot() && !AMC.hasRunnabot()"
)
//- step 1
.grid-block.vertical.shrink.align-center.padding-sm.aha-guide.disabled
.grid-block.shrink.aha-meter.aha-meter-100
svg.iconnables
use(
xlink:href = "#icons-octicons-github"
)
svg.iconnables.icons-check
use(
xlink:href = "#icons-check"
)
p.grid-block.align-center.aha-text.p.weight-light Step 1: Choose your Organization
//- step 2
.grid-block.vertical.shrink.align-center.aha-guide(
ng-class = "{\
'active': AMC.isAddingFirstRepo(),\
'disabled': !AMC.isAddingFirstRepo()\
}"
)
.grid-block.shrink.align-center.padding-sm.aha-guide
.grid-block.shrink.aha-meter(
ng-class = "AMC.getClassForSubstep()"
)
svg.iconnables
use(
xlink:href = "#icons-octicons-repo"
)
svg.iconnables.icons-check(
ng-if = "AMC.getFurthestSubstep(AMC.steps.ADD_FIRST_REPO) === 'success' || AMC.getCurrentStep() > AMC.steps.ADD_FIRST_REPO"
)
use(
xlink:href = "#icons-check"
)
p.grid-block.align-center.aha-text.p.weight-light Step 2: Configure your Application
ul.grid-block.shrink.align-center.aha-overview.list-fork.padding-bottom-sm(
ng-class = "{\
'grid-2': AMC.accountHasRepos,\
'grid-3': !AMC.accountHasRepos\
}"
ng-if = "$root.featureFlags.demoProject && !$root.isLoading.fetchAccountRepos && AMC.isAddingFirstRepo()"
ng-include = "'setupDemoGuideView'"
)
.spinner-wrapper.spinner-md.spinner-gray.padding-lg.padding-top-md(
ng-if = "$root.isLoading.fetchAccountRepos && AMC.isAddingFirstRepo()"
ng-include = "'spinner'"
)
//- step 3
.grid-block.vertical.shrink.align-center.aha-guide(
ng-class = "{'disabled': AMC.getCurrentStep() !== AMC.steps.ADD_FIRST_BRANCH, 'active': AMC.getCurrentStep() === AMC.steps.ADD_FIRST_BRANCH}"
)
.grid-block.shrink.align-center.padding-sm.aha-guide
.grid-block.shrink.aha-meter(
ng-class = "{\
'aha-meter-33': AMC.isAddingFirstBranch() && AMC.getFurthestSubstep(AMC.steps.ADD_FIRST_BRANCH) === 'addBranch',\
'aha-meter-66': AMC.isAddingFirstBranch() && AMC.getFurthestSubstep(AMC.steps.ADD_FIRST_BRANCH) === 'dockLoading',\
'aha-meter-100': AMC.getCurrentStep() > AMC.steps.ADD_FIRST_BRANCH\
}"
)
svg.iconnables
use(
xlink:href = "#icons-octicons-branch"
)
svg.iconnables.icons-check(
ng-if = "AMC.getCurrentStep() > AMC.steps.ADD_FIRST_BRANCH"
)
use(
xlink:href = "#icons-check"
)
p.grid-block.align-center.aha-text.p.weight-light Step 3: Add a Branch
figure.grid-block.vertical.shrink.align-center.aha-overview.padding-bottom-md.figure(
ng-if = "AMC.getCurrentStep() === AMC.steps.ADD_FIRST_BRANCH"
)
img.img(
src="/build/images/add-branches.svg"
)
a.link.margin-top-sm(
href = "https://support.runnable.com/hc/en-us/articles/214221203-Adding-Your-Branches"
target = "_blank"
) Learn how to add branches.
.grid-block.vertical.align-center.form-github.padding-md(
github-integration
ng-if = "AMC.isSettingUpRunnabot() || AMC.hasRunnabot()"
)
.grid-block.shrink.justify-center.margin-bottom-xl.welcome-footer(
ng-if = "AMC.isAddingFirstRepo()"
grace-period-footer
close = "AMC.actions.forceClose"
)