From 8964888711bab7dbd04aa0881d16147d06d2fa26 Mon Sep 17 00:00:00 2001 From: decabeza Date: Thu, 18 Oct 2018 18:40:58 +0200 Subject: [PATCH] Removes condition to allow images and data equalizer on proposals The proposal image only can be present if feature :allow_images is enabled, so there is no need to include both conditions. The data-equalizer also is unnecessary because the :thumb image already has an fix height. --- app/views/proposals/_proposal.html.erb | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/app/views/proposals/_proposal.html.erb b/app/views/proposals/_proposal.html.erb index e1ffc0689..8ceca43b6 100644 --- a/app/views/proposals/_proposal.html.erb +++ b/app/views/proposals/_proposal.html.erb @@ -1,17 +1,15 @@
Proposal.votes_needed_for_success) %>" + class="proposal clear + <%= ("successful" if proposal.total_votes > Proposal.votes_needed_for_success) %>" data-type="proposal"> -
+
- <% if feature?(:allow_images) && proposal.image.present? %> -
- + <% if proposal.image.present? %> +
-
- <%= image_tag proposal.image_url(:thumb), - alt: proposal.image.title.unicode_normalize %> -
+ <%= image_tag proposal.image_url(:thumb), + alt: proposal.image.title.unicode_normalize %>
@@ -24,7 +22,8 @@

<%= link_to proposal.title, namespaced_proposal_path(proposal) %>

  - <%= link_to t("proposals.proposal.comments", count: proposal.comments_count), namespaced_proposal_path(proposal, anchor: "comments") %> + <%= link_to t("proposals.proposal.comments", count: proposal.comments_count), + namespaced_proposal_path(proposal, anchor: "comments") %>  •  <%= l proposal.created_at.to_date %> @@ -64,8 +63,7 @@

> + class="small-12 medium-3 column supports-container"> <% if proposal.successful? %>