Sha256: e17390726cc8e256ac00065dd3d1a8932e3ddf5129884c18246512c80bc12c30

Contents?: true

Size: 1.95 KB

Versions: 1

Compression:

Stored size: 1.95 KB

Contents

!!! 5
%html
  %head
    %title= Socket.gethostname.capitalize + ' | ' + body[:title]
    %meta{charset: 'utf-8'}
    %link{rel: 'icon', type: 'image/x-icon', href: '/design/favicon.ico'}
    - css.each do |url|
      %link{rel: 'stylesheet', type: 'text/css', href: url}
    - js.each do |url|
      %script{src: url, defer: 'defer'}
  %body
    %header
      %a{id: 'openmenu', onclick: 'openNavMenu();'}= '☰'
      %h1
        %a{href: '/index.html', title: I18n.t('nav.back.home')}= Socket.gethostname.capitalize
      %nav
        %a{id: 'closemenu', onclick: 'closeNavMenu();'}= '×'
        %ul
          - responders.children_nodes.each do |child_id, child_node|
            %li
              - if child_node.children? # Create a dropdown menu entry
                %a= I18n.t(child_id + '.menu')
                %ul
                  - child_node.children_nodes.each do |child_url, node|
                    %li
                      %a{href: '/' + child_id + '/' + child_url + '/index.html'}
                        = I18n.t(child_id + '.' + child_url + '.menu')
              - else # Create a regular menu entry
                %a{href: '/' + child_id + '/index.html'}= I18n.t(child_id + '.menu')

    - if is_home
      %aside

    %main
      = body[:content]

    %footer
      %p
        = I18n.t('nav.generated.page') + ' ' + I18n.t('nav.generated.on_host') + ' '
        %em= Socket.gethostname
        = ' ' + I18n.t('nav.generated.on_date') + ' ' + Time.now.strftime(I18n.t('date_format'))
        = ' ' + I18n.t('date_time_separator') + Time.now.strftime(I18n.t('time_format'))
        %br
        %a{onclick: 'openModal();'}= I18n.t('nav.about')
      %aside#modal
        %div#modal-content
          %h2= 'Intranet'
          %h3
            = 'core' + '  '
            %em= Intranet::Core::VERSION
          %p
            %a{href: 'https://bitbucket.org/linuxtools/intranet.git', target: '_blank'}= 'https://bitbucket.org/linuxtools/intranet.git'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
intranet-core-1.0.0 lib/intranet/resources/haml/skeleton.haml