Sha256: f4bc5e199d3a802adef98fde04b4b376ce59b15cec002a3f39a4a29e7ecb9325
Contents?: true
Size: 677 Bytes
Versions: 2
Compression:
Stored size: 677 Bytes
Contents
<dl> <h1>Weather</h1> <dt>WOEID</dt> <dd><%= content.config['woeid'] %> - <%= content.config['name'] %></dd> <dt>Units</dt> <dd><%= Weather::UNITS[content.config['units']] %></dd> <dt>Last Successful Update</dt> <dd><%= content.config.include?('last_ok_refresh') ? Time.at(content.config['last_ok_refresh']).strftime('%c') : 'Never' %></dd> <dt>Last Attempted Update</dt> <dd><%= content.config.include?('last_refresh_attempt') ? distance_of_time_in_words_to_now(Time.at(content.config['last_refresh_attempt'])).titleize : 'Never' %> Ago</dd> <dt>Min. Refresh Interval</dt> <dd><%= distance_of_time_in_words(content.config['interval'].to_i) %></dd> </dl>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
concerto_weather-0.0.6 | app/views/contents/weather/_render_default.html.erb |
concerto_weather-0.0.5 | app/views/contents/weather/_render_default.html.erb |