customize_admin 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/customize_admin/bootstrap.js.coffee +4 -19
- data/app/assets/stylesheets/customize_admin/application.css +1 -1
- data/app/assets/stylesheets/customize_admin/application.css~ +183 -0
- data/app/assets/stylesheets/customize_admin/bootstrap_and_overrides.css.less +33 -0
- data/app/controllers/customize_admin/application_controller.rb +5 -0
- data/app/views/customize_admin/base/_all_form_inputs.html.erb +0 -1
- data/app/views/customize_admin/base/_form.html.erb +1 -1
- data/app/views/layouts/customize_admin/application.html.erb +4 -2
- data/config/initializers/locale.rb +1 -0
- data/lib/customize_admin/version.rb +1 -1
- data/lib/generators/customize_admin/install/install_generator.rb +7 -3
- metadata +6 -80
@@ -1,19 +1,4 @@
|
|
1
|
-
|
2
|
-
$("
|
3
|
-
$
|
4
|
-
$("
|
5
|
-
$ ->
|
6
|
-
$("a[rel=twipsy]").twipsy live: true
|
7
|
-
$ ->
|
8
|
-
$("a[rel=popover]").popover offset: 10
|
9
|
-
$ ->
|
10
|
-
$(".topbar-wrapper").dropdown()
|
11
|
-
$ ->
|
12
|
-
$(".alert-message").alert()
|
13
|
-
$ ->
|
14
|
-
domModal = $(".modal").modal(
|
15
|
-
backdrop: true
|
16
|
-
closeOnEscape: true
|
17
|
-
)
|
18
|
-
$(".open-modal").click ->
|
19
|
-
domModal.toggle()
|
1
|
+
jQuery ->
|
2
|
+
$("a[rel=popover]").popover()
|
3
|
+
$(".tooltip").tooltip()
|
4
|
+
$("a[rel=tooltip]").tooltip()
|
@@ -0,0 +1,183 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
+
* and any sub-directories. You're free to add application-w
|
4
|
+
ide styles to this file and they'll appear at
|
5
|
+
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
6
|
+
*= require_self
|
7
|
+
*/
|
8
|
+
.page{
|
9
|
+
margin-top: 50px;
|
10
|
+
}
|
11
|
+
.content{
|
12
|
+
width: 940px;
|
13
|
+
margin-left: auto;
|
14
|
+
margin-right: auto;
|
15
|
+
}
|
16
|
+
|
17
|
+
.link_white, a{
|
18
|
+
color: #ffffff;
|
19
|
+
}
|
20
|
+
.link_white, a:hover, a:active, a:focus{
|
21
|
+
color: #ffffff;
|
22
|
+
}
|
23
|
+
form .input {
|
24
|
+
margin-left: 10px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.form{
|
28
|
+
|
29
|
+
margin-left: -150px;
|
30
|
+
|
31
|
+
}
|
32
|
+
.select_box{
|
33
|
+
height: 600px;
|
34
|
+
}
|
35
|
+
.right{
|
36
|
+
margin-left:auto;
|
37
|
+
width: 100px;
|
38
|
+
margin-right:auto;
|
39
|
+
}
|
40
|
+
#search{
|
41
|
+
width: 400px;
|
42
|
+
}
|
43
|
+
.search{
|
44
|
+
margin-left:auto;
|
45
|
+
margin-right:auto;
|
46
|
+
}
|
47
|
+
|
48
|
+
th .current {
|
49
|
+
padding-right: 12px;
|
50
|
+
background-repeat: no-repeat;
|
51
|
+
background-position: right center;
|
52
|
+
}
|
53
|
+
|
54
|
+
th .asc {
|
55
|
+
background-image: url(/images/up_arrow.gif);
|
56
|
+
}
|
57
|
+
|
58
|
+
th .desc {
|
59
|
+
background-image: url(/images/down_arrow.gif);
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
.digg_pagination {
|
65
|
+
background: white;
|
66
|
+
cursor: default;
|
67
|
+
|
68
|
+
|
69
|
+
/* self-clearing method: */ }
|
70
|
+
.digg_pagination a, .digg_pagination span, .digg_pagination em {
|
71
|
+
line-height:34px;
|
72
|
+
|
73
|
+
display: block;
|
74
|
+
float: left;
|
75
|
+
margin-right: 1px; }
|
76
|
+
.digg_pagination .disabled {
|
77
|
+
line-height:34px;
|
78
|
+
color: #999999;
|
79
|
+
border: 1px solid #dddddd; }
|
80
|
+
.digg_pagination .current {
|
81
|
+
line-height:34px;
|
82
|
+
padding: 0 14px;
|
83
|
+
text-decoration: none;
|
84
|
+
font-style: normal;
|
85
|
+
font-weight: bold;
|
86
|
+
background: #2e6ab1;
|
87
|
+
color: white;
|
88
|
+
border: 1px solid #2e6ab1; }
|
89
|
+
.digg_pagination a {
|
90
|
+
line-height:34px;
|
91
|
+
|
92
|
+
color: #105cb6;
|
93
|
+
border: 1px solid #9aafe5; }
|
94
|
+
.digg_pagination a:hover, .digg_pagination a:focus {
|
95
|
+
line-height:34px;
|
96
|
+
color: #000033;
|
97
|
+
border-color: #000033; }
|
98
|
+
.digg_pagination .page_info {
|
99
|
+
line-height:34px;
|
100
|
+
background: #2e6ab1;
|
101
|
+
color: white;
|
102
|
+
padding: 0.4em 0.6em;
|
103
|
+
width: 22em;
|
104
|
+
margin-bottom: 0.3em;
|
105
|
+
text-align: center; }
|
106
|
+
.digg_pagination .page_info b {
|
107
|
+
line-height:34px;
|
108
|
+
color: #000033;
|
109
|
+
background: #6aa6ed;
|
110
|
+
padding: 0.1em 0.25em; }
|
111
|
+
.digg_pagination:after {
|
112
|
+
line-height:34px;
|
113
|
+
content: ".";
|
114
|
+
display: block;
|
115
|
+
height: 0;
|
116
|
+
clear: both;
|
117
|
+
visibility: hidden; }
|
118
|
+
* html .digg_pagination {
|
119
|
+
line-height:34px;
|
120
|
+
height: 1%; }
|
121
|
+
*:first-child + html .digg_pagination {
|
122
|
+
line-height:34px;
|
123
|
+
overflow: hidden; }
|
124
|
+
|
125
|
+
.apple_pagination {
|
126
|
+
background: #f1f1f1;
|
127
|
+
border: 1px solid #e5e5e5;
|
128
|
+
text-align: center;
|
129
|
+
padding: 1em;
|
130
|
+
cursor: default; }
|
131
|
+
.apple_pagination a, .apple_pagination span {
|
132
|
+
padding: 0.2em 0.3em; }
|
133
|
+
.apple_pagination .disabled {
|
134
|
+
color: #aaaaaa; }
|
135
|
+
.apple_pagination .current {
|
136
|
+
font-style: normal;
|
137
|
+
font-weight: bold;
|
138
|
+
background-color: #bebebe;
|
139
|
+
display: inline-block;
|
140
|
+
width: 1.4em;
|
141
|
+
height: 1.4em;
|
142
|
+
line-height: 1.5;
|
143
|
+
-moz-border-radius: 1em;
|
144
|
+
-webkit-border-radius: 1em;
|
145
|
+
border-radius: 1em;
|
146
|
+
text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px; }
|
147
|
+
.apple_pagination a {
|
148
|
+
text-decoration: none;
|
149
|
+
color: black; }
|
150
|
+
.apple_pagination a:hover, .apple_pagination a:focus {
|
151
|
+
text-decoration: underline; }
|
152
|
+
|
153
|
+
.flickr_pagination {
|
154
|
+
text-align: center;
|
155
|
+
padding: 0.3em;
|
156
|
+
cursor: default; }
|
157
|
+
.flickr_pagination a, .flickr_pagination span, .flickr_pagination em {
|
158
|
+
padding: 0.2em 0.5em; }
|
159
|
+
.flickr_pagination .disabled {
|
160
|
+
color: #aaaaaa; }
|
161
|
+
.flickr_pagination .current {
|
162
|
+
font-style: normal;
|
163
|
+
font-weight: bold;
|
164
|
+
color: #ff0084; }
|
165
|
+
.flickr_pagination a {
|
166
|
+
border: 1px solid #dddddd;
|
167
|
+
color: #0063dc;
|
168
|
+
text-decoration: none; }
|
169
|
+
.flickr_pagination a:hover, .flickr_pagination a:focus {
|
170
|
+
border-color: #003366;
|
171
|
+
background: #0063dc;
|
172
|
+
color: white; }
|
173
|
+
.flickr_pagination .page_info {
|
174
|
+
color: #aaaaaa;
|
175
|
+
padding-top: 0.8em; }
|
176
|
+
.flickr_pagination .previous_page, .flickr_pagination .next_page {
|
177
|
+
border-width: 2px; }
|
178
|
+
.flickr_pagination .previous_page {
|
179
|
+
margin-right: 1em; }
|
180
|
+
.flickr_pagination .next_page {
|
181
|
+
margin-left: 1em; }
|
182
|
+
|
183
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
@import "twitter/bootstrap/bootstrap";
|
2
|
+
body {
|
3
|
+
padding-top: 60px;
|
4
|
+
padding-left: 20px;
|
5
|
+
}
|
6
|
+
|
7
|
+
@import "twitter/bootstrap/responsive";
|
8
|
+
|
9
|
+
// Set the correct sprite paths
|
10
|
+
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png');
|
11
|
+
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png');
|
12
|
+
|
13
|
+
// Set the Font Awesome (Font Awesome is default. You can disable by commenting below lines)
|
14
|
+
// Note: If you use asset_path() here, your compiled boostrap_and_overrides.css will not
|
15
|
+
// have the proper paths. So for now we use the absolute path.
|
16
|
+
@fontAwesomeEotPath: '/assets/fontawesome-webfont.eot';
|
17
|
+
@fontAwesomeWoffPath: '/assets/fontawesome-webfont.woff';
|
18
|
+
@fontAwesomeTtfPath: '/assets/fontawesome-webfont.ttf';
|
19
|
+
@fontAwesomeSvgPath: '/assets/fontawesome-webfont.svg';
|
20
|
+
|
21
|
+
// Font Awesome
|
22
|
+
@import "fontawesome";
|
23
|
+
|
24
|
+
// Your custom LESS stylesheets goes here
|
25
|
+
//
|
26
|
+
// Since bootstrap was imported above you have access to its mixins which
|
27
|
+
// you may use and inherit here
|
28
|
+
//
|
29
|
+
// If you'd like to override bootstrap's own variables, you can do so here as well
|
30
|
+
// See http://twitter.github.com/bootstrap/less.html for their names and documentation
|
31
|
+
//
|
32
|
+
// Example:
|
33
|
+
// @linkColor: #ff0000;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= semantic_form_for( resource, :url => url, :namespace => "#{CustomizeAdmin.name_space}") do |f| %>
|
2
|
-
|
2
|
+
<%= render :partial => "all_form_inputs", :locals => { :f => f, :r => resource } %>
|
3
3
|
<%= render :partial => "more_form_inputs", :locals => { :f => f } %>
|
4
4
|
<div class="right"><%= f.submit "Save", :class => "btn large primary" %> </div>
|
5
5
|
|
@@ -9,11 +9,13 @@
|
|
9
9
|
<%= csrf_meta_tags %>
|
10
10
|
</head>
|
11
11
|
<body>
|
12
|
-
<div class="
|
13
|
-
<div class="
|
12
|
+
<div class="navbar">
|
13
|
+
<div class="navbar-inner">
|
14
14
|
<div class="container">
|
15
15
|
<%= render "admin_menu" %>
|
16
16
|
<div class="pull-right">
|
17
|
+
<%= I18n.locale %>
|
18
|
+
<%= render "admin_locals" %>
|
17
19
|
<%= link_to('Logout', destroy_admin_user_session_path, :method => :delete) %>
|
18
20
|
</div>
|
19
21
|
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
#I18n.default_locale = :pl
|
@@ -2,8 +2,8 @@ class CustomizeAdmin::InstallGenerator < Rails::Generators::Base
|
|
2
2
|
source_root File.expand_path('../templates', __FILE__)
|
3
3
|
|
4
4
|
def add_gems
|
5
|
-
insert_into_file "Gemfile", :after => "source '
|
6
|
-
"# CustomizeAdmin gems:\n gem 'inherited_resources', '1.3.0'\n gem 'has_scope', '0.5.1'\n gem 'formtastic'
|
5
|
+
insert_into_file "Gemfile", :after => "source 'https://rubygems.org'\n" do
|
6
|
+
"# CustomizeAdmin gems:\n gem 'inherited_resources', '1.3.0'\n gem 'has_scope', '0.5.1'\n gem 'formtastic'\n gem 'will_paginate', '3.0.2'\n gem 'devise', '2.0.0'\n gem 'twitter-bootstrap-rails', '2.1.0' \n gem 'ckeditor', '3.7.1' \n gem 'globalize3' \n \n"
|
7
7
|
end
|
8
8
|
end
|
9
9
|
|
@@ -24,7 +24,11 @@ class CustomizeAdmin::InstallGenerator < Rails::Generators::Base
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
def
|
27
|
+
def run_bootstrap_generator
|
28
|
+
generate "bootstrap:install"
|
29
|
+
end
|
30
|
+
|
31
|
+
def install_formtastic
|
28
32
|
generate "formtastic:install"
|
29
33
|
end
|
30
34
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: customize_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,85 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
13
|
-
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: rails
|
16
|
-
requirement: &18184340 !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 3.1.1
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: *18184340
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: inherited_resources
|
27
|
-
requirement: &18200200 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
|
-
requirements:
|
30
|
-
- - =
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 1.3.0
|
33
|
-
type: :runtime
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *18200200
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: has_scope
|
38
|
-
requirement: &18199740 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - =
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 0.5.1
|
44
|
-
type: :runtime
|
45
|
-
prerelease: false
|
46
|
-
version_requirements: *18199740
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: formtastic
|
49
|
-
requirement: &18199280 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - =
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 2.0.2
|
55
|
-
type: :runtime
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: *18199280
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: will_paginate
|
60
|
-
requirement: &18198820 !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
|
-
requirements:
|
63
|
-
- - =
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: 3.0.2
|
66
|
-
type: :runtime
|
67
|
-
prerelease: false
|
68
|
-
version_requirements: *18198820
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: devise
|
71
|
-
requirement: &18198360 !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
|
-
requirements:
|
74
|
-
- - =
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: 2.0.0
|
77
|
-
type: :runtime
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: *18198360
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: twitter-bootstrap-rails
|
82
|
-
requirement: &18197900 !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
|
-
requirements:
|
85
|
-
- - =
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: 1.4.3
|
88
|
-
type: :runtime
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: *18197900
|
12
|
+
date: 2012-07-19 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
91
14
|
description: CustomizeAdmin it is simple way to customize your admin view.
|
92
15
|
email:
|
93
16
|
- cieslar.jakub@gmail.com
|
@@ -118,8 +41,11 @@ files:
|
|
118
41
|
- app/assets/images/customize_admin/down_arrow.gif
|
119
42
|
- app/assets/images/customize_admin/up_arrow.gif
|
120
43
|
- app/assets/stylesheets/customize_admin/application.css
|
44
|
+
- app/assets/stylesheets/customize_admin/application.css~
|
121
45
|
- app/assets/stylesheets/customize_admin/bootstrap.css.less
|
46
|
+
- app/assets/stylesheets/customize_admin/bootstrap_and_overrides.css.less
|
122
47
|
- config/routes.rb
|
48
|
+
- config/initializers/locale.rb
|
123
49
|
- config/initializers/formtastic.rb
|
124
50
|
- lib/customize_admin/version.rb
|
125
51
|
- lib/customize_admin/engine.rb
|