Replace use of capture_haml with capture

This commit is contained in:
James Ramsay 2018-01-03 11:43:01 -05:00
parent 592e81503a
commit 7c721e7bba
No known key found for this signature in database
GPG Key ID: D0DDB642E0E655B4
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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