Sha256: 4cff8e9ddcd552f03b1973ad5f1de70a53ffa651f42e99194a1f985ee494677c

Contents?: true

Size: 658 Bytes

Versions: 3

Compression:

Stored size: 658 Bytes

Contents

<dl>
  <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

3 entries across 3 versions & 1 rubygems

Version Path
concerto_weather-0.0.4 app/views/contents/weather/_render_default.html.erb
concerto_weather-0.0.3 app/views/contents/weather/_render_default.html.erb
concerto_weather-0.0.2 app/views/contents/weather/_render_default.html.erb