Commit f1ab1221 authored by James Ramsay's avatar James Ramsay
Browse files

Replace use of capture_haml with capture

parent 576d8009b63a
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment