Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Conditionalize showing reference doc/api doc links
Browse files Browse the repository at this point in the history
If the reference doc URL of the API doc URL is empty, don't display a hyperlink.
  • Loading branch information
gregturn committed Aug 4, 2015
1 parent 7d63246 commit 086e2b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions _includes/widget_templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
<div class="spring-icon {@= release.statusIconClass() @}"></div>
</div>
<div class="item--right-column">
<a href='{@= release.refDocUrl @}' class="docs-link reference-link">Reference</a>
<a href='{@= release.apiDocUrl @}' class="docs-link api-link">API</a>
{@ if (release.refDocUrl !== '') { @}
<a href='{@= release.refDocUrl @}' class="docs-link reference-link">Reference</a>
{@ }; @}
{@ if (release.apiDocUrl !== '') { @}
<a href='{@= release.apiDocUrl @}' class="docs-link api-link">API</a>
{@ }; @}
</div>
</div>
{@ }); @}
Expand Down

0 comments on commit 086e2b3

Please sign in to comment.