improves styles of budgets investments views

This commit is contained in:
Alberto Garcia Cabeza
2017-01-05 17:23:30 +01:00
parent 7eba0fee50
commit e0d3752f72
5 changed files with 7 additions and 15 deletions

View File

@@ -20,7 +20,7 @@
<div class="row progress-votes">
<div class="small-12 column">
<div class="progress-bar-nav" data-fixed-bar>
<h1 class="inline-block"><%= @heading.name %></h1>
<h1 class="inline-block margin-top"><%= @heading.name %></h1>
<% if can? :show, @ballot %>
<div id="check-ballot" style="display: none;">
<%= link_to t("budget.investments.header.check_ballot"),
@@ -41,7 +41,7 @@
</p>
<% end %>
<% else %>
<%= @budget.formatted_heading_price(@heading) %>
<h2><%= @budget.formatted_heading_price(@heading) %></h2>
<% end %>
</div>
</div>

View File

@@ -35,7 +35,7 @@
<%= heading_name(investment.heading) %>
</p>
<div class="investment-project-description">
<p><%= link_to investment.description, namespaced_budget_investment_path(investment) %></p>
<p><%= investment.description %></p>
<div class="truncate"></div>
</div>
<% end %>

View File

@@ -1,11 +1,5 @@
<section class="budget-investment-show" id="<%= dom_id(investment) %>">
<ul class="breadcrumbs">
<li><%= link_to investment.budget.name, budget_path(investment.budget) %></a></li>
<li><%= investment.group.name %></a></li>
<li><%= investment.heading.name %></a></li>
</ul>
<div class="row">
<div class="small-12 medium-9 column">
<%= link_to :back, class: "back" do %>
@@ -57,7 +51,7 @@
<% if investment.should_show_aside? %>
<aside class="small-12 medium-3 column">
<div class="sidebar-divider"></div>
<h3><%= t("votes.supports") %></h3>
<h2><%= t("votes.supports") %></h2>
<div class="text-center">
<% if investment.should_show_votes? %>
@@ -80,7 +74,7 @@
</div>
<div class="sidebar-divider"></div>
<h3><%= t("budget.investments.show.share") %></h3>
<h2><%= t("budget.investments.show.share") %></h2>
<div class="social-share-full">
<%= social_share_button_tag("#{investment.title} #{setting['twitter_hashtag']}") %>
<% if browser.device.mobile? %>
@@ -94,5 +88,3 @@
</div>
</section>

View File

@@ -10,7 +10,7 @@
<div class="in-favor js-in-favor">
<% if user_voted_for %>
<div class="supported">
<div class="supported callout success">
<%= t("budget.investments.investment.already_supported") %>
</div>
<% elsif investment.should_show_votes? %>