mishina2228/git_stats

View on GitHub
templates/layout.haml

Summary

Maintainability
Test Coverage
!!! XML
!!!
%html
  %head
    %title NovaGitStats - #{repo.project_name}
    %meta{charset: 'utf-8'}
    %style
      :plain
        body { padding-top: 60px; }
    %link{rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css',
          integrity: 'sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC', crossorigin: 'anonymous'}
    %link{rel: 'stylesheet', href: asset_path('menu.css', active_page), type: 'text/css'}
    %script{src: 'https://code.jquery.com/jquery-3.6.0.min.js',
            integrity: 'sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=',
            crossorigin: 'anonymous'}
    %script{src: asset_path('highstock.js', active_page), type: 'text/javascript'}
    %script{src: asset_path('exporting.js', active_page), type: 'text/javascript'}
    %script{src: asset_path('export-data.js', active_page), type: 'text/javascript'}
  %body
    %nav.navbar.navbar-light.fixed-top.navbar-expand-md.bg-light
      .container
        %a.navbar-brand{href: link_to('index.html', active_page)} NovaGitStats - #{repo.project_name}
        %button.menu-icon.navbar-toggler.collapsed{'data-bs-toggle' => 'collapse', 'data-bs-target' => '#navbar-menu', 'aria-expanded' => false}
          %span.navbar-toggler-icon
        .navbar-collapse.collapse#navbar-menu
          %ul.nav.navbar-nav
            - links.each do |name, href|
              %li.nav-item{class: active_page.start_with?(name.to_s.underscore) ? 'active' : ''}
                %a.nav-link{href: link_to(href, active_page)}= name.t
    .container
      != yield
    %script{src: 'https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js',
            integrity: 'sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p', crossorigin: 'anonymous'}
    %script{src: 'https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js',
            integrity: 'sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF',
            crossorigin: 'anonymous'}