improves following page, shows public interest only in this view
This commit is contained in:
@@ -2043,36 +2043,6 @@ table {
|
||||
|
||||
.activity {
|
||||
|
||||
.accordion li {
|
||||
margin-bottom: $line-height / 2;
|
||||
|
||||
.accordion-title {
|
||||
border-bottom: 1px solid $border;
|
||||
background: #f8f9fb;
|
||||
font-size: $small-font-size;
|
||||
padding: $line-height / 2;
|
||||
}
|
||||
|
||||
.accordion-content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.accordion .title {
|
||||
display: block;
|
||||
line-height: $line-height;
|
||||
}
|
||||
|
||||
.accordion .icon {
|
||||
font-size: rem-calc(20);
|
||||
float: left;
|
||||
margin-right: $line-height / 3;
|
||||
|
||||
&.icon-debates {
|
||||
margin-top: rem-calc(3);
|
||||
}
|
||||
}
|
||||
|
||||
.retired {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
@@ -2082,6 +2052,45 @@ table {
|
||||
|
||||
li {
|
||||
margin-right: $line-height / 4;
|
||||
|
||||
span {
|
||||
background: none;
|
||||
border: 1px solid #ececec;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.following {
|
||||
|
||||
.follow-list {
|
||||
list-style-type: circle;
|
||||
padding: $line-height / 2;
|
||||
|
||||
li {
|
||||
margin-bottom: $line-height / 2;
|
||||
margin-left: $line-height;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: rem-calc(24);
|
||||
margin-top: $line-height;
|
||||
padding-left: rem-calc(30);
|
||||
position: relative;
|
||||
|
||||
span {
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.interests {
|
||||
|
||||
@include breakpoint(medium) {
|
||||
border-left: 1px solid #ececec;
|
||||
padding-left: $line-height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ module FollowablesHelper
|
||||
|
||||
def render_follow(follow)
|
||||
followable = follow.followable
|
||||
partial = followable_class_name(followable)
|
||||
partial = followable_class_name(followable) + "_follow"
|
||||
locals = {followable_class_name(followable).to_sym => followable}
|
||||
|
||||
render partial, locals
|
||||
|
||||
3
app/views/users/_budget_investment_follow.html.erb
Normal file
3
app/views/users/_budget_investment_follow.html.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
<li id="budget_investment_<%= budget_investment.id %>">
|
||||
<%= link_to budget_investment.title, budget_investment_path(budget_investment.budget, budget_investment) %>
|
||||
</li>
|
||||
@@ -1,30 +1,27 @@
|
||||
<ul class="accordion" data-accordion data-allow-all-closed="true">
|
||||
<div class="row following margin-top" data-equalizer data-equalize-on="medium" >
|
||||
<div class="small-12 medium-8 column" data-equalizer-watch>
|
||||
<ul class="menu simple clear">
|
||||
<% @follows.each do |followable_type, follows| %>
|
||||
<li><%= link_to followable_type_title(followable_type), "##{followable_type_title(followable_type).parameterize.underscore}" %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<% @follows.each do |followable_type, follows| %>
|
||||
<% @follows.each do |followable_type, follows| %>
|
||||
|
||||
<li class="accordion-item" data-accordion-item>
|
||||
<h3 id="<%= followable_type_title(followable_type).parameterize.underscore %>">
|
||||
<span class="icon-<%= followable_icon(followable_type) %>"></span>
|
||||
<%= followable_type_title(followable_type) %>
|
||||
</h3>
|
||||
|
||||
<a href="#" class="accordion-title">
|
||||
<span class="icon">
|
||||
<i class="icon icon-<%= followable_icon(followable_type) %>"></i>
|
||||
</span>
|
||||
<span class="title">
|
||||
<strong><%= followable_type_title(followable_type) %></strong>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="follow-list">
|
||||
<% follows.each do |follow| %>
|
||||
<%= render_follow(follow) %>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div class="accordion-content" data-tab-content>
|
||||
<table>
|
||||
<tbody>
|
||||
<% follows.each do |follow| %>
|
||||
<%= render_follow(follow) %>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<% end %>
|
||||
|
||||
</ul>
|
||||
<div class="small-12 medium-4 column interests" data-equalizer-watch>
|
||||
<%= render 'interests', user: @user if valid_interests_access? %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
6
app/views/users/_proposal_follow.html.erb
Normal file
6
app/views/users/_proposal_follow.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<li id="proposal_<%= proposal.id %>">
|
||||
<%= link_to proposal.title, proposal, proposal.retired? ? { class: 'retired' } : {} %>
|
||||
<% if proposal.retired? %>
|
||||
<span class="label alert"><%= t('users.proposals.retired') %></span>
|
||||
<% end %>
|
||||
</li>
|
||||
@@ -48,8 +48,6 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= render 'interests', user: @user if valid_interests_access? %>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user