Improve styles for budgets voting phase
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<li id="<%= list_item_id %>">
|
||||
<%= investment_title %>
|
||||
<span><%= investment.formatted_price %></span>
|
||||
<%= investment_price %>
|
||||
|
||||
<% if budget.balloting? %>
|
||||
<%= link_to delete_path,
|
||||
|
||||
@@ -19,6 +19,10 @@ class Budgets::Ballot::InvestmentComponent < ApplicationComponent
|
||||
link_to investment.title, budget_investment_path(budget, investment)
|
||||
end
|
||||
|
||||
def investment_price
|
||||
tag.span investment.formatted_price, class: "ballot-list-price"
|
||||
end
|
||||
|
||||
def delete_path
|
||||
budget_ballot_line_path(budget, id: investment.id)
|
||||
end
|
||||
|
||||
@@ -14,7 +14,7 @@ class Budgets::Ballot::InvestmentForSidebarComponent < Budgets::Ballot::Investme
|
||||
end
|
||||
|
||||
def investment_title
|
||||
investment.title
|
||||
tag.span investment.title, class: "ballot-list-title"
|
||||
end
|
||||
|
||||
def delete_path
|
||||
|
||||
Reference in New Issue
Block a user