application.html.haml 1.4 KB
Newer Older
G
gitlabhq 已提交
1 2 3 4 5
!!!
%html
  %head
    %title
      GitLab #{" - #{@project.name}" if @project && !@project.new_record?}
6 7 8 9
    -#= stylesheet_link_tag 'blueprint/screen', :media => "screen, projection"
    -#= stylesheet_link_tag 'blueprint/print', :media => "print"
    -#= stylesheet_link_tag 'blueprint/plugins/buttons/screen', :media => "screen, projection"
    -#= stylesheet_link_tag 'blueprint/plugins/link-icons/screen', :media => "screen, projection"
G
gitlabhq 已提交
10 11 12 13 14 15 16 17
    = stylesheet_link_tag    "application"
    = javascript_include_tag "application"
    = csrf_meta_tags
    %link{:href => "/assets/favicon.png", :rel => "icon", :type => "image/png"}/
    = javascript_tag do
      REQ_URI = "#{request.env["REQUEST_URI"]}";
      REQ_REFFER = "#{request.env["HTTP_REFERER"]}";
  %body#thebody
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
    #container
      = render :partial => "layouts/flash"

      - if user_signed_in?
        = render :partial => "layouts/head_panel"
        = render :partial => "layouts/page_title"
        - if @project && !@project.new_record?
          .top_bar.container= render :partial => "projects/top_menu" 
        - if ["keys", "profile"].include?(controller.controller_name)
          .top_bar.container= render :partial => "profile/top_menu"
        - if admin_namespace?
          .top_bar.container= render :partial => "admin/top_menu"
      %div{ :id => "main", :role => "main", :class => "container_3" }
        #content-container
          = yield