Skip to content

Commit

Permalink
moving weather condition to title tag
Browse files Browse the repository at this point in the history
  • Loading branch information
flecox committed Nov 12, 2012
1 parent 5dfbf99 commit b50c83b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/HISTORY.txt
Expand Up @@ -6,7 +6,7 @@ Because you have to know where your towel is.
1.0a3 (unreleased) 1.0a3 (unreleased)
^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^


- Nothing changed yet. - Weather conditions moved to title tag. [flecox]




1.0a2 (2012-09-14) 1.0a2 (2012-09-14)
Expand Down
11 changes: 7 additions & 4 deletions src/collective/weather/browser/templates/current_weather.pt
Expand Up @@ -2,10 +2,13 @@
tal:omit-tag=""> tal:omit-tag="">
<div tal:condition="view/weather_info"> <div tal:condition="view/weather_info">
<tal:block tal:define="current_weather python:view.weather_info['weather']"> <tal:block tal:define="current_weather python:view.weather_info['weather']">
<img class="weather-icon" tal:attributes="src python:current_weather['icon']"/> <img class="weather-icon" tal:attributes="src python:current_weather['icon'];
<span class="weather-temp" tal:content="python:current_weather['temp']" /> title python:current_weather['conditions'];
<span class="condition" tal:content="python:current_weather['conditions']" alt python:current_weather['conditions']"
i18n:translate=""/> 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> </tal:block>
</div> </div>


Expand Down

0 comments on commit b50c83b

Please sign in to comment.