diff --git a/app/assets/fonts/icons.eot b/app/assets/fonts/icons.eot index 0bb2d0d64..72be3d3a4 100644 Binary files a/app/assets/fonts/icons.eot and b/app/assets/fonts/icons.eot differ diff --git a/app/assets/fonts/icons.svg b/app/assets/fonts/icons.svg index f4e4e48c1..90fd49050 100644 --- a/app/assets/fonts/icons.svg +++ b/app/assets/fonts/icons.svg @@ -19,4 +19,5 @@ + diff --git a/app/assets/fonts/icons.ttf b/app/assets/fonts/icons.ttf index f69b18def..6da756d47 100644 Binary files a/app/assets/fonts/icons.ttf and b/app/assets/fonts/icons.ttf differ diff --git a/app/assets/fonts/icons.woff b/app/assets/fonts/icons.woff index 32638055d..dfa9b2094 100644 Binary files a/app/assets/fonts/icons.woff and b/app/assets/fonts/icons.woff differ diff --git a/app/assets/stylesheets/debates.scss b/app/assets/stylesheets/debates.scss index be1005f74..a97764583 100644 --- a/app/assets/stylesheets/debates.scss +++ b/app/assets/stylesheets/debates.scss @@ -138,9 +138,11 @@ // 02. Index // - - - - - - - - - - - - - - - - - - - - - - - - - -.debate-featured { - margin-bottom: rem-calc(34); +.featured-debates { margin-top: rem-calc(23); +} + +.debate-featured { .panel { background: white; @@ -242,6 +244,7 @@ .debates-list { margin-bottom: $line-height*2; + margin-top: $line-height; } .debate { @@ -318,12 +321,16 @@ } } +.sidebar { + margin-top: $line-height; +} + // 03. Show // - - - - - - - - - - - - - - - - - - - - - - - - - .debate-show { background: white; - padding: rem-calc(24) rem-calc(12) 0 rem-calc(12); + padding: rem-calc(24) rem-calc(12) rem-calc(48); .back { @include back; @@ -378,8 +385,13 @@ font-weight: bold; } - .sidebar { + .sidebar-divider { border-top: 1px solid $border; + margin-top: $line-height; + + &:first-child { + margin-top: 0; + } } h3 { diff --git a/app/assets/stylesheets/icons.scss b/app/assets/stylesheets/icons.scss index c1c0d4f1e..0f7f75bd0 100644 --- a/app/assets/stylesheets/icons.scss +++ b/app/assets/stylesheets/icons.scss @@ -72,4 +72,7 @@ } .icon-check:before { content: "l"; +} +.icon-edit:before { + content: "m"; } \ No newline at end of file diff --git a/app/views/debates/show.html.erb b/app/views/debates/show.html.erb index 28fefd085..52280ee1d 100644 --- a/app/views/debates/show.html.erb +++ b/app/views/debates/show.html.erb @@ -2,6 +2,15 @@
 <%= link_to t("debates.show.back_link"), debates_path, class: 'left back' %> + + <% if current_user && @debate.editable_by?(current_user) %> + <%= link_to edit_debate_path(@debate), :class => 'right' do %> + + <%= t("debates.show.edit_debate_link") %> + <% end %> + <% end %> + +

<%= @debate.title %>

@@ -12,23 +21,24 @@ <%= @debate.description %> <%= render 'shared/tags', debate: @debate %> - -

<%= social_share_button_tag(@debate.title) %>

@@ -45,8 +55,5 @@ <% end %> <%= render @debate.root_comments.recent %> - <% if current_user && @debate.editable_by?(current_user) %> - <%= link_to t("debates.show.edit_debate_link"), edit_debate_path(@debate), :class => 'button radius right' %> - <% end %> - + \ No newline at end of file diff --git a/config/locales/en.yml b/config/locales/en.yml index b036f8125..eb4f53262 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -41,6 +41,7 @@ en: leave_comment: Write a comment login_to_comment: Log in to participate edit_debate_link: Edit + share: Share edit: editing: Edit debate show_link: Show debate diff --git a/config/locales/es.yml b/config/locales/es.yml index 7995483d4..2bd718f2f 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -41,6 +41,7 @@ es: leave_comment: Deja tu comentario login_to_comment: Entra para participar edit_debate_link: Editar + share: Compartir edit: editing: Editar debate show_link: Ver debate