Sha256: cd5fefd97bdc05f3d11eb80aa30c1e103cba5da915fc93dab411822958238af0

Contents?: true

Size: 795 Bytes

Versions: 1

Compression:

Stored size: 795 Bytes

Contents

require 'erector'

class Dvl::Components::Footer < Erector::Widget
  needs :application_name

  def content
    footer.footer {
      div.footer_inner {
        span {
          if @application_name
            text @application_name
            rawtext t('dvl_core.footer.about')
          else
            rawtext t('dvl_core.footer.about_no_app')
          end
        }

        ul {
          li { a t('dvl_core.footer.status'), href: 'http://status.dobt.co', target: '_blank' }
          li { a t('dvl_core.footer.legal'), href: 'https://dashboard.dobt.co/terms', target: '_blank' }
          li { a t('dvl_core.footer.help'), href: 'http://help.dobt.co', target: '_blank' }
          li { a t('dvl_core.footer.contact'), href: 'mailto:support@dobt.co' }
        }
      }
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dvl-core-0.1.0 lib/dvl/components/footer.rb