From 28a658319918fe62eb2cfb3e2d36c817871cf9ab Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 15 Sep 2017 13:04:14 +0200 Subject: [PATCH 1/9] removes untranslated texts on admin dashboard index --- app/views/admin/dashboard/index.html.erb | 87 ------------------------ 1 file changed, 87 deletions(-) diff --git a/app/views/admin/dashboard/index.html.erb b/app/views/admin/dashboard/index.html.erb index 2a2ed1c56..3d56b1f14 100644 --- a/app/views/admin/dashboard/index.html.erb +++ b/app/views/admin/dashboard/index.html.erb @@ -10,90 +10,3 @@

<%= t("admin.dashboard.index.title") %>

-

Desde aquí puedes administrar el sistema, a través de las siguientes acciones:

- -
- -
From 8ed791e86023b14a12c0acbee25aecb01ee9306b Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 15 Sep 2017 13:04:52 +0200 Subject: [PATCH 2/9] includes description text on admin dashboard index --- app/views/admin/dashboard/index.html.erb | 6 ++++++ config/locales/en/admin.yml | 1 + config/locales/es/admin.yml | 1 + 3 files changed, 8 insertions(+) diff --git a/app/views/admin/dashboard/index.html.erb b/app/views/admin/dashboard/index.html.erb index 3d56b1f14..94f7c767b 100644 --- a/app/views/admin/dashboard/index.html.erb +++ b/app/views/admin/dashboard/index.html.erb @@ -7,6 +7,12 @@ <%= t("admin.menu.stats") %> <% end %> +
+ <%= link_to root_path do %> + <%= t("admin.dashboard.index.back") + " " + setting['org_name'] %> + <% end %> +

<%= t("admin.dashboard.index.title") %>

+

<%= t("admin.dashboard.index.description", org: setting['org_name']) %>

diff --git a/config/locales/en/admin.yml b/config/locales/en/admin.yml index 91b493ffa..ca9a543e9 100644 --- a/config/locales/en/admin.yml +++ b/config/locales/en/admin.yml @@ -216,6 +216,7 @@ en: index: back: Go back to title: Administration + description: Welcome to the %{org} admin panel. debates: index: filter: Filter diff --git a/config/locales/es/admin.yml b/config/locales/es/admin.yml index 2db094999..7d768e4d9 100644 --- a/config/locales/es/admin.yml +++ b/config/locales/es/admin.yml @@ -216,6 +216,7 @@ es: index: back: Volver a title: Administración + description: Bienvenido al panel de administración de %{org}. debates: index: filter: Filtro From 90f2b848562a1cc212f39a30967a2edc43c86036 Mon Sep 17 00:00:00 2001 From: decabeza Date: Fri, 15 Sep 2017 13:05:46 +0200 Subject: [PATCH 3/9] improves admin header layout --- app/views/layouts/_admin_header.html.erb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/views/layouts/_admin_header.html.erb b/app/views/layouts/_admin_header.html.erb index bd4f09074..c7dba228f 100644 --- a/app/views/layouts/_admin_header.html.erb +++ b/app/views/layouts/_admin_header.html.erb @@ -2,31 +2,27 @@
- <%= link_to setting['org_name'], namespaced_root_path, class: "logo show-for-small-only" %> - <%= t("application.menu")%> -
+

- <%= link_to namespaced_root_path, class: "hide-for-small-only" do %> - <%= image_tag(image_path_for('logo_header.png'), class: 'hide-for-small-only float-left', size: '80x80', alt: t("layouts.header.logo")) %> + <%= link_to namespaced_root_path do %> <%= setting['org_name'] %> -  | <%= namespaced_header_title %> +
<%= namespaced_header_title %> <% end %>

+