th_simple_admin_panel 0.0.5 → 0.0.6

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmM5ZmQzNTU5MTM2MzhiMDkzOWY5NzI4MmYyYTVmODZmZGNiMWRmYQ==
4
+ NzA5ODEwYzJmOTQ2N2UwOGI3ZDhhODJiNjc3YzNmNTNiZDNmMjg5NQ==
5
5
  data.tar.gz: !binary |-
6
- ZWI1YmE5NTE1NDFkMzc0YzliZTBmYWNhZjgwMTFmZGZkZTg0YWQxYw==
6
+ NTdjYTlhMjUxMGZjOGRlNTQ4ZGM0NzU5N2E5ODJjMzE4Yjg2NGRlYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjRjNmVjYjlmOTJjMWM3M2JiMjBkOTE1MzMyNzIyYzRlMzljNzBlNjRjZTFj
10
- MzgzNjYzNjVkMWUxNjExMTVlOWQwZGYwZTg4NWFkZTUyYWIzM2Y1YmM4OWYw
11
- MDZkYmRhMDEyMGM4NWM4MGNhMGZjOWI4MzNiMzMzOWY0NDZlMzE=
9
+ NzA2NTFjNzEzMmY3NTU5N2RkM2VkNjg0NGJjYTU4Yjc2NWI5MDBmYzMxZDQx
10
+ M2M3MGM4YWVhZTc3NDhhZWQ5NzYyZTE4YWMyZjgxNDAyZDI2ZWI4YmFhZTQw
11
+ MGVjOGE2OGJiNWFiYTQyZDlmYTkzNTlkYjViMDRkYWMyMTE2MjE=
12
12
  data.tar.gz: !binary |-
13
- ZDA3OTdiMjQyOThmZWYxZGM2Y2RkYzkwZGQ5NjYzNDI5YTQxNDZiZGZlNjhi
14
- ZDNlMTViMTcyOWMxZDY2MmJjYWZlM2UxZDFiNmQ1YTI5MmNlMTIzZDM5M2Qz
15
- NzgzZTYxNGExOGM1N2JiZWU4ODFlNjJiZjBmNmFkZDI5NWE0Y2I=
13
+ NGNhMGNmMDc5ODY3MDhkM2MyZDU2YTAzNTJmMjExMmMxYzcxMzFlMmRkZjBk
14
+ NTA1NjNkOWE5MGUxY2Q2NjlmYTk0MTFlMzczNjE4MjUwYzljMWE1YzRjNjEw
15
+ OWZlZTliOTM4MzE2Zjg5NjE4YjRjODhiM2U4YzIyMzI5ZWFlZGE=
@@ -2,6 +2,5 @@
2
2
  //= require jquery_ujs
3
3
  //
4
4
  //= require bootstrap
5
- // require holder // don't know this one
6
5
  //
7
6
  //= require_self
@@ -1,3 +1,17 @@
1
+ .table td.text-right {
2
+ text-align: right;
3
+ }
4
+
5
+ .static-popover {
6
+ position: relative;
7
+ display: block;
8
+ float: left;
9
+
10
+ .popover-content {
11
+ padding: 3px 14px;
12
+ }
13
+ }
14
+
1
15
  ul.breadcrumb li.pull-right {
2
16
  margin-left: 3px;
3
17
  }
@@ -7,9 +7,16 @@ module SimpleAdminPanel::ControllerExtensions
7
7
  with_role :admin if self.is_a? InheritedResources::Base
8
8
  before_filter :authenticate_user!
9
9
  before_filter :require_admin
10
+ before_filter :require_active
10
11
  end
11
12
 
12
13
  protected
14
+ def require_active
15
+ return if current_user.active
16
+ flash["error"] = "Deze pagina is alleen toegankelijk voor actieve gebruikers."
17
+ redirect_to root_path
18
+ end
19
+
13
20
  def require_admin
14
21
  return if current_user.admin
15
22
  flash["error"] = "Deze pagina is alleen toegankelijk voor admins."
@@ -1,3 +1,3 @@
1
1
  module SimpleAdminPanel
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -1,10 +1,11 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag "application", :media => "all" %>
6
- <%= javascript_include_tag "application" %>
7
- <%= csrf_meta_tags %>
4
+ <title>Dummy</title>
5
+ <meta charset="utf-8">
6
+ <%= stylesheet_link_tag "application", :media => "all" %>
7
+ <%= javascript_include_tag "application" %>
8
+ <%= csrf_meta_tags %>
8
9
  </head>
9
10
  <body>
10
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: th_simple_admin_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Hinloopen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-19 00:00:00.000000000 Z
11
+ date: 2014-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: kaminari
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: Base admin panel.
56
70
  email:
57
71
  - toby@kutcomputers.nl
@@ -61,8 +75,6 @@ extra_rdoc_files: []
61
75
  files:
62
76
  - app/assets/javascripts/simple_admin_panel.js
63
77
  - app/assets/stylesheets/admin/layout.css.scss
64
- - app/assets/stylesheets/shared/layout.css.scss
65
- - app/assets/stylesheets/shared.css.scss
66
78
  - app/controllers/simple_admin_panel/application_controller.rb
67
79
  - app/helpers/simple_admin_panel/breadcrumb_helper.rb
68
80
  - app/views/layouts/simple_admin_panel/_alert.html.erb
@@ -1,33 +0,0 @@
1
- h1 {
2
- font-size: 20pt;
3
- }
4
-
5
- h2 {
6
- font-size: 16pt;
7
- }
8
-
9
- h3 {
10
- font-size: 12pt;
11
- }
12
-
13
- h1, h2, h3 {
14
- line-height: 1em;
15
- }
16
-
17
- body, html {
18
- font-size: 10pt;
19
- }
20
-
21
- .table td.text-right {
22
- text-align: right;
23
- }
24
-
25
- .static-popover {
26
- position: relative;
27
- display: block;
28
- float: left;
29
-
30
- .popover-content {
31
- padding: 3px 14px;
32
- }
33
- }
@@ -1 +0,0 @@
1
- @import "shared/layout"