From e144e42e35ecf0bc03eb844162e848d76ca051c8 Mon Sep 17 00:00:00 2001 From: OlexanderVanzuriak Date: Fri, 29 Nov 2024 17:24:00 +0200 Subject: [PATCH] Code formatting --- .../partials/_calculation_results.html.erb | 12 +++++++++--- .../show/_constructor_calculator_description.erb | 11 ++--------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/app/views/calculators/partials/_calculation_results.html.erb b/app/views/calculators/partials/_calculation_results.html.erb index 4e3312887..14199c497 100644 --- a/app/views/calculators/partials/_calculation_results.html.erb +++ b/app/views/calculators/partials/_calculation_results.html.erb @@ -7,9 +7,15 @@ <% results.each do |result| %>
<%= image_tag "#{formula_image}", class: "img-margin", alt: "icon" %> -

<%= result[:result] %>

-

<%= result[:unit] %>

-

<%= result[:label] %>

+

+ <%= result[:result] %> +

+

+ <%= result[:unit] %> +

+

+ <%= result[:label] %> +

<% end %> diff --git a/app/views/calculators/partials/show/_constructor_calculator_description.erb b/app/views/calculators/partials/show/_constructor_calculator_description.erb index 590b3cbbd..fed35215a 100644 --- a/app/views/calculators/partials/show/_constructor_calculator_description.erb +++ b/app/views/calculators/partials/show/_constructor_calculator_description.erb @@ -1,15 +1,8 @@ <%# TODO: Delete this if %> <% if false %>
-
-
-

- <%# TODO: Add description text and links %> -

+
+ <%# TODO: ADD text here %>
-
- <%# TODO: Add discription btn link here %> -
-
<% end %>