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

_compare.html.haml « buttons « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 82b1b837fbb9fda0222f9f1722d4a0c8eb2f8963 (plain)
1
2
3
4
5
6
7
8
- project = local_assigns.fetch(:project)
- ref = local_assigns.fetch(:ref, nil)
- root_ref = local_assigns.fetch(:root_ref, nil)
- unless ref.blank? || root_ref == ref
  - compare_path = project_compare_index_path(project, from: root_ref, to: ref)

  = link_button_to compare_path, class: 'shortcuts-compare', rel: 'nofollow' do
    = _('Compare')