2020-10-13 08:08:41 -04:00
|
|
|
- current_route_path = request.fullpath.match(/-\/tree\/[^\/]+\/(.+$)/).to_a[1]
|
2020-10-26 08:08:44 -04:00
|
|
|
- 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-07-12 04:16:32 -04:00
|
|
|
- breadcrumb_title _("Repository")
|
2017-07-11 03:53:52 -04:00
|
|
|
- @content_class = "limit-container-width" unless fluid_layout
|
2016-06-03 11:53:04 -04:00
|
|
|
|
2017-06-07 16:13:44 -04:00
|
|
|
- page_title @path.presence || _("Files"), @ref
|
2015-04-21 10:31:40 -04:00
|
|
|
= content_for :meta_tags do
|
2017-06-29 13:06:35 -04:00
|
|
|
= auto_discovery_link_tag(:atom, project_commits_url(@project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits")
|
2017-07-18 05:15:02 -04:00
|
|
|
|
2019-09-03 05:03:35 -04:00
|
|
|
= render 'projects/last_push'
|
|
|
|
= render 'projects/files', commit: @last_commit, project: @project, ref: @ref, content_url: project_tree_path(@project, @id)
|