BigW Consortium Gitlab

Replace use of capture_haml with capture

parent 592e8150
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
%h3.page-title %h3.page-title
= _("Compare Git revisions") = _("Compare Git revisions")
.sub-header-block .sub-header-block
- example_master = capture_haml do - example_master = capture do
%code.ref-name master %code.ref-name master
- example_sha = capture_haml do - example_sha = capture do
%code.ref-name 4eedf23 %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 = (_("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 %br
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
= s_("CompareBranches|There isn't anything to compare.") = s_("CompareBranches|There isn't anything to compare.")
%p.slead %p.slead
- if params[:to] == params[:from] - if params[:to] == params[:from]
- source_branch = capture_haml do - source_branch = capture do
%span.ref-name= params[:from] %span.ref-name= params[:from]
- target_branch = capture_haml do - target_branch = capture do
%span.ref-name= params[:to] %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 = (s_("CompareBranches|%{source_branch} and %{target_branch} are the same.") % { source_branch: source_branch, target_branch: target_branch }).html_safe
- else - 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