Permalink
Browse files

moving weather condition to title tag

  • Loading branch information...
flecox committed Nov 12, 2012
1 parent 5dfbf99 commit b50c83be2589cb40ce90793d374883fc1aa954ba
Showing with 8 additions and 5 deletions.
  1. +1 −1 docs/HISTORY.txt
  2. +7 −4 src/collective/weather/browser/templates/current_weather.pt
View
@@ -6,7 +6,7 @@ Because you have to know where your towel is.
1.0a3 (unreleased)
^^^^^^^^^^^^^^^^^^
-- Nothing changed yet.
+- Weather conditions moved to title tag. [flecox]
1.0a2 (2012-09-14)
@@ -2,10 +2,13 @@
tal:omit-tag="">
<div tal:condition="view/weather_info">
<tal:block tal:define="current_weather python:view.weather_info['weather']">
- <img class="weather-icon" tal:attributes="src python:current_weather['icon']"/>
- <span class="weather-temp" tal:content="python:current_weather['temp']" />
- <span class="condition" tal:content="python:current_weather['conditions']"
- i18n:translate=""/>
+ <img class="weather-icon" tal:attributes="src python:current_weather['icon'];
+ title python:current_weather['conditions'];
+ alt python:current_weather['conditions']"
+ i18n:attributes="alt; title"/>
+ <span class="weather-temp" tal:content="python:current_weather['temp']"
+ tal:attributes="title python:current_weather['conditions'];"
+ i18n:attributes="title" />
</tal:block>
</div>

0 comments on commit b50c83b

Please sign in to comment.