Files
grecia/app/views/communities/show.html.erb
2017-09-05 12:52:45 +02:00

66 lines
2.2 KiB
Plaintext

<div class="communities-show">
<div class="jumbo light">
<div class="row">
<div class="small-12 column">
<h2><%= community_text(@community) %></h2>
<p class="lead"> <%= community_title(@community) %> </p>
<p><%= community_description(@community) %> </p>
</div>
</div>
</div>
<div class="row">
<aside class="show-for-small-only small-12 column">
<div class="sidebar-divider"></div>
<h2><%= t("community.show.sidebar.participate") %></h2>
<%= link_to t("community.show.sidebar.new_topic"), new_community_topic_path(@community.id), class: "button expanded #{disabled_create_topic}" %>
</aside>
<div class="small-12 medium-9 column">
<div id="topics" class="topics-list">
<%= render "topics/topics", topics: @topics %>
</div>
<%= paginate @topics %>
</div>
<aside class="small-12 medium-3 hide-for-small-only column">
<div class="sidebar-divider"></div>
<h2><%= t("community.show.sidebar.participate") %></h2>
<%= link_to t("community.show.sidebar.new_topic"), new_community_topic_path(@community.id), class: "button expanded #{disabled_create_topic}", title: "#{disabled_info_title}" %>
</aside>
</div>
</div>
<div class="row column communities-participant">
<ul class="tabs" data-tabs id="communities-show-tabs">
<li class="tabs-title is-active">
<%= link_to "#tab-participants" do %>
<h3>
<%= t("community.show.tab.participants") %>
<span class="js-comments-count">(<%= @participants.count %>)</span>
</h3>
<% end %>
</li>
</ul>
<% @participants.each do |participant| %>
<div class="comment-body">
<div class="comment-info">
<%= image_tag("avatar_admin.png", size: 32, class: "admin-avatar float-left") %>
<div class="comment-info">
<span class="user-name">
<%= link_to participant.name, user_path(participant)%>
</span>
&nbsp;&bull;&nbsp;
<span class="label round is-author">
<%= t("comments.comment.author") %>
</span>
</div>
</div>
</div>
<%#= link_to participant.name, user_path(participant)%>
<% end %>
</div>