Remove margin bottom in the table inside accordion. Divided into groups of 10 interests. Inserted interests in columns.

This commit is contained in:
Alessandro Cuoghi
2017-07-03 12:14:00 +02:00
committed by Senén Rodero Rodríguez
parent 7e2e94d709
commit 556e2598c3
4 changed files with 10 additions and 6 deletions

View File

@@ -1964,6 +1964,7 @@ table {
table {
border: 0;
margin-bottom: 0;
}
td {

View File

@@ -3,11 +3,11 @@ class UsersController < ApplicationController
load_and_authorize_resource
helper_method :author?
helper_method :valid_interests_access?
helper_method :author_or_admin?
def show
load_filtered_activity if valid_access?
load_interests if valid_interests_access?
end
private

View File

@@ -1,16 +1,19 @@
<tr id="proposal_<%= proposal.id %>">
<td>
<%= link_to proposal.title, proposal, proposal.retired? ? {class: 'retired'} : {} %>
<%= link_to proposal.title, proposal, proposal.retired? ? { class: 'retired' } : {} %>
<br>
<%= proposal.summary %>
</td>
<% if author? %>
<% if can? :retire_form, proposal %>
<td class="text-center">
<%= link_to t("users.proposals.send_notification"), new_proposal_notification_path(proposal_id: proposal.id),
class: 'button hollow' %>
<%= link_to t("users.proposals.send_notification"),
new_proposal_notification_path(proposal_id: proposal.id),
class: 'button hollow' %>
</td>
<% end %>
<% if can? :new, ProposalNotification, author_id: proposal.author_id %>
<td class="text-center">
<% if proposal.retired? %>
<span class="label alert"><%= t('users.proposals.retired') %></span>

View File

@@ -46,7 +46,7 @@
<p><%= t('users.show.private_activity') %></p>
<% end %>
<% if @user.public_interests || @authorized_current_user %>
<% if valid_interests_access? %>
<div id="public_interests" class="public-interests">
<h4><%= t('account.show.public_interests_title_list') %></h4>
<% @user.interests.in_groups_of(10, false) do |interests_group| %>