steem-third-party/ganymede

View on GitHub
app/views/layouts/application.html.haml

Summary

Maintainability
Test Coverage
!!!
%html
  %head
    %title Ganymede
    = csrf_meta_tags

    = stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload'
    :javascript
      /*
       * Deals with Electron: jQuery is not defined
       * See: http://stackoverflow.com/questions/32621988/electron-jquery-is-not-defined
       */
      if ( typeof module === 'object' ) {
        window.module = module;
        module = undefined;
      }
    = javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
    :javascript
      if ( window.module ) module = window.module;
    = favicon_link_tag 'ganymede.svg', type: 'image/svg'
    = favicon_link_tag 'ganymede.svg', rel: 'apple-touch-icon', type: 'image/svg'
    = yield :head
  %body
    .card
      .card-header
        = image_tag 'ganymede.svg', width: 24, height: 24
        Ganymede by #{link_to '@inertia', 'https://steemit.com/@inertia'}
        .float-right
          = link_to 'Home', root_url, class: 'btn btn-secondary'
           
          = link_to 'About', 'https://steemit.com/radiator/@inertia/ganymede-a-growing-collection-of-steem-web-tools', class: 'btn btn-secondary'
           
          = link_to image_tag(site_logo, width: 24, height: 24), site_prefix
            
      .card-block
        .container
          .alert-container
            %flash{'flash-message' => 5000, data: {messages: flash.to_json}}
        %hr
        = yield
      .card-footer
        %small.float-right
          %kbd
            = link_to 'http://creativecommons.org/publicdomain/zero/1.0/', style: 'color: white' do
              = image_tag 'https://i.creativecommons.org/p/zero/1.0/80x15.png'
               
              = Time.now.year
    %p
      %small
        = version