constructor-core 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/stylesheets/constructor_core/application.css.scss +1 -56
- data/app/assets/stylesheets/constructor_core/main.css.scss +200 -0
- data/app/controllers/constructor_core/application_controller.rb +7 -0
- data/app/controllers/constructor_core/sessions_controller.rb +2 -2
- data/app/helpers/constructor_core/application_helper.rb +29 -0
- data/app/models/constructor_core/user.rb +0 -2
- data/app/views/constructor_core/sessions/new.html.haml +3 -6
- data/app/views/layouts/constructor_core/application_admin.haml +36 -19
- data/config/environments/production.rb +0 -2
- data/config/initializers/devise.rb +2 -203
- data/config/locales/en.yml +10 -0
- data/config/locales/ru.yml +11 -1
- data/config/routes.rb +10 -5
- data/constructor-core.gemspec +2 -0
- data/lib/constructor-core.rb +2 -0
- data/lib/constructor_core/version.rb +1 -1
- metadata +38 -14
- data/app/assets/fonts/FontAwesome.otf +0 -0
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +0 -339
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/stylesheets/constructor_core/bootstrap-responsive.css +0 -1109
- data/app/assets/stylesheets/constructor_core/bootstrap.css +0 -6158
- data/app/assets/stylesheets/constructor_core/font-awesome.css +0 -1268
- data/app/assets/stylesheets/constructor_core/jquery.treeview.css +0 -73
- data/app/controllers/constructor_core/admin_controller.rb +0 -6
- data/app/helpers/constructor_core/devise_helper.rb +0 -24
- data/config/environments/development.rb +0 -4
@@ -1,73 +0,0 @@
|
|
1
|
-
.treeview, .treeview ul {
|
2
|
-
padding: 0;
|
3
|
-
margin: 0;
|
4
|
-
list-style: none;
|
5
|
-
}
|
6
|
-
|
7
|
-
.treeview ul {
|
8
|
-
margin-top: 4px;
|
9
|
-
}
|
10
|
-
|
11
|
-
.treeview .hitarea {
|
12
|
-
background: url(/assets/constructor_core/treeview-default.gif) -64px -25px no-repeat;
|
13
|
-
height: 16px;
|
14
|
-
width: 16px;
|
15
|
-
margin-left: -16px;
|
16
|
-
float: left;
|
17
|
-
cursor: pointer;
|
18
|
-
}
|
19
|
-
/* fix for IE6 */
|
20
|
-
* html .hitarea {
|
21
|
-
display: inline;
|
22
|
-
float:none;
|
23
|
-
}
|
24
|
-
|
25
|
-
.treeview li {
|
26
|
-
margin: 0;
|
27
|
-
padding: 3px 0pt 10px 16px;
|
28
|
-
}
|
29
|
-
|
30
|
-
.treeview a.selected {
|
31
|
-
background-color: #eee;
|
32
|
-
}
|
33
|
-
|
34
|
-
#treecontrol { margin: 1em 0; display: none; }
|
35
|
-
|
36
|
-
.treeview .hover { cursor: pointer; }
|
37
|
-
|
38
|
-
.treeview li { background: url(/assets/constructor_core/treeview-default-line.gif) 0 0 no-repeat; }
|
39
|
-
.treeview li.collapsable, .treeview li.expandable { background-position: 0 -176px; }
|
40
|
-
|
41
|
-
.treeview .expandable-hitarea { background-position: -80px -3px; }
|
42
|
-
|
43
|
-
.treeview li.last { background-position: 0 -1766px }
|
44
|
-
.treeview li.lastCollapsable, .treeview li.lastExpandable { background-image: url(/assets/constructor_core/treeview-default.gif); }
|
45
|
-
.treeview li.lastCollapsable { background-position: 0 -111px }
|
46
|
-
.treeview li.lastExpandable { background-position: -32px -67px }
|
47
|
-
|
48
|
-
.treeview div.lastCollapsable-hitarea, .treeview div.lastExpandable-hitarea { background-position: 0; }
|
49
|
-
|
50
|
-
.treeview-red li { background-image: url(/assets/constructor_core/treeview-red-line.gif); }
|
51
|
-
.treeview-red .hitarea, .treeview-red li.lastCollapsable, .treeview-red li.lastExpandable { background-image: url(/assets/constructor_core/treeview-red.gif); }
|
52
|
-
|
53
|
-
.treeview-black li { background-image: url(/assets/constructor_core/treeview-black-line.gif); }
|
54
|
-
.treeview-black .hitarea, .treeview-black li.lastCollapsable, .treeview-black li.lastExpandable { background-image: url(/assets/constructor_core/treeview-black.gif); }
|
55
|
-
|
56
|
-
.treeview-gray li { background-image: url(/assets/constructor_core/treeview-gray-line.gif); }
|
57
|
-
.treeview-gray .hitarea, .treeview-gray li.lastCollapsable, .treeview-gray li.lastExpandable { background-image: url(/assets/constructor_core/treeview-gray.gif); }
|
58
|
-
|
59
|
-
.treeview-famfamfam li { background-image: url(/assets/constructor_core/treeview-famfamfam-line.gif); }
|
60
|
-
.treeview-famfamfam .hitarea, .treeview-famfamfam li.lastCollapsable, .treeview-famfamfam li.lastExpandable { background-image: url(/assets/constructor_core/treeview-famfamfam.gif); }
|
61
|
-
|
62
|
-
.treeview .placeholder {
|
63
|
-
background: url(/assets/constructor_core/ajax-loader.gif) 0 0 no-repeat;
|
64
|
-
height: 16px;
|
65
|
-
width: 16px;
|
66
|
-
display: block;
|
67
|
-
}
|
68
|
-
|
69
|
-
.filetree li { padding: 3px 0 2px 16px; }
|
70
|
-
.filetree span.folder, .filetree span.file { padding: 1px 0 1px 16px; display: block; }
|
71
|
-
.filetree span.folder { background: url(/assets/constructor_core/folder.gif) 0 0 no-repeat; }
|
72
|
-
.filetree li.expandable span.folder { background: url(/assets/constructor_core/folder-closed.gif) 0 0 no-repeat; }
|
73
|
-
.filetree span.file { background: url(/assets/constructor_core/file.gif) 0 0 no-repeat; }
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module ConstructorCore
|
2
|
-
# TODO
|
3
|
-
module DeviseHelper
|
4
|
-
def authenticate_user!
|
5
|
-
warden.authenticate!
|
6
|
-
end
|
7
|
-
|
8
|
-
def user_signed_in?
|
9
|
-
!!current_user
|
10
|
-
end
|
11
|
-
|
12
|
-
def current_user
|
13
|
-
@current_user ||= warden.authenticate(:scope => :constructor_auth_user)
|
14
|
-
end
|
15
|
-
|
16
|
-
def user_session
|
17
|
-
current_user && warden.session(:constructor_auth_user)
|
18
|
-
end
|
19
|
-
|
20
|
-
def warden
|
21
|
-
request.env['warden']
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|