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 { .panel {
min-height: 7rem; min-height: auto;
margin: 0.375rem 0; margin: 0.375rem 0;
.button { .button {
margin-top: $line-height; 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 { .communities-participant {
@@ -39,10 +26,7 @@
.topic-show { .topic-show {
p { p,
margin-bottom: 0;
}
ul li { ul li {
margin-bottom: 0; margin-bottom: 0;
} }

View File

@@ -11,11 +11,11 @@
<div class="row"> <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> <div class="sidebar-divider"></div>
<h2><%= t("community.sidebar.topic.title") %></h2> <h2><%= t("community.sidebar.topic.title") %></h2>
<%= link_to t("community.sidebar.topic.new_topic"), new_community_topic_path(@community.id), class: 'button expanded' %> <%= 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 class="small-12 medium-9 column">
<div id="topics" class="topics-list"> <div id="topics" class="topics-list">

View File

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

View File

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