Commit e1ca9de0dabb9d1da13073110072b3327280eb55

Authored by Dmitriy Zaporozhets
1 parent 839c3b19

Add default values to compare page link

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/projects/commits/_head.html.haml
... ... @@ -4,7 +4,7 @@
4 4 = nav_link(controller: [:commit, :commits]) do
5 5 = link_to 'Commits', project_commits_path(@project, @repository.root_ref)
6 6 = nav_link(controller: :compare) do
7   - = link_to 'Compare', project_compare_index_path(@project)
  7 + = link_to 'Compare', project_compare_index_path(@project, from: @repository.root_ref, to: @ref || @repository.root_ref)
8 8  
9 9 = nav_link(html_options: {class: branches_tab_class}) do
10 10 = link_to recent_project_branches_path(@project) do
... ...