Skip to content

Commit

Permalink
[spalenque] - #14400 * add space between links
Browse files Browse the repository at this point in the history
  • Loading branch information
santipalenque committed Oct 26, 2018
1 parent 69fca46 commit ba67762
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ private function processComponentsAndCategories()

if (isset($component['links'])) {
foreach ($component['links'] as $linkArray) {
if (!is_array($linkArray)) continue;
foreach ($linkArray as $label => $link) {
$linkObj = OpenStackComponentLink::get()->filter(['Label' => $label, 'URL' => $link])->First();

Expand Down
9 changes: 5 additions & 4 deletions software/templates/Layout/SoftwareHomePage_getComponent.ss
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
<% if $Component.DocsLink().Exists() %>
<p>
<a href="{$Component.DocsLink().URL}" target="_blank">
<i class="fa fa-book" aria-hidden="true"></i>
{$Component.DocsLink().Label}
<%-- do not separate icon from label --%>
<i class="fa fa-book" aria-hidden="true" style="margin-right: 8px"></i><span>{$Component.DocsLink().Label}</span>
</a>
</p>
<% end_if %>
<% if $Component.DownloadLink().Exists() %>
<p>
<a href="{$Component.DownloadLink().URL}" target="_blank">
<i class="fa fa-cloud-download" aria-hidden="true"></i>
{$Component.DownloadLink().Label}
<%-- do not separate icon from label --%>
<i class="fa fa-cloud-download" aria-hidden="true" style="margin-right: 8px"></i><span>{$Component.DownloadLink().Label}</span>
</a>
</p>
<% end_if %>
Expand Down Expand Up @@ -58,6 +58,7 @@
<div class="col-sm-12">
<% loop $Component.Links() %>
<a class="component-link" href="{$URL}">{$Label}</a>
<% if not $Last %><span style="margin-right:10px">|</span><% end_if %>
<% end_loop %>
</div>
</div>
Expand Down

0 comments on commit ba67762

Please sign in to comment.