mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 08:31:41 +00:00
Acceder a la lista de consultas disponibles con la identidad de Sutty
This commit is contained in:
parent
7511afbf88
commit
ddc459130a
6 changed files with 43 additions and 1 deletions
|
@ -69,6 +69,13 @@ class ApplicationController < ActionController::Base
|
|||
redirect_to root_path
|
||||
return
|
||||
end
|
||||
|
||||
# Necesario para los breadcrumbs.
|
||||
ActionView::Base.include Loaf::ViewExtensions unless ActionView::Base.included_modules.include? Loaf::ViewExtensions
|
||||
|
||||
breadcrumb current_usuarie.email, main_app.edit_usuarie_registration_path
|
||||
breadcrumb 'sites.index', main_app.sites_path, match: :exact
|
||||
breadcrumb 'stats.index', root_path, match: :exact
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
9
app/views/blazer/queries/home.haml
Normal file
9
app/views/blazer/queries/home.haml
Normal file
|
@ -0,0 +1,9 @@
|
|||
#queries
|
||||
%table.table
|
||||
%tbody.list
|
||||
- @queries.each do |query|
|
||||
%tr
|
||||
-#
|
||||
Por alguna razón no tenemos acceso a query_path para poder
|
||||
generar la URL según Rails
|
||||
%td= link_to query[:name], "/sites/#{params[:site_id]}/stats/queries/#{query[:to_param]}"
|
|
@ -20,5 +20,5 @@
|
|||
role: 'button', class: 'btn'
|
||||
|
||||
%li.nav-item
|
||||
= link_to t('.logout'), destroy_usuarie_session_path,
|
||||
= link_to t('.logout'), main_app.destroy_usuarie_session_path,
|
||||
method: :delete, role: 'button', class: 'btn'
|
||||
|
|
14
app/views/layouts/blazer/application.haml
Normal file
14
app/views/layouts/blazer/application.haml
Normal file
|
@ -0,0 +1,14 @@
|
|||
!!!
|
||||
%html
|
||||
%head
|
||||
%meta{content: 'text/html; charset=UTF-8', 'http-equiv': 'Content-Type'}/
|
||||
%title= blazer_title ? blazer_title : 'Sutty'
|
||||
%meta{charset: 'utf-8'}/
|
||||
= favicon_link_tag 'blazer/favicon.png'
|
||||
= stylesheet_link_tag 'application'
|
||||
= javascript_pack_tag 'blazer', 'data-turbolinks-track': 'reload'
|
||||
= csrf_meta_tags
|
||||
%body{ class: yield(:body) }
|
||||
.container-fluid#sutty
|
||||
= render 'layouts/breadcrumb'
|
||||
= yield
|
|
@ -576,3 +576,9 @@ en:
|
|||
edit: 'Editing'
|
||||
usuaries:
|
||||
index: 'Users'
|
||||
stats:
|
||||
index: 'Statistics'
|
||||
blazer:
|
||||
queries:
|
||||
show:
|
||||
empty: '(empty)'
|
||||
|
|
|
@ -584,3 +584,9 @@ es:
|
|||
edit: 'Editando'
|
||||
usuaries:
|
||||
index: 'Usuaries'
|
||||
stats:
|
||||
index: 'Estadísticas'
|
||||
blazer:
|
||||
queries:
|
||||
show:
|
||||
empty: '(vacío)'
|
||||
|
|
Loading…
Reference in a new issue