From 086e2b3d2bc6212657675bc936166892461825be Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Tue, 4 Aug 2015 08:12:53 -0700 Subject: [PATCH] Conditionalize showing reference doc/api doc links If the reference doc URL of the API doc URL is empty, don't display a hyperlink. --- _includes/widget_templates.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/_includes/widget_templates.html b/_includes/widget_templates.html index 4e609c6ff..b06f96e9a 100644 --- a/_includes/widget_templates.html +++ b/_includes/widget_templates.html @@ -18,8 +18,12 @@
- Reference - API + {@ if (release.refDocUrl !== '') { @} + Reference + {@ }; @} + {@ if (release.apiDocUrl !== '') { @} + API + {@ }; @}
{@ }); @}