Sha256: 4cfa1dcf66de461e8e509a5ee6959340e66db1f011153911cb7b06cb945a29f7

Contents?: true

Size: 982 Bytes

Versions: 4

Compression:

Stored size: 982 Bytes

Contents

/ A simple about rounded box

/  Requires locals: { title: 'A Title' }
/  and several predefined constants.

/ Usage:
/  app/controllers/root.rb:
/
/   def about
/      render 'about', locals: { title: 'An Application' }
/   end


ruby:
  app = "#{APP.capitalize} #{APP_VERSION || VERSION}"
  if Rails.env.production?
    ruby = "Ruby #{RUBY_VERSION}"
    rails = "Rails #{Rails.version}"
  else
    ruby = "Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
    rails = "Rails #{Rails.version} (#{Rails.env})"
  end

css:
  div#about {
    height: 70%;
    margin: 1em 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
  }
  div#about div#rounded-box {
    border: 1px solid grey;
    border-radius: 0.3em;
    padding: 5px 8px;
  }

div#about
 div#rounded-box
  - if title
    h1 = title
    hr
  div #{app}
  div #{rails}
  div #{ruby}
  div Started at #{STARTED_AT}
  div Time #{Time.now.strftime(DATE_TIME_FORMAT)}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stones-1.1.1 app/views/root/about.slim
stones-1.1.0 app/views/root/about.slim
stones-1.0.10 app/views/root/about.slim
stones-1.0.9 app/views/root/about.slim