Make WeatherData use basename for alt text of icons, rather than full URL.
Also change the if/if/if linear-search lookup that it was using to a hash.
This commit is contained in:
parent
3bf49188e9
commit
b196473eaf
3 changed files with 81 additions and 29 deletions
41
docs/upgrades/templates-7.0.8/weather_data.tmpl
Normal file
41
docs/upgrades/templates-7.0.8/weather_data.tmpl
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#WeatherDataTmpl0000001
|
||||
|
||||
<a name="id<tmpl_var assetId>"></a>
|
||||
|
||||
<tmpl_if session.var.adminOn>
|
||||
<p><tmpl_var controls></p>
|
||||
</tmpl_if>
|
||||
|
||||
<tmpl_if displayTitle>
|
||||
<h2><tmpl_var title></h2>
|
||||
</tmpl_if>
|
||||
|
||||
<tmpl_if description>
|
||||
<tmpl_var description><p></p>
|
||||
</tmpl_if>
|
||||
|
||||
<tmpl_loop ourLocations.loop>
|
||||
<table border="0" width="100%">
|
||||
<tr>
|
||||
<td rowspan="3" style="width:55px;"><img src="<tmpl_var iconUrl>" alt="<tmpl_var iconAlt>" /></td>
|
||||
<td style="background-color:#E0E0E0;">
|
||||
<div class="weatherTitle">
|
||||
<div style="float:left;"> <b><tmpl_var cityState></b></div>
|
||||
|
||||
<div style="float:right;margin-right:1px;margin-top:2px;vertical-align:middle;">
|
||||
<a href="#" style="color:gray;font-weight:bold;">X</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<tmpl_var sky><br /><tmpl_var tempF>°F<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</tmpl_loop>
|
||||
Loading…
Add table
Add a link
Reference in a new issue