_head.html.haml 795 字节
Newer Older
D
Dmitriy Zaporozhets 已提交
1
%head
2
  %meta{charset: "utf-8"}
3
  %meta{content: "GitLab Community Edition", name: "description"}
4

D
Dmitriy Zaporozhets 已提交
5
  %title
6
    = "#{title} | " if defined?(title)
D
Dmitriy Zaporozhets 已提交
7
    GitLab
8

D
Dmitriy Zaporozhets 已提交
9
  = favicon_link_tag 'favicon.ico'
G
George Dewar 已提交
10 11
  = stylesheet_link_tag    "application", :media => "all"
  = stylesheet_link_tag    "print", :media => "print"
D
Dmitriy Zaporozhets 已提交
12 13
  = javascript_include_tag "application"
  = csrf_meta_tags
14
  = include_gon
15
  %meta{name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1'}
16
  %meta{name: 'theme-color', content: '#474D57'}
D
Dmitriy Zaporozhets 已提交
17

18 19
  = yield(:meta_tags)

20
  = render 'layouts/google_analytics' if extra_config.has_key?('google_analytics_id')
S
Sebastian Winkler 已提交
21
  = render 'layouts/piwik' if extra_config.has_key?('piwik_url') && extra_config.has_key?('piwik_site_id')
22
  = render 'layouts/bootlint' if Rails.env.development?