debian-mirror-gitlab/app/views/projects/tree/show.html.haml

14 lines
962 B
Text
Raw Normal View History

2021-01-03 14:25:43 +05:30
- current_route_path = request.fullpath.match(/-\/tree\/[^\/]+\/(.+$)/).to_a[1]
2021-01-29 00:20:46 +05:30
- add_page_startup_graphql_call('repository/path_last_commit', { projectPath: @project.full_path, ref: current_ref, path: current_route_path || "" })
- add_page_startup_graphql_call('repository/permissions', { projectPath: @project.full_path })
- add_page_startup_graphql_call('repository/files', { nextPageCursor: "", pageSize: 100, projectPath: @project.full_path, ref: current_ref, path: current_route_path || "/"})
2017-09-10 17:25:29 +05:30
- breadcrumb_title _("Repository")
- @content_class = "limit-container-width" unless fluid_layout
2017-09-10 17:25:29 +05:30
- page_title @path.presence || _("Files"), @ref
2015-09-11 14:41:01 +05:30
= content_for :meta_tags do
2017-09-10 17:25:29 +05:30
= auto_discovery_link_tag(:atom, project_commits_url(@project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits")
2019-12-04 20:38:33 +05:30
= render 'projects/last_push'
= render 'projects/files', commit: @last_commit, project: @project, ref: @ref, content_url: project_tree_path(@project, @id)