diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 81d6b2b9d..4c57c9798 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -927,6 +927,23 @@ } } +.budget-investment-show{ + .image{ + text-align: center; + } + p.title-image{ + font-size: 1rem; + margin-top:1.25rem; + margin-bottom:0; + } +} + +.edit_budget_investment{ + .note-marked p{ + margin-bottom:0; + } +} + .investment-project-show .supports, .budget-investment-show .supports { border: 0; diff --git a/app/models/budget/investment.rb b/app/models/budget/investment.rb index 4533ff631..90f718dfa 100644 --- a/app/models/budget/investment.rb +++ b/app/models/budget/investment.rb @@ -16,8 +16,8 @@ class Budget acts_as_votable acts_as_paranoid column: :hidden_at include ActsAsParanoidAliases - - has_attached_file :image, styles: { large: "600x600>", medium: "300x300#", thumb: "140x245#" } + + has_attached_file :image, styles: { large: "x475", medium: "300x300#", thumb: "140x245#" } belongs_to :author, -> { with_hidden }, class_name: 'User', foreign_key: 'author_id' belongs_to :heading diff --git a/app/views/budgets/investments/_investment_show.html.erb b/app/views/budgets/investments/_investment_show.html.erb index a71fc099d..04e013fbd 100644 --- a/app/views/budgets/investments/_investment_show.html.erb +++ b/app/views/budgets/investments/_investment_show.html.erb @@ -21,13 +21,25 @@
+ <%= investment.image_title %> +
+<%= t("budgets.investments.show.code_html", code: investment.id) %>
@@ -44,13 +56,6 @@ <% end %> - - <% if investment.image.exists? %> - <%= image_tag investment.image.url(:large), - title: investment.image_title, - alt: investment.image_title %> - <% end %> - <%= render 'shared/tags', taggable: investment %> <%= safe_html_with_links investment.description.html_safe %>