aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-07-08 15:14:13 +0100
committerStruan Donald <struan@exo.org.uk>2013-07-08 15:14:13 +0100
commit68917e9f5e258762c356c5e03c48348d79fd286c (patch)
tree216338662ee4f0a9f057b8ec82a1eb54ec949050
parent19907d2a318277bf9bd4d8998f836508886f9f9d (diff)
check that we have the app IDs configure before displaying the rate this app links
-rw-r--r--www/templates/en/sent.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/templates/en/sent.html b/www/templates/en/sent.html
index b4f20b3..8a94fef 100644
--- a/www/templates/en/sent.html
+++ b/www/templates/en/sent.html
@@ -16,9 +16,9 @@
<p><a onclick="FMS.openExternal(event); return false;" href="<%= site_url %>">View it on the site</a></p>
<% } %>
- <% if ( device.platform == 'iOS' ) { %>
+ <% if ( device.platform == 'iOS' && CONFIG.APP_ID ) { %>
<p><a data-role="button" href="itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=<% print( CONFIG.APP_ID ) %>&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software">Please rate this app</a></p>
- <% } else if ( device.platform == 'Android' ) { %>
+ <% } else if ( device.platform == 'Android' && CONFIG.PLAY_ID ) { %>
<p><a id="rate_app" data-role="button" href="https://play.google.com/store/apps/details?id=<% print( CONFIG.PLAY_ID ) %>">Please rate this app</a></p>
<% } %>
</div>