admin/logs viewer implemented
This commit is contained in:
parent
79bf7a2276
commit
b1dbcef80b
8 changed files with 27 additions and 15 deletions
|
|
@ -1,2 +0,0 @@
|
|||
h1 Admin#integration
|
||||
p Find me in app/views/admin/integration.html.slim
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
.grid-x
|
||||
.small-6.medium-8.large-9.cell
|
||||
// Paginator
|
||||
= render 'logs/paginator'
|
||||
= render 'admin/logs/paginator'
|
||||
|
||||
.small-6.medium-4.large-3.cell
|
||||
// Search form
|
||||
|
|
@ -18,10 +18,10 @@
|
|||
th Message
|
||||
- @logs.each do |log|
|
||||
tr
|
||||
th =log.created_at
|
||||
th =log.message
|
||||
td =log.created_at
|
||||
td =log.message
|
||||
- else
|
||||
p No logs found. Crazy.
|
||||
|
||||
// Second paginator at the bottom so the user does not have to scroll up again
|
||||
= render 'logs/paginator'
|
||||
= render 'admin/logs/paginator'
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
h1 Admin#screenshots
|
||||
p Find me in app/views/admin/screenshots.html.slim
|
||||
|
|
@ -42,16 +42,19 @@ nav.top-bar
|
|||
// TODO: Check correct classes in Zurb/Foundation for top bar!
|
||||
- if user_signed_in? and current_user.is_admin?
|
||||
li.menu-text
|
||||
a href='#' Admin
|
||||
/ ul.menu.vertical
|
||||
/ li = link_to 'Moderate', moderate_path
|
||||
/ li = link_to 'Logs', logs_path
|
||||
ul.menu.dropdown data-dropdown-menu=true
|
||||
li
|
||||
a href='#' Admin
|
||||
ul.menu
|
||||
/ li = link_to 'Health', admin_health_path
|
||||
li = link_to 'Logs', admin_logs_path
|
||||
/ li = link_to 'Users', admin_users_pathlogs_path
|
||||
.top-bar-right
|
||||
ul.menu
|
||||
li.menu-text class=('active' if controller_name=='my')
|
||||
- if user_signed_in?
|
||||
= link_to my_profile_path
|
||||
= image_tag "/images/sso/icons/#{current_user.provider}.svg", width: 20
|
||||
/ = image_tag "/images/sso/icons/#{current_user.provider}.svg", width: 20
|
||||
' My
|
||||
- else
|
||||
= link_to 'Login', new_user_session_path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue