Welcome to mirror list, hosted at ThFree Co, Russian Federation.

show.html.haml « blob « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 99f396fb476e9ac06598714cfea9a385b97b6a24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
- breadcrumb_title _("Files")
- @no_container = true

- page_title @blob.path, @ref

- content_for :page_specific_javascripts do
  = webpack_bundle_tag 'blob'

  - if show_new_repo?
    = webpack_bundle_tag 'common_vue'
    = webpack_bundle_tag 'repo'

= render 'projects/last_push'

%div{ class: container_class }
  - if show_new_repo?
    = render 'projects/files', commit: @last_commit, project: @project, ref: @ref, content_url: project_blob_path(@project, @id)
  - else
    #tree-holder.tree-holder
      = render 'blob', blob: @blob

    - if can_modify_blob?(@blob)
      = render 'projects/blob/remove'

      - title = "Replace #{@blob.name}"
      = render 'projects/blob/upload', title: title, placeholder: title, button_title: 'Replace file', form_path: project_update_blob_path(@project, @id), method: :put