Sha256: b103eee6960ff96c269305864018f561e5695839d48a753c65897d2c94b38ff4

Contents?: true

Size: 682 Bytes

Versions: 4

Compression:

Stored size: 682 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 + ' Ago' : 'Never' %></dd>
  <dt>Min. Refresh Interval</dt>
  <dd><%= distance_of_time_in_words(content.config['interval'].to_i) %></dd>
</dl>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
concerto_weather-0.1.0 app/views/contents/weather/_render_default.html.erb
concerto_weather-0.0.9 app/views/contents/weather/_render_default.html.erb
concerto_weather-0.0.8 app/views/contents/weather/_render_default.html.erb
concerto_weather-0.0.7 app/views/contents/weather/_render_default.html.erb