wheels 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/generators/wheels/wheels_generator.rb +1 -1
- data/wheels.gemspec +1 -103
- metadata +3 -105
- data/app/controllers/application_controller.rb +0 -17
- data/app/controllers/blogs_controller.rb +0 -17
- data/app/controllers/galleries_controller.rb +0 -60
- data/app/controllers/images_controller.rb +0 -30
- data/app/controllers/profiles_controller.rb +0 -16
- data/app/controllers/users_controller.rb +0 -4
- data/app/models/ability.rb +0 -23
- data/app/models/blog.rb +0 -8
- data/app/models/gallery.rb +0 -5
- data/app/models/image.rb +0 -8
- data/app/models/profile.rb +0 -11
- data/app/models/role.rb +0 -8
- data/app/models/user.rb +0 -43
- data/app/views/blogs/_form.html.haml +0 -28
- data/app/views/blogs/edit.html.haml +0 -8
- data/app/views/blogs/index.html.haml +0 -19
- data/app/views/blogs/index.xml.builder +0 -27
- data/app/views/blogs/new.html.haml +0 -6
- data/app/views/blogs/show.html.haml +0 -10
- data/app/views/galleries/_form.html.haml +0 -29
- data/app/views/galleries/_show.html.haml +0 -21
- data/app/views/galleries/edit.html.haml +0 -7
- data/app/views/galleries/index.html.haml +0 -15
- data/app/views/galleries/new.html.haml +0 -5
- data/app/views/galleries/show.html.haml +0 -4
- data/app/views/images/_form.html.haml +0 -10
- data/app/views/images/create.js.haml +0 -3
- data/app/views/images/destroy.js.haml +0 -3
- data/app/views/images/edit.html.haml +0 -7
- data/app/views/images/edit.js.haml +0 -3
- data/app/views/images/index.html.haml +0 -17
- data/app/views/images/index.js.haml +0 -3
- data/app/views/images/new.html.haml +0 -5
- data/app/views/images/new.js.haml +0 -3
- data/app/views/images/show.html.haml +0 -5
- data/app/views/images/show.js.haml +0 -3
- data/app/views/images/update.js.haml +0 -3
- data/app/views/layouts/image_dialog.html.haml +0 -18
- data/app/views/profiles/_form.html.haml +0 -26
- data/app/views/profiles/edit.html.haml +0 -7
- data/app/views/profiles/index.html.haml +0 -25
- data/app/views/profiles/new.html.haml +0 -5
- data/app/views/profiles/show.html.haml +0 -21
- data/app/views/users/index.html.haml +0 -19
- data/config/amazon_s3.yml +0 -15
- data/db/migrate/add_fields_to_users.rb +0 -28
- data/db/migrate/create_blogs.rb +0 -16
- data/db/migrate/create_galleries.rb +0 -15
- data/db/migrate/create_images.rb +0 -17
- data/db/migrate/create_profiles.rb +0 -24
- data/db/migrate/create_roles.rb +0 -16
- data/public/404.html +0 -26
- data/public/422.html +0 -26
- data/public/500.html +0 -26
- data/public/favicon.ico +0 -0
- data/public/images/dreamy/Thumbs.db +0 -0
- data/public/images/dreamy/bg-ad-top.png +0 -0
- data/public/images/dreamy/bg-body.png +0 -0
- data/public/images/dreamy/bg-feed.gif +0 -0
- data/public/images/dreamy/bg-footer.jpg +0 -0
- data/public/images/dreamy/bg-header.jpg +0 -0
- data/public/images/dreamy/bg-menu-hover.png +0 -0
- data/public/images/dreamy/bg-menu.png +0 -0
- data/public/images/dreamy/bg-sidebar-bottom.gif +0 -0
- data/public/images/dreamy/button-feed.png +0 -0
- data/public/images/dreamy/icon-comment.png +0 -0
- data/public/images/growl/error.png +0 -0
- data/public/images/growl/growl_bottom.png +0 -0
- data/public/images/growl/growl_repeat.png +0 -0
- data/public/images/growl/growl_top.png +0 -0
- data/public/images/growl/info.png +0 -0
- data/public/images/menu/item-pointer-mover.gif +0 -0
- data/public/images/menu/item-pointer.gif +0 -0
- data/public/images/menu/lava.gif +0 -0
- data/public/images/menu/lava.png +0 -0
- data/public/images/menu/main-bg.png +0 -0
- data/public/images/menu/main-delimiter.png +0 -0
- data/public/javascripts/jquery.growl.js +0 -143
- data/public/javascripts/loadbehind.js +0 -0
- data/public/javascripts/menu.js +0 -247
- data/public/stylesheets/.gitkeep +0 -0
- data/public/stylesheets/dreamy.css +0 -181
- data/public/stylesheets/menu.css +0 -101
- data/public/stylesheets/sass/dreamy.sass +0 -195
- data/public/stylesheets/sass/menu.sass +0 -105
- data/public/stylesheets/scaffold.css +0 -56
- data/public/stylesheets/ui-lightness/images/ui-anim_basic_16x16.gif +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/public/stylesheets/ui-lightness/jquery-ui-1.8.2.custom.css +0 -359
@@ -1,21 +0,0 @@
|
|
1
|
-
:css
|
2
|
-
#image_gallery li {
|
3
|
-
display: inline;
|
4
|
-
list-style: none;
|
5
|
-
width: 300px;
|
6
|
-
min-height: 300px;
|
7
|
-
float: left;
|
8
|
-
margin: 0 10px 10px 0;
|
9
|
-
text-align: center;
|
10
|
-
}
|
11
|
-
|
12
|
-
%h1= gallery.name.empty? ? "Name your gallery" : gallery.name
|
13
|
-
- if can? :update, gallery
|
14
|
-
= link_to 'Edit', edit_gallery_path(gallery)
|
15
|
-
- if can? :manage, gallery
|
16
|
-
= link_to 'Destroy', gallery, "data-confirm"=>"You'll shoot your eye out!", :method=>"delete"
|
17
|
-
%ul#image_gallery
|
18
|
-
- images.each do |image|
|
19
|
-
%li
|
20
|
-
= image_tag image.image.url(:medium)
|
21
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
%h1 #{@user.profile.alias}'s Galleries
|
2
|
-
%ul
|
3
|
-
- @galleries.each do |gallery|
|
4
|
-
%li
|
5
|
-
%h2= link_to (gallery.name || "No name"), gallery_path(gallery, ckeditor_params)
|
6
|
-
- unless gallery.images.empty?
|
7
|
-
= image_tag gallery.images[0].image.url(:medium)
|
8
|
-
- if can? :update, gallery
|
9
|
-
= link_to 'Edit', edit_gallery_path(gallery, ckeditor_params)
|
10
|
-
- if can? :manage, gallery
|
11
|
-
= link_to 'Destroy', gallery_path(gallery, ckeditor_params), "data-confirm"=>"Sure? All the images from this gallery will be gone...", :method=>"delete"
|
12
|
-
|
13
|
-
|
14
|
-
= link_to 'New gallery', new_gallery_path
|
15
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
%h1 Listing images
|
2
|
-
|
3
|
-
%table
|
4
|
-
%tr
|
5
|
-
%th
|
6
|
-
%th
|
7
|
-
%th
|
8
|
-
|
9
|
-
- @images.each do |image|
|
10
|
-
%tr
|
11
|
-
%td= link_to 'Show', image
|
12
|
-
%td= link_to 'Edit', edit_image_path(image)
|
13
|
-
%td= link_to 'Destroy', image, :confirm => 'Are you sure?', :method => :delete
|
14
|
-
|
15
|
-
%br
|
16
|
-
|
17
|
-
= link_to 'New image', new_image_path
|
@@ -1,18 +0,0 @@
|
|
1
|
-
!!! 5
|
2
|
-
%html
|
3
|
-
%head
|
4
|
-
= csrf_meta_tag
|
5
|
-
/[if lt IE 9]
|
6
|
-
= javascript_include_tag 'html5'
|
7
|
-
= javascript_include_tag :defaults
|
8
|
-
:javascript
|
9
|
-
$(function(){
|
10
|
-
$('#image_dialog').find('img').click(function(){
|
11
|
-
url = $(this).attr('src');
|
12
|
-
window.opener.CKEDITOR.tools.callFunction( #{params[:CKEditorFuncNum]}, url);
|
13
|
-
window.close();
|
14
|
-
});
|
15
|
-
});
|
16
|
-
%body
|
17
|
-
#image_dialog= yield
|
18
|
-
|
@@ -1,26 +0,0 @@
|
|
1
|
-
= form_for @profile, :url=>{:action=>"update"}, :html=>{:multipart=>true} do |f|
|
2
|
-
-if @profile.errors.any?
|
3
|
-
#errorExplanation
|
4
|
-
%h2= "#{pluralize(@profile.errors.count, "error")} prohibited this profile from being saved:"
|
5
|
-
%ul
|
6
|
-
- @profile.errors.full_messages.each do |msg|
|
7
|
-
%li= msg
|
8
|
-
|
9
|
-
.field
|
10
|
-
= f.label :first_name
|
11
|
-
= f.text_field :first_name
|
12
|
-
.field
|
13
|
-
= f.label :last_name
|
14
|
-
= f.text_field :last_name
|
15
|
-
.field
|
16
|
-
= f.label :alias
|
17
|
-
= f.text_field :alias
|
18
|
-
.field
|
19
|
-
= f.label :about_me
|
20
|
-
= f.text_area :about_me
|
21
|
-
.field
|
22
|
-
= f.label :image
|
23
|
-
= f.file_field :image
|
24
|
-
.actions
|
25
|
-
= f.submit 'Save'
|
26
|
-
|
@@ -1,25 +0,0 @@
|
|
1
|
-
%h1 Listing profiles
|
2
|
-
|
3
|
-
%table
|
4
|
-
%tr
|
5
|
-
%th First name
|
6
|
-
%th Last name
|
7
|
-
%th Alias
|
8
|
-
%th About me
|
9
|
-
%th
|
10
|
-
%th
|
11
|
-
%th
|
12
|
-
|
13
|
-
- @profiles.each do |profile|
|
14
|
-
%tr
|
15
|
-
%td= profile.first_name
|
16
|
-
%td= profile.last_name
|
17
|
-
%td= profile.alias
|
18
|
-
%td= profile.about_me
|
19
|
-
%td= link_to 'Show', profile
|
20
|
-
%td= link_to 'Edit', edit_profile_path(profile)
|
21
|
-
%td= link_to 'Destroy', profile, :confirm => 'Are you sure?', :method => :delete
|
22
|
-
|
23
|
-
%br
|
24
|
-
|
25
|
-
= link_to 'New profile', new_profile_path
|
@@ -1,21 +0,0 @@
|
|
1
|
-
- if @profile.image_file_name
|
2
|
-
= image_tag @profile.image.url(:thumb)
|
3
|
-
- else
|
4
|
-
- if can? :edit, @profile
|
5
|
-
- link_to 'Upload a photo', user_profile_path(@user)
|
6
|
-
%p
|
7
|
-
%b First name:
|
8
|
-
= @profile.first_name
|
9
|
-
%p
|
10
|
-
%b Last name:
|
11
|
-
= @profile.last_name
|
12
|
-
%p
|
13
|
-
%b Alias:
|
14
|
-
= @profile.alias
|
15
|
-
%p
|
16
|
-
%b About me:
|
17
|
-
= @profile.about_me
|
18
|
-
|
19
|
-
- if current_user.try(:id) == @user.id
|
20
|
-
= link_to 'Edit', edit_user_profile_path(@user)
|
21
|
-
|
@@ -1,19 +0,0 @@
|
|
1
|
-
%h1 Users
|
2
|
-
%ul
|
3
|
-
- for user in @users
|
4
|
-
%li
|
5
|
-
%table.no_border
|
6
|
-
%tr
|
7
|
-
%td= link_to user.login, user_profile_path(user)
|
8
|
-
%td= "#{user.first_name} #{user.last_name}"
|
9
|
-
%td!= image_tag user.image.url(:thumb)
|
10
|
-
- if can? :manage, User
|
11
|
-
%td!= link_to 'Edit', edit_user_path(user)
|
12
|
-
%td!= link_to 'Destroy', user, "data-confirm"=>"Really delete #{user.alias}?", :method=>"delete"
|
13
|
-
%td{:id=>user.element_id(:confirm)}
|
14
|
-
- if user.confirmed_at
|
15
|
-
Confirmed
|
16
|
-
- else
|
17
|
-
= form_for user, :remote=>true do |f|
|
18
|
-
= f.hidden_field
|
19
|
-
|
data/config/amazon_s3.yml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
development:
|
2
|
-
bucket: <%= bucket %>
|
3
|
-
access_key_id: <%= access_key_id %>
|
4
|
-
secret_access_key: <%= secret_access_key %>
|
5
|
-
|
6
|
-
test:
|
7
|
-
bucket: <%= bucket %>
|
8
|
-
access_key_id: <%= access_key_id %>
|
9
|
-
secret_access_key: <%= secret_access_key %>
|
10
|
-
|
11
|
-
production:
|
12
|
-
bucket: <%= bucket %>
|
13
|
-
access_key_id: <%= access_key_id %>
|
14
|
-
secret_access_key: <%= secret_access_key %>
|
15
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
class AddFieldsToUsers < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
add_column :users, :confirmation_token, :string
|
4
|
-
add_column :users, :confirmed_at, :datetime
|
5
|
-
add_column :users, :confirmation_sent_at, :datetime
|
6
|
-
add_column :users, :failed_attempts, :integer, :default => 0
|
7
|
-
add_column :users, :unlock_token, :string
|
8
|
-
add_column :users, :locked_at, :datetime
|
9
|
-
add_column :users, :authentication_token, :string
|
10
|
-
add_column :users, :login, :string
|
11
|
-
add_column :users, :name, :string
|
12
|
-
add_column :users, :role_id, :integer
|
13
|
-
end
|
14
|
-
|
15
|
-
def self.down
|
16
|
-
remove_column :users, :confirmation_token
|
17
|
-
remove_column :users, :confirmed_at
|
18
|
-
remove_column :users, :confirmation_sent_at
|
19
|
-
remove_column :users, :failed_attempts
|
20
|
-
remove_column :users, :unlock_token
|
21
|
-
remove_column :users, :locked_at
|
22
|
-
remove_column :users, :authentication_token
|
23
|
-
remove_column :users, :login
|
24
|
-
remove_column :users, :name
|
25
|
-
remove_column :users, :role_id
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
data/db/migrate/create_blogs.rb
DELETED
data/db/migrate/create_images.rb
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
class CreateImages < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
create_table :images do |t|
|
4
|
-
t.string :image_file_name
|
5
|
-
t.string :image_content_type
|
6
|
-
t.integer :image_file_size
|
7
|
-
t.datetime :image_updated_at
|
8
|
-
t.integer :gallery_id
|
9
|
-
t.timestamps
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
def self.down
|
14
|
-
drop_table :images
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
@@ -1,24 +0,0 @@
|
|
1
|
-
class CreateProfiles < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
create_table :profiles do |t|
|
4
|
-
t.string :first_name
|
5
|
-
t.string :last_name
|
6
|
-
t.string :alias
|
7
|
-
t.string :blog_title
|
8
|
-
t.text :about_me
|
9
|
-
t.integer :user_id
|
10
|
-
t.string :image_file_name
|
11
|
-
t.string :image_content_type
|
12
|
-
t.integer :image_file_size
|
13
|
-
t.datetime :image_updated_at
|
14
|
-
t.timestamps
|
15
|
-
end
|
16
|
-
add_index :profiles, :alias, :unique=>true
|
17
|
-
add_index :profiles, :user_id, :unique=>true
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.down
|
21
|
-
drop_table :profiles
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
data/db/migrate/create_roles.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
class CreateRoles < ActiveRecord::Migration
|
2
|
-
def self.up
|
3
|
-
create_table :roles do |t|
|
4
|
-
t.string :name
|
5
|
-
t.timestamps
|
6
|
-
end
|
7
|
-
Role.create(:name=>'Super')
|
8
|
-
Role.create(:name=>'Admin')
|
9
|
-
Role.create(:name=>'User')
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.down
|
13
|
-
drop_table :roles
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
data/public/404.html
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/404.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
data/public/422.html
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/422.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>The change you wanted was rejected.</h1>
|
23
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
data/public/500.html
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/500.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>We're sorry, but something went wrong.</h1>
|
23
|
-
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
data/public/favicon.ico
DELETED
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/public/images/menu/lava.gif
DELETED
Binary file
|
data/public/images/menu/lava.png
DELETED
Binary file
|
Binary file
|
Binary file
|