summaryrefslogtreecommitdiff
path: root/app/views/shared/repo/_repo.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/repo/_repo.html.haml')
-rw-r--r--app/views/shared/repo/_repo.html.haml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/shared/repo/_repo.html.haml b/app/views/shared/repo/_repo.html.haml
new file mode 100644
index 00000000000..0fc40cf0801
--- /dev/null
+++ b/app/views/shared/repo/_repo.html.haml
@@ -0,0 +1,2 @@
+#repo{ data: { url: content_url, project_name: project.name, refs_url: refs_project_path(project, format: :json), project_url: project_path(project), project_id: project.id, can_commit: (!!can_push_branch?(project, @ref)).to_s } }
+ %repo