admin_interface 1.3.1 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/admin_interface.gemspec +1 -1
- data/{lib/generators/admin_interface/templates → app}/helpers/admin/base_helper.rb +1 -1
- data/lib/admin_interface.rb +6 -0
- data/lib/generators/admin_interface/admin_interface_generator.rb +4 -3
- data/vendor/assets/images/admin/call.gif +0 -0
- data/vendor/assets/images/admin/call_in.png +0 -0
- data/vendor/assets/images/admin/call_out.png +0 -0
- data/vendor/assets/stylesheets/admin_interface.css.scss +5 -0
- metadata +13 -10
data/admin_interface.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "admin_interface"
|
6
|
-
spec.version = '1.
|
6
|
+
spec.version = '1.4.1'
|
7
7
|
spec.platform = Gem::Platform::RUBY
|
8
8
|
spec.summary = "A Rails admin interface generator. Theme stolen from Redmine."
|
9
9
|
spec.email = "joost@joopp.com"
|
@@ -56,7 +56,7 @@ module Admin::BaseHelper
|
|
56
56
|
first = collection.offset_value + 1
|
57
57
|
last = [collection.offset_value + collection.limit_value, collection.total_count].min
|
58
58
|
total = collection.total_count
|
59
|
-
html = I18n.t('views.pagination_info', :default => "(%{first}-%{last}/%{total})", :first => first, :last => last, :total => total)
|
59
|
+
html = I18n.t('views.pagination_info', :default => "(%{first}-%{last}/%{total})", :first => number_with_delimiter(first), :last => number_with_delimiter(last), :total => number_with_delimiter(total))
|
60
60
|
content_tag(:nav, html.html_safe, :class => 'pagination info').html_safe
|
61
61
|
end
|
62
62
|
|
data/lib/admin_interface.rb
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
module AdminInterface
|
3
3
|
|
4
4
|
class Engine < ::Rails::Engine
|
5
|
+
# Load translations
|
6
|
+
I18n.load_path += Dir.glob( File.expand_path("locales/*.{rb,yml}", File.dirname(__FILE__)) )
|
7
|
+
|
8
|
+
# Load helpers
|
9
|
+
# FIXME: Does this work correctly with __FILE__ instead of File.dirname(__FILE__)
|
10
|
+
config.autoload_paths << File.expand_path("../../../app/helpers", __FILE__)
|
5
11
|
end
|
6
12
|
|
7
13
|
end
|
@@ -27,9 +27,10 @@ class AdminInterfaceGenerator < Rails::Generators::Base
|
|
27
27
|
# copy_file("views/admin.css", "public/stylesheets/admin.css")
|
28
28
|
# end
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
# Helper files are kept in the Engine Gem.
|
31
|
+
# def copy_helper_files
|
32
|
+
# copy_file("helpers/admin/base_helper.rb", "app/helpers/admin/base_helper.rb")
|
33
|
+
# end
|
33
34
|
|
34
35
|
def add_admin_route
|
35
36
|
route <<ROUTE
|
Binary file
|
Binary file
|
Binary file
|
@@ -14,6 +14,7 @@ div.input {
|
|
14
14
|
height: 1%;
|
15
15
|
margin: 0;
|
16
16
|
padding: 5px 0 8px 180px;
|
17
|
+
border: 1px solid #D7D7D7;
|
17
18
|
}
|
18
19
|
|
19
20
|
/***** Custom additions to Redmine *****/
|
@@ -893,6 +894,7 @@ padding-bottom: 3px;
|
|
893
894
|
.icon-package { background-image: asset_url('admin/package.png', image); }
|
894
895
|
.icon-home { background-image: asset_url('admin/home.png', image); }
|
895
896
|
.icon-user { background-image: asset_url('admin/user.png', image); }
|
897
|
+
.icon-user-go { background-image: asset_url('admin/user_go.png', image); }
|
896
898
|
.icon-projects { background-image: asset_url('admin/projects.png', image); }
|
897
899
|
.icon-help { background-image: asset_url('admin/help.png', image); }
|
898
900
|
.icon-attachment { background-image: asset_url('admin/attachment.png', image); }
|
@@ -916,6 +918,9 @@ padding-bottom: 3px;
|
|
916
918
|
.icon-zoom-in { background-image: asset_url('admin/zoom_in.png', image); }
|
917
919
|
.icon-zoom-out { background-image: asset_url('admin/zoom_out.png', image); }
|
918
920
|
.icon-changeset { background-image: asset_url('admin/changeset.png', image); }
|
921
|
+
.icon-call { background-image: asset_url('admin/call.gif', image); }
|
922
|
+
.icon-call-in { background-image: asset_url('admin/call_in.png', image); }
|
923
|
+
.icon-call-out { background-image: asset_url('admin/call_out.png', image); }
|
919
924
|
|
920
925
|
.icon-file { background-image: asset_url('admin/files/default.png', image); }
|
921
926
|
.icon-file.text-plain { background-image: asset_url('admin/files/text.png', image); }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: admin_interface
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-02-08 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: kaminari
|
16
|
-
requirement: &
|
16
|
+
requirement: &70111143901980 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.12.4
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70111143901980
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: ransack
|
27
|
-
requirement: &
|
27
|
+
requirement: &70111143901580 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70111143901580
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: inherited_resources
|
38
|
-
requirement: &
|
38
|
+
requirement: &70111143901040 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 1.2.2
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70111143901040
|
47
47
|
description: A Rails admin interface generator. Theme stolen from Redmine. Similar
|
48
48
|
to web-app-theme but better ;).
|
49
49
|
email: joost@joopp.com
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- .gitignore
|
55
55
|
- README.rdoc
|
56
56
|
- admin_interface.gemspec
|
57
|
+
- app/helpers/admin/base_helper.rb
|
57
58
|
- doc/screenshot.png
|
58
59
|
- lib/admin_interface.rb
|
59
60
|
- lib/generators/admin_interface/USAGE
|
@@ -61,7 +62,6 @@ files:
|
|
61
62
|
- lib/generators/admin_interface/templates/INSTALL
|
62
63
|
- lib/generators/admin_interface/templates/controllers/base_controller.rb
|
63
64
|
- lib/generators/admin_interface/templates/controllers/resource_controller.rb
|
64
|
-
- lib/generators/admin_interface/templates/helpers/admin/base_helper.rb
|
65
65
|
- lib/generators/admin_interface/templates/views/index.html.erb
|
66
66
|
- lib/generators/admin_interface/templates/views/layout.html.erb
|
67
67
|
- lib/generators/admin_scaffold/USAGE
|
@@ -147,6 +147,9 @@ files:
|
|
147
147
|
- vendor/assets/images/admin/bullet_toggle_minus.png
|
148
148
|
- vendor/assets/images/admin/bullet_toggle_plus.png
|
149
149
|
- vendor/assets/images/admin/calendar.png
|
150
|
+
- vendor/assets/images/admin/call.gif
|
151
|
+
- vendor/assets/images/admin/call_in.png
|
152
|
+
- vendor/assets/images/admin/call_out.png
|
150
153
|
- vendor/assets/images/admin/cancel.png
|
151
154
|
- vendor/assets/images/admin/changeset.png
|
152
155
|
- vendor/assets/images/admin/close.png
|
@@ -271,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
274
|
version: '0'
|
272
275
|
requirements: []
|
273
276
|
rubyforge_project:
|
274
|
-
rubygems_version: 1.8.
|
277
|
+
rubygems_version: 1.8.15
|
275
278
|
signing_key:
|
276
279
|
specification_version: 3
|
277
280
|
summary: A Rails admin interface generator. Theme stolen from Redmine.
|