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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-23 17:06:32 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-23 17:06:32 +0400
commitde7d93e31fd2a35488113cac7d6f56c2c2a88306 (patch)
tree824104c4645fc81a63db17145b3986e0f44019b8 /app/views
parentd906f19c5ba961f34dad995d65494c5fec7bd3f4 (diff)
parent484c09792c5c6b4f8f1111978a82cf080a31a920 (diff)
Merge branch 'branch-creation-flow' into 'master'
Branch creation flow To improve user experience with web editing I did next improvements: * when create branch via ui - redirect to tree view so you start add/edit files * when click on branch name - redirect to tree view instead of commits so you can immedialty add/edit files
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/branches/_branch.html.haml2
-rw-r--r--app/views/projects/tree/show.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/branches/_branch.html.haml b/app/views/projects/branches/_branch.html.haml
index a5f382c9a5c..2abcd00ee81 100644
--- a/app/views/projects/branches/_branch.html.haml
+++ b/app/views/projects/branches/_branch.html.haml
@@ -1,7 +1,7 @@
- commit = @repository.commit(branch.target)
%li
%h4
- = link_to project_commits_path(@project, branch.name) do
+ = link_to project_tree_path(@project, branch.name) do
%strong= truncate(branch.name, length: 60)
- if branch.name == @repository.root_ref
%span.label.label-info default
diff --git a/app/views/projects/tree/show.html.haml b/app/views/projects/tree/show.html.haml
index 6b33493b7d2..735ffae9e2c 100644
--- a/app/views/projects/tree/show.html.haml
+++ b/app/views/projects/tree/show.html.haml
@@ -1,6 +1,6 @@
%div.tree-ref-holder
= render 'shared/ref_switcher', destination: 'tree', path: @path
- if can? current_user, :download_code, @project
- = render 'projects/repositories/download_archive', ref: @ref, btn_class: 'btn-group-small tree-ref-holder pull-right', split_button: true
+ = render 'projects/repositories/download_archive', ref: @ref, btn_class: 'btn-group-small pull-right', split_button: true
%div#tree-holder.tree-holder
= render "tree", tree: @tree