_head.html.haml 1.21 KB
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1
%head
2
  %meta{charset: "utf-8"}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
3
  %title
4
    = "#{title} | " if defined?(title)
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
5
6
7
8
9
    GitLab
  = favicon_link_tag 'favicon.ico'
  = stylesheet_link_tag    "application"
  = javascript_include_tag "application"
  = csrf_meta_tags
10
  = include_gon
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
11

12
  = render 'layouts/google_analytics' if extra_config.has_key?('google_analytics_id')
13

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
14
15
16
17
18
19
20
21
22
  -# Atom feed
  - if current_user
    - if controller_name == 'projects' && action_name == 'index'
      = auto_discovery_link_tag :atom, projects_url(:atom, private_token: current_user.private_token), title: "Dashboard feed"
    - if @project && !@project.new_record?
      - if current_controller?(:tree, :commits)
        = auto_discovery_link_tag(:atom, project_commits_url(@project, @ref, format: :atom, private_token: current_user.private_token), title: "Recent commits to #{@project.name}:#{@ref}")
      - if current_controller?(:issues)
        = auto_discovery_link_tag(:atom, project_issues_url(@project, :atom, private_token: current_user.private_token), title: "#{@project.name} issues")
23
24
25

  -# Go repository retrieval support.
  - if controller_name == 'projects' && action_name == 'show'
26
    %meta{name: "go-import", content: "#{@project.web_url_without_protocol} git #{@project.web_url}.git"}
27