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

Commit

Permalink
Merge pull request #12 from gregturn/gh-6
Browse files Browse the repository at this point in the history
Conditionalize reference doc/api doc links
  • Loading branch information
bclozel committed Aug 18, 2015
2 parents 7d63246 + 086e2b3 commit 8227656
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 8227656

Please sign in to comment.