Skip to content

Commit 16a9632

Browse files
committed
[spalenque] - #13550 * fix community page
1 parent 3185f1b commit 16a9632

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

openstack/code/CommunityPageBis.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ function init()
7171
Requirements::javascript('themes/openstack/javascript/community-bis.js');
7272
}
7373

74+
function getProjectGroups() {
75+
$groups = OpenStackComponentSubCategory::get();
76+
77+
return $groups;
78+
}
79+
7480
function getComponentsByGroup($group) {
7581
return OpenStackComponent::get()->filter('Use', $group);
7682
}

themes/openstack/templates/Layout/Includes/CommunityPageBisCode.ss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</div>
66
<% loop $ProjectGroups %>
77
<div class="col-md-4 col-sm-6 nav-first-group-btn">
8-
<a class="project-group-button btn btn-success" data-toggle="collapse" data-target="#projectgroup_{$Key}">
8+
<a class="project-group-button btn btn-success" data-toggle="collapse" data-target="#projectgroup_{$ID}">
99
$Name
1010
</a>
1111
</div>
@@ -26,7 +26,7 @@
2626
</div>
2727

2828
<% loop $ProjectGroups %>
29-
<div id="projectgroup_{$Key}" class="collapse project-options row">
29+
<div id="projectgroup_{$ID}" class="collapse project-options row">
3030
<div class="line"><div class="triangle"></div></div>
3131
<div class="col-md-12">
3232
<h2>Select the project you would like to contribute to...</h2>
@@ -35,7 +35,7 @@
3535
Once you select the project you are interested in contributing to, you will see an in depth guide to contributing.
3636
The first step is as easy as that! Don't see the project you are interested in? <a href="" class="clear-groups">Select another project group</a>
3737
</div>
38-
<% loop $Top.getComponentsByGroup($Name) %>
38+
<% loop $OpenStackComponents() %>
3939
<div class="col-md-4 col-sm-6">
4040
<a class="project-button btn btn-success" href="https://docs.openstack.org/{$Slug}" >
4141
<div class="col-md-2 col-sm-2 col-xs-2">

0 commit comments

Comments
 (0)