diff --git a/app/assets/stylesheets/legislation_process.scss b/app/assets/stylesheets/legislation_process.scss index 3fbc509bf..0b53115d6 100644 --- a/app/assets/stylesheets/legislation_process.scss +++ b/app/assets/stylesheets/legislation_process.scss @@ -527,13 +527,6 @@ $epigraph-line-height: rem-calc(22); .draft-panels { position: relative; padding: 2rem 0; - - aside.absolute { - @include breakpoint(medium) { - position: absolute; - right: 0; - } - } .draft-chooser { margin-bottom: 2rem; @@ -1118,6 +1111,10 @@ $epigraph-line-height: rem-calc(22); // 10. Legislation draft comment // ----------------- .legislation-comment { + + .annotation-share-comment { + margin-bottom: 2rem; + } .pull-right { float: right; diff --git a/app/views/legislation/annotations/_slim_version_chooser.html.erb b/app/views/legislation/annotations/_slim_version_chooser.html.erb index cd34736f7..2f2203374 100644 --- a/app/views/legislation/annotations/_slim_version_chooser.html.erb +++ b/app/views/legislation/annotations/_slim_version_chooser.html.erb @@ -17,7 +17,7 @@

Compartir

- <%= render '/legislation/shared/share_buttons', title: @draft_version.title %> + <%= render '/legislation/shared/share_buttons', title: t('legislation.shared.share_comment', version_name: @draft_version.title.downcase, process_name: @process.title) %>
diff --git a/app/views/legislation/annotations/index.html.erb b/app/views/legislation/annotations/index.html.erb index ddcd9919b..cc67f9f2d 100644 --- a/app/views/legislation/annotations/index.html.erb +++ b/app/views/legislation/annotations/index.html.erb @@ -6,15 +6,7 @@
- <%= render 'version_chooser', process: @process, draft_version: @draft_version %> - - + <%= render 'slim_version_chooser', process: @process, draft_version: @draft_version %>
diff --git a/app/views/legislation/annotations/show.html.erb b/app/views/legislation/annotations/show.html.erb index 765169246..46c728a16 100644 --- a/app/views/legislation/annotations/show.html.erb +++ b/app/views/legislation/annotations/show.html.erb @@ -6,31 +6,40 @@
- <%= render 'slim_version_chooser', process: @process, draft_version: @draft_version %> + <%= render 'version_chooser', process: @process, draft_version: @draft_version %> -
-
-
- <%= t('legislation.annotations.index.comments_about') %> -
-
-
- <%= @annotation.context.try(:html_safe).presence || @annotation.quote %> -
-
- - <%= link_to legislation_process_draft_version_path(@process, @draft_version, anchor: "annotation-id-#{@annotation.id}") do %> - <%= t('legislation.annotations.index.see_in_context') %> - <% end %> - +
+
+
+
+ <%= t('legislation.annotations.index.comments_about') %> + +
+
+
+ <%= @annotation.context.try(:html_safe).presence || @annotation.quote %> +
+
+ + <%= link_to legislation_process_draft_version_path(@process, @draft_version, anchor: "annotation-id-#{@annotation.id}") do %> + <%= t('legislation.annotations.index.see_in_context') %> + <% end %> + +
+
+ +
- <%= render partial: '/comments/comment_tree', locals: { comment_tree: @comment_tree, comment_flags: @comment_flags } %> - + <%= render partial: '/comments/comment_tree', locals: { comment_tree: @comment_tree, comment_flags: @comment_flags } %>
-
-
diff --git a/config/locales/legislation.en.yml b/config/locales/legislation.en.yml index 4517e1f31..589c9e1fc 100644 --- a/config/locales/legislation.en.yml +++ b/config/locales/legislation.en.yml @@ -112,3 +112,4 @@ en: share_twitter: Share on Twitter share_facebook: Share on Facebook share_gplus: Share on Google+ + share_comment: Comment on %{version_name} from process draft %{process_name} diff --git a/config/locales/legislation.es.yml b/config/locales/legislation.es.yml index 1b91ef5c3..4343a9749 100644 --- a/config/locales/legislation.es.yml +++ b/config/locales/legislation.es.yml @@ -112,3 +112,4 @@ es: share_twitter: Compartir en Twitter share_facebook: Compartir en Facebook share_gplus: Compartir en Google+ + share_comment: Comentario sobre la %{version_name} del borrador del proceso %{process_name}