Clean code.

This commit is contained in:
Alessandro Cuoghi
2017-08-09 19:06:56 +02:00
committed by taitus
parent 82053046f8
commit 555c47e012
4 changed files with 7 additions and 25 deletions

View File

@@ -5,26 +5,13 @@
}
.panel {
min-height: 7rem;
min-height: auto;
margin: 0.375rem 0;
.button {
margin-top: $line-height;
}
}
//Participations.scss line 412
.btn-new-theme-small {
h2 {
border-top: 2px solid $brand;
display: inline-block;
font-size: rem-calc(16);
margin: -1px 0 rem-calc(12);
padding-top: rem-calc(6);
text-transform: uppercase;
}
}
}
.communities-participant {
@@ -39,10 +26,7 @@
.topic-show {
p {
margin-bottom: 0;
}
p,
ul li {
margin-bottom: 0;
}

View File

@@ -11,11 +11,11 @@
<div class="row">
<div class="btn-new-theme-small show-for-small-only small-12 column">
<aside class="show-for-small-only small-12 column">
<div class="sidebar-divider"></div>
<h2><%= t("community.sidebar.topic.title") %></h2>
<%= link_to t("community.sidebar.topic.new_topic"), new_community_topic_path(@community.id), class: 'button expanded' %>
</div>
</aside>
<div class="small-12 medium-9 column">
<div id="topics" class="topics-list">

View File

@@ -6,8 +6,8 @@
</div>
<% topics.each do |topic| %>
<div id="<%= dom_id(topic) %>" class="panel">
<div class="small-10 medium-10 column">
<div id="<%= dom_id(topic) %>" class="panel column">
<div class="small-10 column">
<h3><%= link_to topic.title, community_topic_path(@community, topic) %></h3>
<p class="topic-info">
<span class="icon-comments"></span>&nbsp;
@@ -18,7 +18,7 @@
<%= topic.author.name %>
</p>
</div>
<div class="small-2 medium-2 column text-center">
<div class="small-2 column text-right">
<% if topic.author == current_user %>
<%= link_to t("community.topic.edit_button"), edit_community_topic_path(@community.id, topic), class: 'button small hollow' %>
<% end %>

View File

@@ -25,7 +25,6 @@ es:
topic:
create: Crear un tema
edit_button: Editar
form:
topic_title: Titulo del tema
@@ -34,7 +33,6 @@ es:
submit_button: Crear tema
edit:
submit_button: Guardar cambios
show:
community_of_the_proposal: Comunidad de la propuesta
tab: