diff --git a/app/assets/images/annotator_help.gif b/app/assets/images/annotator_help.gif new file mode 100644 index 000000000..edad9de26 Binary files /dev/null and b/app/assets/images/annotator_help.gif differ diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index f4234fb13..c6d9c414c 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -213,6 +213,13 @@ a { border: 0; } +#drop-help.f-dropdown.content { + + @media (min-width: $small-breakpoint) { + max-width: $line-height*15; + } +} + // 02. Header // - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/views/legislations/show.html.erb b/app/views/legislations/show.html.erb index 546eaf6df..15dbf75db 100644 --- a/app/views/legislations/show.html.erb +++ b/app/views/legislations/show.html.erb @@ -1,4 +1,23 @@
+
+
+ + +
+
+
+ +
@@ -7,4 +26,3 @@
- diff --git a/config/locales/en.yml b/config/locales/en.yml index 77b7f4b6d..2a1df7ab8 100755 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -393,3 +393,10 @@ en: google_oauth2: sign_in: "Sign in with Google" sign_up: "Sign up with Google" + legislation: + help: + title: "How I can comment this document?" + text: "To comment this document you must %{sign_in} or %{sign_up}. Then select the text you want to comment and press the button with the pencil." + text_sign_in: "login" + text_sign_up: "sign up" + alt: "Select the text you want to comment and press the button with the pencil." \ No newline at end of file diff --git a/config/locales/es.yml b/config/locales/es.yml index 10296a768..9b7f0577a 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -393,3 +393,10 @@ es: google_oauth2: sign_in: "Entra con Google" sign_up: "Regístrate con Google" + legislation: + help: + title: "¿Cómo puedo comentar este documento?" + text: "Para comentar este documento debes %{sign_in} o %{sign_up}. Después selecciona el texto que quieres comentar y pulsa en el botón con el lápiz." + text_sign_in: "iniciar sesión" + text_sign_up: "registrarte" + alt: "Selecciona el texto que quieres comentar y pulsa en el botón con el lápiz." \ No newline at end of file