santey_blog 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +36 -35
- data/VERSION +1 -1
- data/app/controllers/sb/admin/posts_controller.rb +61 -0
- data/app/controllers/{posts_controller.rb → sb/posts_controller.rb} +7 -10
- data/app/controllers/sb_controller.rb +49 -0
- data/app/controllers/user_sessions_controller.rb +28 -0
- data/app/controllers/users_controller.rb +37 -0
- data/app/models/user.rb +3 -0
- data/app/models/user_session.rb +6 -0
- data/app/views/includes/_head.html.haml +1 -1
- data/app/views/includes/_header.html.haml +1 -1
- data/app/views/layouts/santey_blog.html.haml +11 -0
- data/app/views/sb/admin/posts/_form.html.haml +12 -0
- data/app/views/sb/admin/posts/_publish.html.haml +5 -0
- data/app/views/sb/admin/posts/edit.html.haml +5 -0
- data/app/views/sb/admin/posts/index.html.haml +9 -0
- data/app/views/sb/admin/posts/new.html.haml +5 -0
- data/app/views/{posts → sb/posts}/_post.html.haml +0 -0
- data/app/views/{posts → sb/posts}/index.html.haml +0 -0
- data/app/views/{posts → sb/posts}/index.rss.builder +1 -1
- data/app/views/{posts → sb/posts}/show.html.haml +0 -0
- data/app/views/user_sessions/new.html.erb +17 -0
- data/app/views/users/_form.html.haml +19 -0
- data/app/views/users/edit.html.haml +7 -0
- data/app/views/users/new.html.haml +5 -0
- data/config/routes.rb +22 -5
- data/lib/generators/santey_blog_generator.rb +4 -1
- data/lib/generators/templates/css/screen.css +1 -1
- data/lib/generators/templates/images/body-bg.gif +0 -0
- data/lib/generators/templates/images/icons/Thumbs.db +0 -0
- data/lib/generators/templates/images/icons/delete.png +0 -0
- data/lib/generators/templates/images/icons/edit.png +0 -0
- data/lib/generators/templates/images/icons/selected.png +0 -0
- data/lib/generators/templates/images/icons/unselected.png +0 -0
- data/lib/generators/templates/images/logo.png +0 -0
- data/lib/generators/templates/migrations/create_posts.rb +3 -1
- data/santey_blog.gemspec +30 -8
- metadata +31 -9
- data/app/views/layouts/application.html.haml +0 -11
data/README.rdoc
CHANGED
@@ -1,38 +1,39 @@
|
|
1
|
-
= Rails
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
gem "
|
8
|
-
gem "
|
9
|
-
gem "
|
10
|
-
gem "
|
11
|
-
gem "
|
12
|
-
gem "
|
13
|
-
gem "
|
14
|
-
gem "
|
15
|
-
gem "
|
16
|
-
gem "
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
rails generate
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
1
|
+
= Blog CMS for Rails 3
|
2
|
+
|
3
|
+
create new application:
|
4
|
+
rails my_new_blog
|
5
|
+
|
6
|
+
Add this to your Gemfile:
|
7
|
+
gem "mysql", ">=2.8.1"
|
8
|
+
gem "rmagick", "2.13.1"
|
9
|
+
gem "hpricot", ">=0.8.2"
|
10
|
+
gem "haml", "2.2.23"
|
11
|
+
gem "authlogic", :git => "git://github.com/odorcicd/authlogic.git", :branch => "rails3"
|
12
|
+
gem "ckeditor", :git => "git://github.com/galetahub/rails-ckeditor.git", :branch => "rails3"
|
13
|
+
gem "acts-as-taggable-on", :git => "git://github.com/shamne/acts-as-taggable-on.git"
|
14
|
+
gem "will_paginate", :git => "git://github.com/mislav/will_paginate.git", :branch => "rails3"
|
15
|
+
gem "nokogiri", "1.4.1"
|
16
|
+
gem "sanitize", "1.2.1"
|
17
|
+
gem "santey_vote", :git => "git://github.com/shamne/santey_vote.git"
|
18
|
+
gem "santey_view", :git => "git://github.com/shamne/santey_view.git"
|
19
|
+
gem "santey_blog", :git => "git://github.com/shamne/santey_blog.git"
|
20
|
+
|
21
|
+
Configure plugins:
|
22
|
+
rails generate santey_blog [--css, --migrate]
|
23
|
+
rails generate santey_vote
|
24
|
+
rails generate santey_view
|
25
|
+
rails generate acts_as_taggable_on:migration
|
26
|
+
|
27
|
+
Configuring rails-ckeditor plugin:
|
28
|
+
To install text editor, follow this instructions: http://github.com/galetahub/rails-ckeditor/tree/rails3
|
29
|
+
|
30
|
+
|
31
|
+
and don't forget:
|
32
|
+
rake db:migrate
|
33
|
+
|
34
|
+
|
35
|
+
|
35
36
|
|
36
37
|
== Copyright
|
37
38
|
|
38
|
-
Copyright (c) 2010 Alexander Shamne
|
39
|
+
Copyright (c) 2010 Alexander Shamne
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -0,0 +1,61 @@
|
|
1
|
+
class Sb::Admin::PostsController < SbController
|
2
|
+
|
3
|
+
protect_from_forgery
|
4
|
+
|
5
|
+
before_filter :find_post, :only => [:edit, :update, :destroy, :publish]
|
6
|
+
before_filter :require_user
|
7
|
+
|
8
|
+
def index
|
9
|
+
@posts = Post.recent.paginate(:all, :page=>params[:page], :per_page=>20)
|
10
|
+
end
|
11
|
+
|
12
|
+
def create
|
13
|
+
@post = Post.new(params[:post])
|
14
|
+
@post.title = Hpricot(params[:post][:title]).inner_text
|
15
|
+
@post.user = current_user
|
16
|
+
@post.save!
|
17
|
+
redirect_to root_path
|
18
|
+
rescue
|
19
|
+
render :action => :new
|
20
|
+
end
|
21
|
+
|
22
|
+
def edit
|
23
|
+
end
|
24
|
+
|
25
|
+
def update
|
26
|
+
@post.update_attributes(params[:post])
|
27
|
+
@post.title = Hpricot(params[:post][:title]).inner_text
|
28
|
+
@post.save!
|
29
|
+
redirect_to root_path
|
30
|
+
rescue
|
31
|
+
render :edit
|
32
|
+
end
|
33
|
+
|
34
|
+
def destroy
|
35
|
+
@post.destroy
|
36
|
+
redirect_to root_path
|
37
|
+
end
|
38
|
+
|
39
|
+
def publish
|
40
|
+
@post.published = params[:set]=="1" ? true : false
|
41
|
+
@post.save
|
42
|
+
respond_to do |format|
|
43
|
+
format.html {
|
44
|
+
redirect_to :back
|
45
|
+
}
|
46
|
+
format.js {
|
47
|
+
render :update do |page|
|
48
|
+
page.replace_html "publish_#{@post.id}", :partial => "publish", :locals=>{:publish=>@post}
|
49
|
+
end
|
50
|
+
}
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
|
55
|
+
private
|
56
|
+
|
57
|
+
def find_post
|
58
|
+
@post = Post.find_by_slug(params[:id])
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class PostsController <
|
1
|
+
class Sb::PostsController < SbController
|
2
2
|
|
3
3
|
protect_from_forgery
|
4
4
|
before_filter :find_post, :only => [:show]
|
@@ -8,14 +8,10 @@ class PostsController < ApplicationController
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def show
|
11
|
-
if @post
|
12
|
-
@post.view(request.remote_ip, nil)
|
13
|
-
else
|
14
|
-
redirect_to root_path
|
15
|
-
end
|
11
|
+
@post.view(request.remote_ip, nil) if @post
|
16
12
|
end
|
17
13
|
|
18
|
-
def
|
14
|
+
def tag
|
19
15
|
@tag = params[:id].gsub(/~dot~/, ".")
|
20
16
|
@posts = Post.tagged_with(@tag).published.recent.paginate(:all, :page=>params[:page], :per_page=>5)
|
21
17
|
render :index
|
@@ -23,8 +19,9 @@ class PostsController < ApplicationController
|
|
23
19
|
|
24
20
|
|
25
21
|
private
|
26
|
-
|
27
|
-
|
28
|
-
|
22
|
+
|
23
|
+
def find_post
|
24
|
+
@post = Post.find_by_slug(params[:id])
|
25
|
+
end
|
29
26
|
|
30
27
|
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
class SbController < ActionController::Base
|
2
|
+
|
3
|
+
#protect_from_forgery
|
4
|
+
helper :all
|
5
|
+
helper_method :current_user_session, :current_user
|
6
|
+
|
7
|
+
layout "santey_blog"
|
8
|
+
|
9
|
+
include ActsAsTaggableOn::TagsHelper
|
10
|
+
|
11
|
+
private
|
12
|
+
def current_user_session
|
13
|
+
return @current_user_session if defined?(@current_user_session)
|
14
|
+
@current_user_session = UserSession.find
|
15
|
+
end
|
16
|
+
|
17
|
+
def current_user
|
18
|
+
return @current_user if defined?(@current_user)
|
19
|
+
@current_user = current_user_session && current_user_session.record
|
20
|
+
end
|
21
|
+
|
22
|
+
def require_user
|
23
|
+
unless current_user
|
24
|
+
store_location
|
25
|
+
flash[:notice] = "You must be logged in to access this page"
|
26
|
+
redirect_to login_url
|
27
|
+
return false
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def require_no_user
|
32
|
+
if current_user
|
33
|
+
store_location
|
34
|
+
flash[:notice] = "You must be logged out to access this page"
|
35
|
+
redirect_to root_url
|
36
|
+
return false
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def store_location
|
41
|
+
session[:return_to] = request.request_uri
|
42
|
+
end
|
43
|
+
|
44
|
+
def redirect_back_or_default(default)
|
45
|
+
redirect_to(session[:return_to] || default)
|
46
|
+
session[:return_to] = nil
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class UserSessionsController < SbController
|
2
|
+
|
3
|
+
protect_from_forgery
|
4
|
+
|
5
|
+
before_filter :require_no_user, :only => [:new, :create]
|
6
|
+
before_filter :require_user, :only => :destroy
|
7
|
+
|
8
|
+
def new
|
9
|
+
@user_session = UserSession.new
|
10
|
+
end
|
11
|
+
|
12
|
+
def create
|
13
|
+
@user_session = UserSession.new(params[:user_session])
|
14
|
+
if @user_session.save
|
15
|
+
flash[:notice] = "Login successful!"
|
16
|
+
redirect_back_or_default root_url
|
17
|
+
else
|
18
|
+
render :action => :new
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def destroy
|
23
|
+
current_user_session.destroy
|
24
|
+
flash[:notice] = "Logout successful!"
|
25
|
+
redirect_back_or_default login_url
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
class UsersController < SbController
|
2
|
+
|
3
|
+
protect_from_forgery
|
4
|
+
|
5
|
+
before_filter :find_user, :only => [:show, :edit, :update, :destroy]
|
6
|
+
before_filter :require_no_user, :only => [:new, :create]
|
7
|
+
before_filter :require_user, :only => [:show, :edit, :update]
|
8
|
+
|
9
|
+
def new
|
10
|
+
@user = User.new
|
11
|
+
end
|
12
|
+
|
13
|
+
def create
|
14
|
+
@user = User.new(params[:user])
|
15
|
+
if @user.save!
|
16
|
+
flash[:notice] = "Account registered!"
|
17
|
+
redirect_back_or_default root_url
|
18
|
+
else
|
19
|
+
render :action => :new
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def update
|
24
|
+
if @user.update_attributes(params[:user])
|
25
|
+
flash[:notice] = "Account updated!"
|
26
|
+
redirect_to root_url
|
27
|
+
else
|
28
|
+
render :action => :edit
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
def find_user
|
34
|
+
@user = User.find(params[:id])
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
data/app/models/user.rb
ADDED
@@ -1,2 +1,2 @@
|
|
1
1
|
#header
|
2
|
-
=image_tag("logo.png", :class=>"logo", :style=>"width:
|
2
|
+
=image_tag("santey_blog/logo.png", :class=>"logo", :style=>"width:114px;height:56px;", :alt=>SanteyBlog.meta_titles[:default])
|
@@ -0,0 +1,12 @@
|
|
1
|
+
%p
|
2
|
+
=form.label :title
|
3
|
+
%br/
|
4
|
+
=form.text_field :title, :class=>"text long"
|
5
|
+
%p
|
6
|
+
=form.label :content
|
7
|
+
%br/
|
8
|
+
=form.cktext_area :content, :swf_params=>{:assetable_type=>'User', :assetable_id=>current_user.id}
|
9
|
+
%p
|
10
|
+
=form.label :tag_list, "Tags"
|
11
|
+
%br/
|
12
|
+
=form.text_field :tag_list, :class=>"text long"
|
@@ -0,0 +1,5 @@
|
|
1
|
+
- publish = !@post.nil? ? @post : publish
|
2
|
+
- if publish.published == true
|
3
|
+
=link_to image_tag("santey_blog/icons/selected.png", :class=>"icon"), {:action=>"publish", :id=>publish.slug, :set=>"0"}, :remote => true, :class => "image", :title=>"Unpublish"
|
4
|
+
- else
|
5
|
+
=link_to image_tag("santey_blog/icons/unselected.png", :class=>"icon"), {:action=>"publish", :id=>publish.slug, :set=>"1"}, :remote => true, :class => "image", :title=>"Publish"
|
@@ -0,0 +1,9 @@
|
|
1
|
+
.posts_list.edit_list
|
2
|
+
- @posts.each do |post|
|
3
|
+
.item
|
4
|
+
=link_to image_tag("icons/delete.png"), {:action=>"destroy", :id=>post.slug}, :method => :delete, :confirm => "Sure?"
|
5
|
+
=link_to image_tag("icons/edit.png"), {:action=>"edit", :id=>post.slug}
|
6
|
+
%div{:id=>"publish_#{post.id}", :style =>"float:right;"}
|
7
|
+
=render :partial => "publish", :locals=>{:publish=>post}
|
8
|
+
=link_to post.title, path_to_content(post)
|
9
|
+
%br/
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<% form_for @user_session, :url=>user_session_path do |f| -%>
|
2
|
+
<%=f.label :login %>
|
3
|
+
<br />
|
4
|
+
<%=f.text_field :login %>
|
5
|
+
<br />
|
6
|
+
<br />
|
7
|
+
<%=f.label :password %>
|
8
|
+
<br />
|
9
|
+
<%=f.password_field :password %>
|
10
|
+
<br />
|
11
|
+
<br />
|
12
|
+
<%=f.check_box :remember_me %>
|
13
|
+
<%=f.label :remember_me %>
|
14
|
+
<br />
|
15
|
+
<br />
|
16
|
+
<%=f.submit "Login" %>
|
17
|
+
<% end %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
=form.label :login
|
2
|
+
%br/
|
3
|
+
=form.text_field :login
|
4
|
+
%br/
|
5
|
+
%br/
|
6
|
+
=form.label :email
|
7
|
+
%br/
|
8
|
+
=form.text_field :email
|
9
|
+
%br/
|
10
|
+
%br/
|
11
|
+
=form.label :password, form.object.new_record? ? nil : "Change password"
|
12
|
+
%br/
|
13
|
+
=form.password_field :password
|
14
|
+
%br/
|
15
|
+
%br/
|
16
|
+
=form.label :password_confirmation
|
17
|
+
%br/
|
18
|
+
=form.password_field :password_confirmation
|
19
|
+
%br/
|
data/config/routes.rb
CHANGED
@@ -1,10 +1,27 @@
|
|
1
1
|
Rails.application.routes.draw do |map|
|
2
2
|
|
3
|
-
match
|
4
|
-
match
|
5
|
-
match
|
6
|
-
|
3
|
+
match 'login' => 'user_sessions#new'
|
4
|
+
match 'logout' => 'user_sessions#destroy'
|
5
|
+
match 'signup' => 'users#new'
|
6
|
+
#match 'sitemap(.:format)' => 'pages#sitemap'
|
7
7
|
|
8
|
-
|
8
|
+
resources :users
|
9
|
+
resource :user_session
|
10
|
+
|
11
|
+
match "/:year/:month/:day/:id" => "sb/posts#show", :constraints => { :year => /\d{4}/, :month => /\d{2}/, :day => /\d{2}/ }
|
12
|
+
match "/:year(/:month(/:day))" => "sb/posts#index", :constraints => { :year => /\d{4}/, :month => /\d{2}/, :day => /\d{2}/ }
|
13
|
+
match "/tag/:id" => 'sb/posts#tag'
|
14
|
+
|
15
|
+
match 'admin' => 'sb/admin/posts#index'
|
16
|
+
namespace :sb do
|
17
|
+
resources :posts
|
18
|
+
namespace :admin do
|
19
|
+
resources :posts do
|
20
|
+
get :publish, :on => :member
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
root :to => "sb/posts#index"
|
9
26
|
|
10
27
|
end
|
@@ -20,7 +20,10 @@ class SanteyBlogGenerator < Rails::Generators::Base
|
|
20
20
|
|
21
21
|
# copy stylesheets to public folder
|
22
22
|
def install_css
|
23
|
-
|
23
|
+
if options[:css] == true
|
24
|
+
directory "css", "public/stylesheets/santey_blog"
|
25
|
+
directory "images", "public/images/santey_blog"
|
26
|
+
end
|
24
27
|
end
|
25
28
|
|
26
29
|
# copy migrations to db/migrate
|
@@ -1,4 +1,4 @@
|
|
1
|
-
body {background:#FFF url("/images/body-bg.gif") top repeat-x;font-family: 'Baskerville', Georgia, Times, serif;font-size:14px;}
|
1
|
+
body {background:#FFF url("/images/santey_blog/body-bg.gif") top repeat-x;font-family: 'Baskerville', Georgia, Times, serif;font-size:14px;}
|
2
2
|
|
3
3
|
.clear {clear:both;float:none;height:0;font-size:0;line-height:0;}
|
4
4
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -10,12 +10,14 @@ class CreatePosts < ActiveRecord::Migration
|
|
10
10
|
t.timestamps
|
11
11
|
end
|
12
12
|
|
13
|
-
Post.
|
13
|
+
post = Post.new({
|
14
14
|
:user_id=>0,
|
15
15
|
:title=>"Welcome post",
|
16
16
|
:content=>"First post content ... <hr />",
|
17
17
|
:published=>true
|
18
18
|
})
|
19
|
+
post.tag_list = "first, santey_blog"
|
20
|
+
post.save
|
19
21
|
end
|
20
22
|
|
21
23
|
def self.down
|
data/santey_blog.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{santey_blog}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Alexander Shamne"]
|
12
|
-
s.date = %q{2010-06-
|
12
|
+
s.date = %q{2010-06-22}
|
13
13
|
s.description = %q{longer description of your gem}
|
14
14
|
s.email = %q{alexander.shamne@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -24,8 +24,14 @@ Gem::Specification.new do |s|
|
|
24
24
|
"README.rdoc",
|
25
25
|
"Rakefile",
|
26
26
|
"VERSION",
|
27
|
-
"app/controllers/posts_controller.rb",
|
27
|
+
"app/controllers/sb/admin/posts_controller.rb",
|
28
|
+
"app/controllers/sb/posts_controller.rb",
|
29
|
+
"app/controllers/sb_controller.rb",
|
30
|
+
"app/controllers/user_sessions_controller.rb",
|
31
|
+
"app/controllers/users_controller.rb",
|
28
32
|
"app/models/post.rb",
|
33
|
+
"app/models/user.rb",
|
34
|
+
"app/models/user_session.rb",
|
29
35
|
"app/views/includes/_archives.html.haml",
|
30
36
|
"app/views/includes/_disqus_comments.html.erb",
|
31
37
|
"app/views/includes/_footer.html.haml",
|
@@ -36,11 +42,20 @@ Gem::Specification.new do |s|
|
|
36
42
|
"app/views/includes/_recent.html.haml",
|
37
43
|
"app/views/includes/_tags.html.haml",
|
38
44
|
"app/views/includes/_top.html.haml",
|
39
|
-
"app/views/layouts/
|
40
|
-
"app/views/posts/
|
41
|
-
"app/views/posts/
|
42
|
-
"app/views/posts/
|
43
|
-
"app/views/posts/
|
45
|
+
"app/views/layouts/santey_blog.html.haml",
|
46
|
+
"app/views/sb/admin/posts/_form.html.haml",
|
47
|
+
"app/views/sb/admin/posts/_publish.html.haml",
|
48
|
+
"app/views/sb/admin/posts/edit.html.haml",
|
49
|
+
"app/views/sb/admin/posts/index.html.haml",
|
50
|
+
"app/views/sb/admin/posts/new.html.haml",
|
51
|
+
"app/views/sb/posts/_post.html.haml",
|
52
|
+
"app/views/sb/posts/index.html.haml",
|
53
|
+
"app/views/sb/posts/index.rss.builder",
|
54
|
+
"app/views/sb/posts/show.html.haml",
|
55
|
+
"app/views/user_sessions/new.html.erb",
|
56
|
+
"app/views/users/_form.html.haml",
|
57
|
+
"app/views/users/edit.html.haml",
|
58
|
+
"app/views/users/new.html.haml",
|
44
59
|
"config/routes.rb",
|
45
60
|
"lib/generators/santey_blog_generator.rb",
|
46
61
|
"lib/generators/templates/css/blueprint/TUTORIAL.textile",
|
@@ -74,6 +89,13 @@ Gem::Specification.new do |s|
|
|
74
89
|
"lib/generators/templates/css/blueprint/src/reset.css",
|
75
90
|
"lib/generators/templates/css/blueprint/src/typography.css",
|
76
91
|
"lib/generators/templates/css/screen.css",
|
92
|
+
"lib/generators/templates/images/body-bg.gif",
|
93
|
+
"lib/generators/templates/images/icons/Thumbs.db",
|
94
|
+
"lib/generators/templates/images/icons/delete.png",
|
95
|
+
"lib/generators/templates/images/icons/edit.png",
|
96
|
+
"lib/generators/templates/images/icons/selected.png",
|
97
|
+
"lib/generators/templates/images/icons/unselected.png",
|
98
|
+
"lib/generators/templates/images/logo.png",
|
77
99
|
"lib/generators/templates/initializers/santey_blog.rb",
|
78
100
|
"lib/generators/templates/migrations/create_posts.rb",
|
79
101
|
"lib/santey_blog.rb",
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
- 1
|
8
7
|
- 2
|
9
|
-
|
8
|
+
- 0
|
9
|
+
version: 0.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Alexander Shamne
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-22 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -70,8 +70,14 @@ files:
|
|
70
70
|
- README.rdoc
|
71
71
|
- Rakefile
|
72
72
|
- VERSION
|
73
|
-
- app/controllers/posts_controller.rb
|
73
|
+
- app/controllers/sb/admin/posts_controller.rb
|
74
|
+
- app/controllers/sb/posts_controller.rb
|
75
|
+
- app/controllers/sb_controller.rb
|
76
|
+
- app/controllers/user_sessions_controller.rb
|
77
|
+
- app/controllers/users_controller.rb
|
74
78
|
- app/models/post.rb
|
79
|
+
- app/models/user.rb
|
80
|
+
- app/models/user_session.rb
|
75
81
|
- app/views/includes/_archives.html.haml
|
76
82
|
- app/views/includes/_disqus_comments.html.erb
|
77
83
|
- app/views/includes/_footer.html.haml
|
@@ -82,11 +88,20 @@ files:
|
|
82
88
|
- app/views/includes/_recent.html.haml
|
83
89
|
- app/views/includes/_tags.html.haml
|
84
90
|
- app/views/includes/_top.html.haml
|
85
|
-
- app/views/layouts/
|
86
|
-
- app/views/posts/
|
87
|
-
- app/views/posts/
|
88
|
-
- app/views/posts/
|
89
|
-
- app/views/posts/
|
91
|
+
- app/views/layouts/santey_blog.html.haml
|
92
|
+
- app/views/sb/admin/posts/_form.html.haml
|
93
|
+
- app/views/sb/admin/posts/_publish.html.haml
|
94
|
+
- app/views/sb/admin/posts/edit.html.haml
|
95
|
+
- app/views/sb/admin/posts/index.html.haml
|
96
|
+
- app/views/sb/admin/posts/new.html.haml
|
97
|
+
- app/views/sb/posts/_post.html.haml
|
98
|
+
- app/views/sb/posts/index.html.haml
|
99
|
+
- app/views/sb/posts/index.rss.builder
|
100
|
+
- app/views/sb/posts/show.html.haml
|
101
|
+
- app/views/user_sessions/new.html.erb
|
102
|
+
- app/views/users/_form.html.haml
|
103
|
+
- app/views/users/edit.html.haml
|
104
|
+
- app/views/users/new.html.haml
|
90
105
|
- config/routes.rb
|
91
106
|
- lib/generators/santey_blog_generator.rb
|
92
107
|
- lib/generators/templates/css/blueprint/TUTORIAL.textile
|
@@ -120,6 +135,13 @@ files:
|
|
120
135
|
- lib/generators/templates/css/blueprint/src/reset.css
|
121
136
|
- lib/generators/templates/css/blueprint/src/typography.css
|
122
137
|
- lib/generators/templates/css/screen.css
|
138
|
+
- lib/generators/templates/images/body-bg.gif
|
139
|
+
- lib/generators/templates/images/icons/Thumbs.db
|
140
|
+
- lib/generators/templates/images/icons/delete.png
|
141
|
+
- lib/generators/templates/images/icons/edit.png
|
142
|
+
- lib/generators/templates/images/icons/selected.png
|
143
|
+
- lib/generators/templates/images/icons/unselected.png
|
144
|
+
- lib/generators/templates/images/logo.png
|
123
145
|
- lib/generators/templates/initializers/santey_blog.rb
|
124
146
|
- lib/generators/templates/migrations/create_posts.rb
|
125
147
|
- lib/santey_blog.rb
|