Sha256: 5d51f25711b2a42d98f5822c109f0eda04dce5e44b9c13745505ff7fbc1a1cc3

Contents?: true

Size: 657 Bytes

Versions: 3

Compression:

Stored size: 657 Bytes

Contents

<dl>
  <h1>Weather</h1>
  <dt>City</dt>
  <dd><%= content.config['location_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

3 entries across 3 versions & 1 rubygems

Version Path
concerto_weather-0.3.2 app/views/contents/weather/_render_default.html.erb
concerto_weather-0.3.1 app/views/contents/weather/_render_default.html.erb
concerto_weather-0.3.0 app/views/contents/weather/_render_default.html.erb