File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -385,6 +385,7 @@ private function processComponentsAndCategories()
385385
386386 if (isset ($ component ['links ' ])) {
387387 foreach ($ component ['links ' ] as $ linkArray ) {
388+ if (!is_array ($ linkArray )) continue ;
388389 foreach ($ linkArray as $ label => $ link ) {
389390 $ linkObj = OpenStackComponentLink::get ()->filter (['Label ' => $ label , 'URL ' => $ link ])->First ();
390391
Original file line number Diff line number Diff line change 1818 <% if $Component.DocsLink().Exists() %>
1919 <p>
2020 <a href=" {$Component.DocsLink().URL}" target=" _blank" >
21- <i class= " fa fa-book " aria-hidden= " true " ></i >
22- {$Component.DocsLink().Label}
21+ <%-- do not separate icon from label --% >
22+ <i class= " fa fa-book " aria-hidden= " true " style= " margin-right: 8px " ></i><span> {$Component.DocsLink().Label}</span>
2323 </a>
2424 </p>
2525 <% end_if %>
2626 <% if $Component.DownloadLink().Exists() %>
2727 <p>
2828 <a href=" {$Component.DownloadLink().URL}" target=" _blank" >
29- <i class= " fa fa-cloud-download " aria-hidden= " true " ></i >
30- {$Component.DownloadLink().Label}
29+ <%-- do not separate icon from label --% >
30+ <i class= " fa fa-cloud-download " aria-hidden= " true " style= " margin-right: 8px " ></i><span> {$Component.DownloadLink().Label}</span>
3131 </a>
3232 </p>
3333 <% end_if %>
5858 <div class=" col-sm-12" >
5959 <% loop $Component.Links() %>
6060 <a class=" component-link" href=" {$URL}" >{$Label}</a>
61+ <% if not $Last %><span style=" margin-right:10px" >|</span><% end_if %>
6162 <% end_loop %>
6263 </div>
6364 </div>
You can’t perform that action at this time.
0 commit comments