admin_interface 2.2.2 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/admin_interface.gemspec +15 -2
- data/app/inputs/country_code_input.rb +1 -1
- data/lib/admin_interface/version.rb +1 -1
- data/lib/generators/admin_interface/templates/setup/controllers/resource_controller.rb +3 -1
- data/vendor/assets/images/admin/files/csv.png +0 -0
- data/vendor/assets/stylesheets/admin_interface.css.scss +11 -1
- metadata +67 -2
data/admin_interface.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "admin_interface"
|
8
|
-
s.version = "2.2.
|
8
|
+
s.version = "2.2.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Joost Hietbrink"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-10-25"
|
13
13
|
s.description = "A Rails admin interface generator. Theme stolen from Redmine. Similar to web-app-theme but better ;)."
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.rdoc"
|
@@ -118,6 +118,7 @@ Gem::Specification.new do |s|
|
|
118
118
|
"vendor/assets/images/admin/feed.png",
|
119
119
|
"vendor/assets/images/admin/files/c.png",
|
120
120
|
"vendor/assets/images/admin/files/csharp.png",
|
121
|
+
"vendor/assets/images/admin/files/csv.png",
|
121
122
|
"vendor/assets/images/admin/files/default.png",
|
122
123
|
"vendor/assets/images/admin/files/image.png",
|
123
124
|
"vendor/assets/images/admin/files/pdf.png",
|
@@ -274,6 +275,10 @@ Gem::Specification.new do |s|
|
|
274
275
|
s.add_development_dependency(%q<geminabox>, [">= 0"])
|
275
276
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
276
277
|
s.add_development_dependency(%q<geminabox>, [">= 0"])
|
278
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
279
|
+
s.add_development_dependency(%q<geminabox>, [">= 0"])
|
280
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
281
|
+
s.add_development_dependency(%q<geminabox>, [">= 0"])
|
277
282
|
s.add_runtime_dependency(%q<kaminari>, [">= 0.12.4"])
|
278
283
|
s.add_runtime_dependency(%q<ransack>, [">= 0"])
|
279
284
|
s.add_runtime_dependency(%q<inherited_resources>, [">= 1.2.2"])
|
@@ -334,6 +339,10 @@ Gem::Specification.new do |s|
|
|
334
339
|
s.add_dependency(%q<geminabox>, [">= 0"])
|
335
340
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
336
341
|
s.add_dependency(%q<geminabox>, [">= 0"])
|
342
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
343
|
+
s.add_dependency(%q<geminabox>, [">= 0"])
|
344
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
345
|
+
s.add_dependency(%q<geminabox>, [">= 0"])
|
337
346
|
s.add_dependency(%q<kaminari>, [">= 0.12.4"])
|
338
347
|
s.add_dependency(%q<ransack>, [">= 0"])
|
339
348
|
s.add_dependency(%q<inherited_resources>, [">= 1.2.2"])
|
@@ -395,6 +404,10 @@ Gem::Specification.new do |s|
|
|
395
404
|
s.add_dependency(%q<geminabox>, [">= 0"])
|
396
405
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
397
406
|
s.add_dependency(%q<geminabox>, [">= 0"])
|
407
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
408
|
+
s.add_dependency(%q<geminabox>, [">= 0"])
|
409
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
410
|
+
s.add_dependency(%q<geminabox>, [">= 0"])
|
398
411
|
s.add_dependency(%q<kaminari>, [">= 0.12.4"])
|
399
412
|
s.add_dependency(%q<ransack>, [">= 0"])
|
400
413
|
s.add_dependency(%q<inherited_resources>, [">= 1.2.2"])
|
@@ -5,6 +5,6 @@
|
|
5
5
|
#
|
6
6
|
class CountryCodeInput < SimpleForm::Inputs::Base
|
7
7
|
def input
|
8
|
-
@builder.country_code_select(attribute_name, input_options.delete(:priority), input_html_options) #, priority_countries, options)
|
8
|
+
@builder.country_code_select(attribute_name, input_options.delete(:priority) || SimpleForm.country_priority, input_html_options) #, priority_countries, options)
|
9
9
|
end
|
10
10
|
end
|
@@ -18,7 +18,9 @@ protected
|
|
18
18
|
# Use meta_search and kaminari gem to load collection.
|
19
19
|
# Saves the per parameter to the user's session[:admin_per].
|
20
20
|
def collection
|
21
|
-
@search ||= end_of_association_chain
|
21
|
+
@search ||= end_of_association_chain
|
22
|
+
@search = @search.reorder('') if params[:q].present? && params[:q][:s].present? # We reorder to nothing if we have Ransack sort parameters.
|
23
|
+
@search = @search.ransack(params[:q])
|
22
24
|
get_collection_ivar || begin
|
23
25
|
session[:admin_per] = params[:per] || session[:admin_per] # Save the per_page to the user's session
|
24
26
|
c = @search.result.page(params[:page]).per(session[:admin_per])
|
Binary file
|
@@ -21,6 +21,13 @@ div.input {
|
|
21
21
|
padding: 5px 0 8px 180px;
|
22
22
|
}
|
23
23
|
|
24
|
+
/* Used to add below simple_form input and add extra info/links to an input */
|
25
|
+
div.input-extras {
|
26
|
+
margin: 0;
|
27
|
+
padding: 0 0 8px 180px;
|
28
|
+
margin-top:-6px;
|
29
|
+
}
|
30
|
+
|
24
31
|
/***** Custom additions to Redmine *****/
|
25
32
|
.icon-search { background-image: image-url('admin/search.png'); }
|
26
33
|
.icon-download { background-image: image-url('admin/download.png'); }
|
@@ -705,6 +712,7 @@ button.tab-right {
|
|
705
712
|
}
|
706
713
|
|
707
714
|
/***** Auto-complete *****/
|
715
|
+
/*
|
708
716
|
div.autocomplete {
|
709
717
|
position:absolute;
|
710
718
|
width:400px;
|
@@ -733,6 +741,7 @@ div.autocomplete ul li span.informal {
|
|
733
741
|
font-size: 80%;
|
734
742
|
color: #aaa;
|
735
743
|
}
|
744
|
+
*/
|
736
745
|
|
737
746
|
#parent_issue_candidates ul li {width: 500px;}
|
738
747
|
#related_issue_candidates ul li {width: 500px;}
|
@@ -955,6 +964,7 @@ padding-bottom: 3px;
|
|
955
964
|
.icon-file.text-x-csharp { background-image: image-url('admin/files/csharp.png'); }
|
956
965
|
.icon-file.text-x-php { background-image: image-url('admin/files/php.png'); }
|
957
966
|
.icon-file.text-x-ruby { background-image: image-url('admin/files/ruby.png'); }
|
967
|
+
.icon-file.text-csv { background-image: image-url('admin/files/csv.png'); }
|
958
968
|
.icon-file.text-xml { background-image: image-url('admin/files/xml.png'); }
|
959
969
|
.icon-file.image-gif { background-image: image-url('admin/files/image.png'); }
|
960
970
|
.icon-file.image-jpeg { background-image: image-url('admin/files/image.png'); }
|
@@ -1099,7 +1109,7 @@ input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hove
|
|
1099
1109
|
/* Fields */
|
1100
1110
|
input[type="text"], input[type="number"], input[type="tel"], input[type="email"], input[type="password"], input[type="url"], textarea, select { padding: 2px; border: 1px solid #d7d7d7; }
|
1101
1111
|
input[type="text"], input[type="password"] { padding: 3px; }
|
1102
|
-
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus { border: 1px solid #888866; }
|
1112
|
+
input[type="text"]:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="password"]:focus, textarea:focus, select:focus { border: 1px solid #888866; }
|
1103
1113
|
option { border-bottom: 1px dotted #d7d7d7; }
|
1104
1114
|
|
1105
1115
|
/* Misc */
|
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: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: admin_interface
|
@@ -859,6 +859,70 @@ dependencies:
|
|
859
859
|
- - ! '>='
|
860
860
|
- !ruby/object:Gem::Version
|
861
861
|
version: '0'
|
862
|
+
- !ruby/object:Gem::Dependency
|
863
|
+
name: jeweler
|
864
|
+
requirement: !ruby/object:Gem::Requirement
|
865
|
+
none: false
|
866
|
+
requirements:
|
867
|
+
- - ! '>='
|
868
|
+
- !ruby/object:Gem::Version
|
869
|
+
version: '0'
|
870
|
+
type: :development
|
871
|
+
prerelease: false
|
872
|
+
version_requirements: !ruby/object:Gem::Requirement
|
873
|
+
none: false
|
874
|
+
requirements:
|
875
|
+
- - ! '>='
|
876
|
+
- !ruby/object:Gem::Version
|
877
|
+
version: '0'
|
878
|
+
- !ruby/object:Gem::Dependency
|
879
|
+
name: geminabox
|
880
|
+
requirement: !ruby/object:Gem::Requirement
|
881
|
+
none: false
|
882
|
+
requirements:
|
883
|
+
- - ! '>='
|
884
|
+
- !ruby/object:Gem::Version
|
885
|
+
version: '0'
|
886
|
+
type: :development
|
887
|
+
prerelease: false
|
888
|
+
version_requirements: !ruby/object:Gem::Requirement
|
889
|
+
none: false
|
890
|
+
requirements:
|
891
|
+
- - ! '>='
|
892
|
+
- !ruby/object:Gem::Version
|
893
|
+
version: '0'
|
894
|
+
- !ruby/object:Gem::Dependency
|
895
|
+
name: jeweler
|
896
|
+
requirement: !ruby/object:Gem::Requirement
|
897
|
+
none: false
|
898
|
+
requirements:
|
899
|
+
- - ! '>='
|
900
|
+
- !ruby/object:Gem::Version
|
901
|
+
version: '0'
|
902
|
+
type: :development
|
903
|
+
prerelease: false
|
904
|
+
version_requirements: !ruby/object:Gem::Requirement
|
905
|
+
none: false
|
906
|
+
requirements:
|
907
|
+
- - ! '>='
|
908
|
+
- !ruby/object:Gem::Version
|
909
|
+
version: '0'
|
910
|
+
- !ruby/object:Gem::Dependency
|
911
|
+
name: geminabox
|
912
|
+
requirement: !ruby/object:Gem::Requirement
|
913
|
+
none: false
|
914
|
+
requirements:
|
915
|
+
- - ! '>='
|
916
|
+
- !ruby/object:Gem::Version
|
917
|
+
version: '0'
|
918
|
+
type: :development
|
919
|
+
prerelease: false
|
920
|
+
version_requirements: !ruby/object:Gem::Requirement
|
921
|
+
none: false
|
922
|
+
requirements:
|
923
|
+
- - ! '>='
|
924
|
+
- !ruby/object:Gem::Version
|
925
|
+
version: '0'
|
862
926
|
- !ruby/object:Gem::Dependency
|
863
927
|
name: kaminari
|
864
928
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1066,6 +1130,7 @@ files:
|
|
1066
1130
|
- vendor/assets/images/admin/feed.png
|
1067
1131
|
- vendor/assets/images/admin/files/c.png
|
1068
1132
|
- vendor/assets/images/admin/files/csharp.png
|
1133
|
+
- vendor/assets/images/admin/files/csv.png
|
1069
1134
|
- vendor/assets/images/admin/files/default.png
|
1070
1135
|
- vendor/assets/images/admin/files/image.png
|
1071
1136
|
- vendor/assets/images/admin/files/pdf.png
|