Replace use of capture_haml with capture
This commit is contained in:
parent
592e81503a
commit
7c721e7bba
|
@ -6,9 +6,9 @@
|
|||
%h3.page-title
|
||||
= _("Compare Git revisions")
|
||||
.sub-header-block
|
||||
- example_master = capture_haml do
|
||||
- example_master = capture do
|
||||
%code.ref-name master
|
||||
- example_sha = capture_haml do
|
||||
- example_sha = capture do
|
||||
%code.ref-name 4eedf23
|
||||
= (_("Choose a branch/tag (e.g. %{master}) or enter a commit (e.g. %{sha}) to see what's changed or to create a merge request.") % { master: example_master, sha: example_sha }).html_safe
|
||||
%br
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
= s_("CompareBranches|There isn't anything to compare.")
|
||||
%p.slead
|
||||
- if params[:to] == params[:from]
|
||||
- source_branch = capture_haml do
|
||||
- source_branch = capture do
|
||||
%span.ref-name= params[:from]
|
||||
- target_branch = capture_haml do
|
||||
- target_branch = capture do
|
||||
%span.ref-name= params[:to]
|
||||
= (s_("CompareBranches|%{source_branch} and %{target_branch} are the same.") % { source_branch: source_branch, target_branch: target_branch }).html_safe
|
||||
- else
|
||||
|
|
Loading…
Reference in New Issue