Added style show community.

This commit is contained in:
Alessandro Cuoghi
2017-08-07 16:42:23 +02:00
committed by taitus
parent 08f58b845d
commit b4cdca215d
7 changed files with 126 additions and 24 deletions

View File

@@ -1,20 +1,43 @@
<div class="order">
Ordenar por:
<div class="row column">
<div class="order">
<div class="wide-order-selector small-12 medium-8">
<form>
<div class="small-12 medium-8 float-left">
<label for="order-selector-participation">
Ordenar por:
</label>
</div>
<div class="small-12 medium-4 float-left">
<select class="js-location-changer js-order-selector select-order">
<option>Value 1</option>
<option>Value 2</option>
</select>
</div>
</form>
</div>
</div>
</div>
<% if topics.any? %>
<% topics.each do |topic| %>
<div id="<%= dom_id(topic) %>">
<%= link_to topic.title, community_topic_path(@community, topic) %>
<p class="topic-info">
<%= link_to t("proposals.proposal.comments", count: topic.comments_count), community_topic_path(@community, topic, anchor: "comments") %>
<%= topic.author.name %>
<%= I18n.l topic.created_at %>
</p>
<% if topic.author == current_user %>
<%= link_to t("topic.edit"), edit_community_topic_path(@community.id, topic), class: 'button expanded' %>
<% end %>
<div id="<%= dom_id(topic) %>" class="panel">
<div class="small-12 medium-11 column">
<h3><%= link_to topic.title, community_topic_path(@community, topic) %></h3>
<p class="topic-info">
<span class="icon-comments"></span>&nbsp;
<%= link_to t("proposals.proposal.comments", count: topic.comments_count), community_topic_path(@community, topic, anchor: "comments") %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= I18n.l topic.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= topic.author.name %>
</p>
</div>
<div class="small-12 medium-1 column text-center nopadding">
<% if topic.author == current_user %>
<%= link_to t("community.topic.edit_button"), edit_community_topic_path(@community.id, topic), class: 'button small hollow' %>
<% end %>
</div>
</div>
<% end %>
<% else %>