Skip to content

Commit 76922c6

Browse files
authored
Merge pull request #2059 from CodeNow/org-list-semantics
fix html for org list
2 parents ee952d4 + 1b87175 commit 76922c6

File tree

3 files changed

+24
-23
lines changed

3 files changed

+24
-23
lines changed

client/assets/styles/scss/deprecated/demo-org-select.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222

2323
.list-item {
2424

25+
&.deprecated:first-child {
26+
border-top-left-radius: $input-border-radius-lg;
27+
border-top-right-radius: $input-border-radius-lg;
28+
}
29+
2530
.icons-github {
2631
height: 30px;
2732
width: 30px;

client/assets/styles/scss/modals/modals-org-select.scss

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
opacity: .5;
1515
}
1616

17-
&:first-child {
18-
border-top-left-radius: $input-border-radius-lg;
19-
border-top-right-radius: $input-border-radius-lg;
20-
}
21-
2217
&:last-child {
2318
border-bottom-left-radius: $input-border-radius-lg;
2419
border-bottom-right-radius: $input-border-radius-lg;
@@ -45,7 +40,7 @@
4540
}
4641
}
4742

48-
.teams-bar {
43+
.teams-header {
4944
background-color: $white;
5045
border-left: 1px solid $gray-lighter;
5146
border-radius: $input-border-radius-lg $input-border-radius-lg 0 0;

client/directives/modals/modalChooseOrganization/orgSelectModalView.jade

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.modal-header(
1+
header.modal-header(
22
ng-if = "!$root.featureFlags.demoOrgSelectUpdate"
33
)
44
h1.modal-heading Welcome Aboard!
@@ -12,32 +12,33 @@
1212
ng-class = "{'deprecated': !$root.featureFlags.demoOrgSelectUpdate}"
1313
ng-if = "!COMC.personalAccountOnly || $root.featureFlags.demoOrgSelectUpdate"
1414
) Select a team to start running its code.
15+
header.grid-block.align-center.text-gray.small.teams-header(
16+
ng-if = "$root.featureFlags.demoOrgSelectUpdate"
17+
)
18+
.spinner-wrapper.spinner-gray.spinner-sm.hidden-xxxs(
19+
ng-if = "$root.isLoading.grantAccess"
20+
ng-include = "'spinner'"
21+
)
22+
| {{ $root.isLoading.grantAccess ? "Listening for teams…" : "Your GitHub Teams" }}
23+
button.btn.btn-xs.gray(
24+
ng-click = "COMC.grantAccess()"
25+
) Add a Team
26+
svg.iconnables.icons-link-external
27+
use(
28+
xlink:href = "#icons-link-external-alt"
29+
)
1530
ol.grid-block.vertical.list(
1631
ng-if = "!COMC.personalAccountOnly"
1732
ng-init = "data.loading = false"
1833
)
19-
.grid-block.align-center.text-gray.small.teams-bar(
20-
ng-if = "$root.featureFlags.demoOrgSelectUpdate"
21-
)
22-
.spinner-wrapper.spinner-gray.spinner-sm.hidden-xxxs(
23-
ng-if = "$root.isLoading.grantAccess"
24-
ng-include = "'spinner'"
25-
)
26-
| {{ $root.isLoading.grantAccess ? "Listening for teams…" : "Your GitHub Teams" }}
27-
button.btn.btn-xs.gray(
28-
ng-click = "COMC.grantAccess()"
29-
) Add a Team
30-
svg.iconnables.icons-link-external
31-
use(
32-
xlink:href = "#icons-link-external-alt"
33-
)
34-
.grid-block.align-center.justify-center.text-gray.text-center.small.teams-empty-state(
34+
li.grid-block.align-center.justify-center.text-gray.text-center.small.teams-empty-state(
3535
ng-if = "COMC.personalAccountOnly || $root.featureFlags.demoNoOrgs"
3636
) Runnable is made for teams, but it looks 
3737
br.hidden-xxxs
3838
| like you haven’t added any yet.
3939
li.grid-block.align-center.list-item.btn.white(
4040
data-event-name = "Org Selected"
41+
ng-class = "{'deprecated': !$root.featureFlags.demoOrgSelectUpdate}"
4142
ng-click = "COMC.actions.selectAccount(org.oauthName())"
4243
ng-if = "!$root.featureFlags.demoNoOrgs"
4344
ng-repeat = "org in COMC.allAccounts.models | orderBy:'attrs.login'"

0 commit comments

Comments
 (0)