summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-10-31 10:18:56 +0000
committerPhil Hughes <me@iamphill.com>2017-10-31 10:18:56 +0000
commit307883a5eb582ac203fe0777fcb11fa7d6c3ddca (patch)
treec5056641a35655d05c671ed4b67858aea4d1d196 /app/views/shared
parentac8e94d4d56d98f9e4c3b7c0f331eaa6fa5a4312 (diff)
downloadgitlab-ce-307883a5eb582ac203fe0777fcb11fa7d6c3ddca.tar.gz
get branch name from the DOM
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/repo/_repo.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/shared/repo/_repo.html.haml b/app/views/shared/repo/_repo.html.haml
index c1ba1cfefba..5867ea58378 100644
--- a/app/views/shared/repo/_repo.html.haml
+++ b/app/views/shared/repo/_repo.html.haml
@@ -1,6 +1,7 @@
#repo{ data: { root: @path.empty?.to_s,
root_url: project_tree_path(project),
url: content_url,
+ current_branch: @ref,
ref: @commit.id,
project_name: project.name,
project_url: project_path(project),