adminsite 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b9917bb89c1758f5b912fe378a321ccb2dfcf3f
4
- data.tar.gz: 82c75a8124b52e800be93fda790763d22e10a3a6
3
+ metadata.gz: 06c18d1d88578bccb15d3f24022297b7cae33c26
4
+ data.tar.gz: 2dda15695344d571481cd23d58814fe487d368e7
5
5
  SHA512:
6
- metadata.gz: 1999291d4c58aeb799090c5c1676502618d23ca20447f033212d2ee8d8f02ab7f2eed693d48aaa7fd80d0871b723f2a54006c507e91157966dd3cae425eb1191
7
- data.tar.gz: 0dba034c1993f29dccc1a8e69dab4041287f5cc2ccc86b8137cbcfc07972b9af0c9ee005b2a2701cc1517c32ae668fd84364502d56a00ba9c39b1b51ea912768
6
+ metadata.gz: d2daf28f2f355c5c56bbbd5b7de46d541f6eb15d68acb0cbd91debd4c0bd247f21e701e18aa116651adc2244545dc8d5bc768bb94ddb0c8e3ebc4ffe146e0d00
7
+ data.tar.gz: 550493a1d5b4f0b3025e14235a4cb604a9b2aa8e369af220e20c688f49daf29bad060a075916666c6523cc7cc5aafed2debb39378a48143c04888b9b6f92b16a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- adminsite (3.1.1)
4
+ adminsite (3.1.2)
5
5
  actionpack-page_caching
6
6
  cancancan (~> 1.10)
7
7
  codemirror-rails (>= 4.8)
@@ -0,0 +1,13 @@
1
+ class Adminsite::Admin::DashboardController < Adminsite::Admin::CrudController
2
+
3
+ def index
4
+
5
+ end
6
+
7
+ private
8
+
9
+ class << self
10
+
11
+ end
12
+
13
+ end
@@ -11,4 +11,9 @@ class Adminsite::AdminUserSessionsController < Devise::SessionsController
11
11
  new_adminsite_admin_user_session_path
12
12
  end
13
13
 
14
+ def after_sign_in_path_for(resource_or_scope)
15
+ params[:redirect_to] || session["adminsite_admin_user_return_to"] || admin_dashboard_index_path
16
+ end
17
+
18
+
14
19
  end
@@ -1,4 +1,5 @@
1
1
  - content_for :header_left do
2
2
  = controller_name
3
3
 
4
- please override in '/app/views/adminsite/admin/#{controller_name}/index.html.haml'
4
+ - if Rails.env.development?
5
+ please override in '/app/views/adminsite/admin/#{controller_name}/index.html.haml'
@@ -3,7 +3,8 @@
3
3
  - content_for :header_right do
4
4
  = link_to_back 'Back', url_for(controller: controller_name, action: :index )
5
5
 
6
- please override in '/app/views/adminsite/admin/#{controller_name}/show.html.haml'
6
+ - if Rails.env.development?
7
+ please override in '/app/views/adminsite/admin/#{controller_name}/show.html.haml'
7
8
 
8
9
  //.formtastic
9
10
  // %table
@@ -1,5 +1,6 @@
1
1
  #admin_menu.menu
2
2
  %ul
3
+ = menu_item 'Dashboard', admin_dashboard_index_path , ['dashboard']
3
4
  = yield :admin_menu
4
5
  %ul
5
6
  = menu_item 'Log out', destroy_adminsite_admin_user_session_path, ['admin_user_sessions'], 'log_out', :delete
@@ -1,3 +1,3 @@
1
1
  module Adminsite
2
- VERSION = "3.1.1" unless defined?(Adminsite::VERSION)
2
+ VERSION = "3.1.2" unless defined?(Adminsite::VERSION)
3
3
  end
@@ -1,6 +1,5 @@
1
1
  - content_for :header_left do
2
2
  Dashboard
3
3
 
4
-
5
- Override Me !!!
6
- please override in '/app/views/adminsite/admin/#{controller_name}/index.html.haml'
4
+ - if Rails.env.development?
5
+ please override in '/app/views/adminsite/admin/#{controller_name}/index.html.haml'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adminsite
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin Wunderlin
@@ -286,6 +286,7 @@ files:
286
286
  - app/controllers/adminsite/admin/adminsite_pages_controller.rb
287
287
  - app/controllers/adminsite/admin/base_controller.rb
288
288
  - app/controllers/adminsite/admin/crud_controller.rb
289
+ - app/controllers/adminsite/admin/dashbord_controller.rb
289
290
  - app/controllers/adminsite/admin/iframe_controller.rb
290
291
  - app/controllers/adminsite/admin/resources_controller.rb
291
292
  - app/controllers/adminsite/admin_application_controller.rb