Sha256: 59d806c90521006e51a6ba72e78182a86e5bea534d407a734c6d286b5ce4495c

Contents?: true

Size: 944 Bytes

Versions: 3

Compression:

Stored size: 944 Bytes

Contents

ruby:
  # just a footer
  # feel free to modify to your needs
  # several constants and helpers are required

  separator = ' | '
  app = "#{APP.upcase} #{APP_VERSION || VERSION}"
  year = Time.now.year

  if Rails.env.production?
    info_dev = "started at #{STARTED_AT}"
  else
    ruby = "Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
    rails = "Rails #{Rails.version} (#{Rails.env})"
    info_dev = "#{rails} | #{ruby} | #{STARTED_AT}"
  end

  # e.g. http://matique.de/de/privacy-policy before v1.1.0
  # e.g. https://matique.com/home/page?page=gtc
  base = 'http://matique.com/home/page'

footer
 div
   a href='http://matique.de' © #{year} matique UG
   = separator
   = link_to app.html_safe, about_path
 div
   = link_to ts(:terms, :button), "#{base}?page=gtc"
   = separator
   = link_to ts(:privacy, :button), "#{base}?page=privacy_policy"
   = separator
   = link_to ts(:impressum, :button), "#{base}?page=about"
 div = info_dev

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stones-1.2.0 app/views/layouts/_footer.slim
stones-1.1.3 app/views/layouts/_footer.slim
stones-1.1.1 app/views/layouts/_footer.slim