Commit 8457415eb92f80bf485d40c41fafa02cd9377904

Authored by Dmitriy Zaporozhets
1 parent 95f032c4

Add links to create branch/tag from project home page

Showing 1 changed file with 11 additions and 0 deletions   Show diff stats
app/views/projects/_clone_panel.html.haml
... ... @@ -37,6 +37,17 @@
37 37 %li
38 38 = link_to new_project_snippet_path(@project), title: "New Snippet" do
39 39 Snippet
  40 + - if can? current_user, :push_code, @project
  41 + %li.divider
  42 + %li
  43 + = link_to new_project_branch_path(@project) do
  44 + %i.icon-code-fork
  45 + Git branch
  46 + %li
  47 + = link_to new_project_tag_path(@project) do
  48 + %i.icon-tag
  49 + Git tag
  50 +
40 51 - if can?(current_user, :admin_team_member, @project)
41 52 %li.divider
42 53 %li
... ...