implement pgHero
This commit is contained in:
parent
107bbb3aeb
commit
683ce43294
1
Gemfile
1
Gemfile
|
@ -47,6 +47,7 @@ gem 'twemoji-rails'
|
||||||
gem 'ruby-progressbar'
|
gem 'ruby-progressbar'
|
||||||
|
|
||||||
gem 'rails_admin'
|
gem 'rails_admin'
|
||||||
|
gem 'pghero'
|
||||||
|
|
||||||
gem 'sidekiq'
|
gem 'sidekiq'
|
||||||
gem 'sinatra', require: false
|
gem 'sinatra', require: false
|
||||||
|
|
|
@ -295,6 +295,8 @@ GEM
|
||||||
cocaine (~> 0.5.3)
|
cocaine (~> 0.5.3)
|
||||||
mime-types
|
mime-types
|
||||||
pg (0.18.1)
|
pg (0.18.1)
|
||||||
|
pghero (1.1.1)
|
||||||
|
activerecord
|
||||||
poltergeist (1.6.0)
|
poltergeist (1.6.0)
|
||||||
capybara (~> 2.1)
|
capybara (~> 2.1)
|
||||||
cliver (~> 0.3.1)
|
cliver (~> 0.3.1)
|
||||||
|
@ -528,6 +530,7 @@ DEPENDENCIES
|
||||||
omniauth-twitter
|
omniauth-twitter
|
||||||
paperclip (~> 4.2)
|
paperclip (~> 4.2)
|
||||||
pg
|
pg
|
||||||
|
pghero
|
||||||
poltergeist
|
poltergeist
|
||||||
questiongenerator!
|
questiongenerator!
|
||||||
rails (= 4.2.1)
|
rails (= 4.2.1)
|
||||||
|
@ -561,3 +564,6 @@ DEPENDENCIES
|
||||||
web-console
|
web-console
|
||||||
will_paginate
|
will_paginate
|
||||||
will_paginate-bootstrap
|
will_paginate-bootstrap
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
1.10.6
|
||||||
|
|
|
@ -24,6 +24,11 @@
|
||||||
%a{href: sidekiq_web_path}
|
%a{href: sidekiq_web_path}
|
||||||
%i.fa.fa-fw.fa-bar-chart
|
%i.fa.fa-fw.fa-bar-chart
|
||||||
= t('views.navigation.sidekiq')
|
= t('views.navigation.sidekiq')
|
||||||
|
%li
|
||||||
|
%a{href: pghero_path}
|
||||||
|
%i.fa.fa-fw.fa-database
|
||||||
|
Database Monitor
|
||||||
|
%li.divider
|
||||||
- if current_user.mod?
|
- if current_user.mod?
|
||||||
%li
|
%li
|
||||||
%a{href: moderation_path}
|
%a{href: moderation_path}
|
||||||
|
|
|
@ -8,6 +8,7 @@ Rails.application.routes.draw do
|
||||||
constraints ->(req) { req.env["warden"].authenticate?(scope: :user) &&
|
constraints ->(req) { req.env["warden"].authenticate?(scope: :user) &&
|
||||||
req.env['warden'].user.admin? } do
|
req.env['warden'].user.admin? } do
|
||||||
mount Sidekiq::Web, at: "/sidekiq"
|
mount Sidekiq::Web, at: "/sidekiq"
|
||||||
|
mount PgHero::Engine, at: "/pghero", as: 'pghero'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Moderation panel
|
# Moderation panel
|
||||||
|
|
Loading…
Reference in New Issue