<% cache [locale_and_user_status(investment), 'index', investment, investment.author] do %>
@@ -55,7 +57,8 @@
<% if investment.should_show_votes? %>
+ class="small-12 medium-3 column text-center"
+ <%= 'data-equalizer-watch' if feature?(:allow_images) && investment.image.present? %>>
<%= render partial: '/budgets/investments/votes', locals: {
investment: investment,
investment_votes: investment_votes,
@@ -64,7 +67,8 @@
<% elsif investment.should_show_vote_count? %>
+ class="small-12 medium-3 column text-center"
+ <%= 'data-equalizer-watch' if feature?(:allow_images) && investment.image.present? %>>
<%= t("budgets.investments.investment.supports",
@@ -74,7 +78,8 @@
<% elsif investment.should_show_ballots? %>
+ class="small-12 medium-3 column text-center"
+ <%= 'data-equalizer-watch' if feature?(:allow_images) && investment.image.present? %>>
<%= render partial: '/budgets/investments/ballot', locals: {
investment: investment,
investment_ids: investment_ids,
@@ -83,13 +88,14 @@
<% elsif investment.should_show_price? %>
+ class="supports small-12 medium-3 column text-center"
+ <%= 'data-equalizer-watch' if feature?(:allow_images) && investment.image.present? %>>
<%= investment.formatted_price %>
<% else %>
-
+
>
<% end %>
<% end %>
diff --git a/app/views/polls/_poll_group.html.erb b/app/views/polls/_poll_group.html.erb
index 93174e157..033aff23e 100644
--- a/app/views/polls/_poll_group.html.erb
+++ b/app/views/polls/_poll_group.html.erb
@@ -10,8 +10,6 @@
<% if poll.image.present? %>
<%= image_tag poll.image_url(:large), alt: poll.image.title %>
- <% else %>
-
<% end %>
diff --git a/app/views/proposals/_form.html.erb b/app/views/proposals/_form.html.erb
index 2390b62f6..6bf8c274a 100644
--- a/app/views/proposals/_form.html.erb
+++ b/app/views/proposals/_form.html.erb
@@ -46,9 +46,11 @@
<%= f.text_field :external_url, placeholder: t("proposals.form.proposal_external_url"), label: false %>
+ <%= render 'images/nested_image', imageable: @proposal, f: f %>
+
<%= render 'documents/nested_documents', documentable: @proposal, f: f %>
diff --git a/app/views/proposals/_proposal.html.erb b/app/views/proposals/_proposal.html.erb
index 2f5c22c3c..9473984bb 100644
--- a/app/views/proposals/_proposal.html.erb
+++ b/app/views/proposals/_proposal.html.erb
@@ -1,21 +1,23 @@
Proposal.votes_needed_for_success) %>"
data-type="proposal">
-
+
-
-
-
- <% if proposal.image.present? %>
+ <% if feature?(:allow_images) && proposal.image.present? %>
+
+
+
+
<%= image_tag proposal.image_url(:thumb), alt: proposal.image.title %>
- <% else %>
-
- <% end %>
+
-
-
+
+ <% else %>
+
+
+ <% end %>
<% cache [locale_and_user_status(proposal), 'index', proposal, proposal.author] do %>
<%= link_to proposal.title, namespaced_proposal_path(proposal) %>
@@ -60,7 +62,9 @@
-
+
>
<% if proposal.successful? %>