Default H2 text to coreId if coreName not present.

This commit is contained in:
jkaplon 2015-07-13 16:53:34 -04:00
parent 4e36ba07ed
commit 3cdf7ac643

View File

@ -1,7 +1,11 @@
{{!< default}}
{{! Grab 1st coreName value (it will be same value for entire set).}}
<h2>Alerts from Particle Core: {{alerts.0.coreName}} </h2>
{{#if alerts.0.coreName}}
<h2>Alerts from Particle Core: {{alerts.0.coreName}} </h2>
{{else}}
<h2>Alerts from Particle Core: {{alerts.0.coreId}} </h2>
{{/if}}
<table class="table table-striped">
<thead>