Merge pull request #1417 from consul/admin_main_link
Main link in namespaces
This commit is contained in:
@@ -4,6 +4,14 @@ module AdminHelper
|
|||||||
render "/#{namespace}/menu"
|
render "/#{namespace}/menu"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def namespaced_root_path
|
||||||
|
"/#{namespace}"
|
||||||
|
end
|
||||||
|
|
||||||
|
def namespaced_header_title
|
||||||
|
t("#{namespace}.header.title")
|
||||||
|
end
|
||||||
|
|
||||||
def menu_tags?
|
def menu_tags?
|
||||||
["tags"].include? controller_name
|
["tags"].include? controller_name
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<div class="expanded row">
|
<div class="expanded row">
|
||||||
<div class="top-bar">
|
<div class="top-bar">
|
||||||
|
|
||||||
<%= link_to setting['org_name'], admin_root_path, class: "logo show-for-small-only" %>
|
<%= link_to setting['org_name'], namespaced_root_path, class: "logo show-for-small-only" %>
|
||||||
|
|
||||||
<span data-responsive-toggle="responsive-menu" data-hide-for="medium" class="float-right">
|
<span data-responsive-toggle="responsive-menu" data-hide-for="medium" class="float-right">
|
||||||
<span class="menu-icon dark" data-toggle></span>
|
<span class="menu-icon dark" data-toggle></span>
|
||||||
@@ -20,10 +20,10 @@
|
|||||||
<div id="responsive-menu">
|
<div id="responsive-menu">
|
||||||
<div class="top-bar-title">
|
<div class="top-bar-title">
|
||||||
<h1>
|
<h1>
|
||||||
<%= link_to admin_root_path, class: "hide-for-small-only" do %>
|
<%= link_to namespaced_root_path, class: "hide-for-small-only" do %>
|
||||||
<%= image_tag('logo_header.png', class: 'hide-for-small-only float-left', size: '80x80', alt: t("layouts.header.logo")) %>
|
<%= image_tag('logo_header.png', class: 'hide-for-small-only float-left', size: '80x80', alt: t("layouts.header.logo")) %>
|
||||||
<%= setting['org_name'] %>
|
<%= setting['org_name'] %>
|
||||||
| <%= t("admin.dashboard.index.title") %>
|
| <%= namespaced_header_title %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
en:
|
en:
|
||||||
admin:
|
admin:
|
||||||
|
header:
|
||||||
|
title: Administration
|
||||||
actions:
|
actions:
|
||||||
actions: Actions
|
actions: Actions
|
||||||
confirm: Are you sure?
|
confirm: Are you sure?
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
es:
|
es:
|
||||||
admin:
|
admin:
|
||||||
|
header:
|
||||||
|
title: Administración
|
||||||
actions:
|
actions:
|
||||||
actions: Acciones
|
actions: Acciones
|
||||||
confirm: "¿Estás seguro?"
|
confirm: "¿Estás seguro?"
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
en:
|
en:
|
||||||
moderation:
|
moderation:
|
||||||
|
header:
|
||||||
|
title: Moderation
|
||||||
comments:
|
comments:
|
||||||
index:
|
index:
|
||||||
block_authors: Block authors
|
block_authors: Block authors
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
es:
|
es:
|
||||||
moderation:
|
moderation:
|
||||||
|
header:
|
||||||
|
title: Moderación
|
||||||
comments:
|
comments:
|
||||||
index:
|
index:
|
||||||
block_authors: Bloquear autores
|
block_authors: Bloquear autores
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
en:
|
en:
|
||||||
officing:
|
officing:
|
||||||
|
header:
|
||||||
|
title: Polling
|
||||||
dashboard:
|
dashboard:
|
||||||
index:
|
index:
|
||||||
title: Poll officing
|
title: Poll officing
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
es:
|
es:
|
||||||
officing:
|
officing:
|
||||||
|
header:
|
||||||
|
title: Votaciones
|
||||||
dashboard:
|
dashboard:
|
||||||
index:
|
index:
|
||||||
title: Presidir mesa de votaciones
|
title: Presidir mesa de votaciones
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
en:
|
en:
|
||||||
valuation:
|
valuation:
|
||||||
|
header:
|
||||||
|
title: Valuation
|
||||||
menu:
|
menu:
|
||||||
title: Valuation
|
title: Valuation
|
||||||
budgets: Participatory budgets
|
budgets: Participatory budgets
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
es:
|
es:
|
||||||
valuation:
|
valuation:
|
||||||
|
header:
|
||||||
|
title: Evaluación
|
||||||
menu:
|
menu:
|
||||||
title: Evaluación
|
title: Evaluación
|
||||||
budgets: Presupuestos participativos
|
budgets: Presupuestos participativos
|
||||||
|
|||||||
Reference in New Issue
Block a user