typo 5.4.1 → 5.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +10 -24
- data/app/controllers/accounts_controller.rb +18 -1
- data/app/controllers/admin/content_controller.rb +1 -0
- data/app/controllers/admin/resources_controller.rb +17 -3
- data/app/controllers/application_controller.rb +2 -5
- data/app/helpers/admin/base_helper.rb +16 -6
- data/app/helpers/admin/resources_helper.rb +6 -0
- data/app/helpers/application_helper.rb +7 -8
- data/app/models/article.rb +8 -10
- data/app/models/blog.rb +26 -24
- data/app/models/content.rb +17 -10
- data/app/models/feedback.rb +1 -1
- data/app/models/page.rb +1 -1
- data/app/models/resource.rb +14 -0
- data/app/models/user.rb +1 -0
- data/app/views/accounts/login.html.erb +2 -1
- data/app/views/accounts/recover_password.html.erb +18 -0
- data/app/views/admin/content/_form.html.erb +8 -5
- data/app/views/admin/content/_images.html.erb +14 -0
- data/app/views/admin/content/_visual_editor.html.erb +5 -0
- data/app/views/admin/pages/_visual_editor.html.erb +9 -5
- data/app/views/admin/resources/_upload.html.erb +10 -0
- data/app/views/admin/resources/get_thumbnails.html.erb +5 -0
- data/app/views/admin/resources/images.html.erb +28 -0
- data/app/views/admin/resources/index.html.erb +42 -11
- data/app/views/layouts/administration.html.erb +1 -1
- data/app/views/notification_mailer/notif_user.html.erb +1 -1
- data/config/environment.rb +1 -1
- data/config/initializers/access_rules.rb +2 -1
- data/config/initializers/inflector.rb +4 -1
- data/db/schema.rb +26 -32
- data/lib/tasks/release.rake +1 -1
- data/lib/typo_version.rb +1 -1
- data/public/images/thumb_blank.jpg +0 -0
- data/public/javascripts/base_packaged.js +377 -0
- data/public/javascripts/ckeditor/config.bak +27 -11
- data/public/javascripts/quicktags.js +11 -0
- data/public/javascripts/typo_carousel.js +340 -0
- data/public/stylesheets/administration.css +16 -0
- data/public/stylesheets/base_packaged.css +100 -0
- data/script/about +3 -2
- data/script/console +1 -1
- data/script/dbconsole +1 -1
- data/script/destroy +1 -1
- data/script/generate +1 -1
- data/script/performance/benchmarker +1 -1
- data/script/performance/profiler +1 -1
- data/script/plugin +2 -2
- data/script/runner +2 -2
- data/script/server +2 -2
- data/spec/controllers/accounts_controller_spec.rb +47 -0
- data/spec/controllers/admin/content_controller_spec.rb +4 -0
- data/spec/controllers/admin/resources_controller_spec.rb +8 -0
- data/spec/controllers/xml_controller_spec.rb +13 -16
- data/spec/factories.rb +14 -1
- data/spec/models/article_spec.rb +57 -14
- data/spec/models/blog_spec.rb +50 -3
- data/spec/models/trackback_spec.rb +1 -1
- data/spec/models/user_spec.rb +7 -12
- data/spec/spec_helper.rb +1 -1
- data/test/fixtures/users.yml +15 -8
- data/themes/true-blue-3/images/background.gif +0 -0
- data/vendor/plugins/easy-ckeditor/lib/ckeditor.rb +1 -2
- data/vendor/plugins/easy-ckeditor/lib/ckeditor_file_utils.rb +2 -2
- metadata +11 -11
- data/app/views/admin/resources/_resources.html.erb +0 -41
- data/script/benchmarker +0 -19
- data/script/performance/request +0 -3
- data/script/process/inspector +0 -3
- data/script/process/reaper +0 -3
- data/script/process/spawner +0 -3
- data/script/process/spinner +0 -3
- data/script/profiler +0 -34
- data/script/spec_server +0 -9
data/app/models/resource.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'tempfile'
|
2
|
+
require 'mini_magick'
|
2
3
|
|
3
4
|
class Resource < ActiveRecord::Base
|
4
5
|
validates_uniqueness_of :filename
|
@@ -31,6 +32,7 @@ class Resource < ActiveRecord::Base
|
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
35
|
+
|
34
36
|
def fullpath(file = nil)
|
35
37
|
"#{RAILS_ROOT}/public/files/#{file.nil? ? filename : file}"
|
36
38
|
end
|
@@ -59,6 +61,18 @@ class Resource < ActiveRecord::Base
|
|
59
61
|
end
|
60
62
|
end
|
61
63
|
|
64
|
+
def create_thumbnail
|
65
|
+
return unless self.mime =~ /image/ or File.exists?(fullpath("thumb_#{self.filename}"))
|
66
|
+
return unless File.exists?(fullpath("#{self.filename}"))
|
67
|
+
begin
|
68
|
+
img_orig = MiniMagick::Image.from_file(fullpath(self.filename))
|
69
|
+
img_orig = img_orig.resize('125x125')
|
70
|
+
img_orig.write(fullpath("thumb_#{self.filename}"))
|
71
|
+
rescue
|
72
|
+
nil
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
62
76
|
|
63
77
|
protected
|
64
78
|
def uniq_filename_on_disk
|
data/app/models/user.rb
CHANGED
@@ -25,7 +25,8 @@
|
|
25
25
|
</p>
|
26
26
|
|
27
27
|
<p>
|
28
|
-
<small><%= link_to "« #{_('Back to ')} #{this_blog.blog_name}", this_blog.base_url %></small
|
28
|
+
<small><%= link_to "« #{_('Back to ')} #{this_blog.blog_name}", this_blog.base_url %></small><br />
|
29
|
+
<small><%= link_to "#{_("I've lost my password")} »", :action => 'recover_password' %></small>
|
29
30
|
</p>
|
30
31
|
<% end %>
|
31
32
|
</div>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<%= content_tag :h3, link_to(image_tag("/images/admin/typologo.gif", :alt=>"Typo website"), "http://typosphere.org") %>
|
2
|
+
|
3
|
+
<p id="flash"><%= render_flash rescue nil %></p>
|
4
|
+
|
5
|
+
<% form_tag :action=> "recover_password" do %>
|
6
|
+
<div>
|
7
|
+
<h2><label for="user_login"><%= _("Username or email") %>:</label></h2>
|
8
|
+
<p class='input_text_title'>
|
9
|
+
<%= text_field(:user, :login, {:class => 'title large'})%>
|
10
|
+
</p>
|
11
|
+
</div>
|
12
|
+
<p><input type="submit" id="submit" class='save large' value="<%= _('Submit')%>" /></p>
|
13
|
+
<p>
|
14
|
+
<small><%= link_to "« #{_('Back to ')} #{this_blog.blog_name}", this_blog.base_url %></small>
|
15
|
+
</p>
|
16
|
+
|
17
|
+
<% end %>
|
18
|
+
|
@@ -50,13 +50,16 @@
|
|
50
50
|
</span>
|
51
51
|
</div>
|
52
52
|
<div id="editor">
|
53
|
+
<%= render(:partial => 'images', :object => @images) unless @images.empty? %>
|
53
54
|
<div id='quicktags' style='<%= "display: none;" if current_user.editor == 'visual' %>'>
|
54
55
|
<script type="text/javascript">edToolbar('article_body_and_extended');</script>
|
55
56
|
</div>
|
56
|
-
<div id='<%=
|
57
|
-
|
58
|
-
|
59
|
-
|
57
|
+
<div id ='visual_editor' <%= "style='display: none;'" if current_user.editor == 'simple'%> >
|
58
|
+
<%= ckeditor_textarea('article', 'body_and_extended', {:height => '300px', :class => 'large', :height => '300px', :rows => '15'}) if current_user.editor == 'visual' %>
|
59
|
+
</div>
|
60
|
+
<div id='simple_editor' <%= "style='display: none;'" if current_user.editor == 'visual'%> >
|
61
|
+
<%= text_area('article', 'body_and_extended', {:height => '300px', :class => 'large', :height => '300px', :rows => '15'}) %>
|
62
|
+
<%= render_macros(@macros) if current_user.editor == 'simple' %>
|
60
63
|
</div>
|
61
64
|
</div>
|
62
65
|
<div class='editor_bottom'>
|
@@ -72,7 +75,7 @@
|
|
72
75
|
|
73
76
|
<h3><label for='article_excerpt'><%= _("Excerpt") %></label></h3>
|
74
77
|
<div class='blue_block'>
|
75
|
-
<%=
|
78
|
+
<%= text_area 'article', 'excerpt', {:height => '150', :class => 'large', :rows => '5'} %>
|
76
79
|
<p><%=_("Excerpts are posts summaries that are shown on your blog homepage only but won’t appear on the post itself")%></p>
|
77
80
|
</div>
|
78
81
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<a href="javascript:" class="carousel-control" rel="prev">Previous</a>
|
2
|
+
<div id="carousel-wrapper">
|
3
|
+
<div id="carousel-content">
|
4
|
+
<% @images.each do |image| %>
|
5
|
+
<div class="slide">
|
6
|
+
<%= show_thumbnail_for_editor(image) %>
|
7
|
+
</div>
|
8
|
+
<% end %>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
<a href="javascript:" class="carousel-control" rel="next">Next</a>
|
12
|
+
<script type='text/javascript'>
|
13
|
+
new Carousel('carousel-wrapper', $$('#carousel-content .slide'), $$('a.carousel-control', 'a.carousel-jumper'), {duration: 0.4, circular: false});
|
14
|
+
</script>
|
@@ -6,6 +6,11 @@
|
|
6
6
|
$('f').className = 'active';
|
7
7
|
$('text_filter').value = 'none';
|
8
8
|
html = $('article_body_and_extended').value;
|
9
|
+
|
10
|
+
if (CKEDITOR.instances.article__body_and_extended_editor &&
|
11
|
+
typeof(CKEDITOR.instances.article__body_and_extended_editor) == 'object') {
|
12
|
+
delete(CKEDITOR.instances.article__body_and_extended_editor);
|
13
|
+
}
|
9
14
|
</script>
|
10
15
|
<%= ckeditor_textarea('article', 'body_and_extended', {:height => '300', :class => 'medium'}) %>
|
11
16
|
<script type="text/javascript">
|
@@ -4,11 +4,15 @@
|
|
4
4
|
$('visual_editor').style.display = 'block';
|
5
5
|
$('s').className = 'inactive';
|
6
6
|
$('f').className = 'active';
|
7
|
+
html = $('page_body').value;
|
7
8
|
|
8
|
-
if (
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
if (CKEDITOR.instances.page__body_editor &&
|
10
|
+
typeof(CKEDITOR.instances.page__body_editor) == 'object') {
|
11
|
+
delete(CKEDITOR.instances.page__body_editor);
|
12
|
+
}
|
13
|
+
|
13
14
|
</script>
|
14
15
|
<%= ckeditor_textarea('page', 'body', {:height => '300', :class => 'medium'}) %>
|
16
|
+
<script type="text/javascript">
|
17
|
+
content = CKEDITOR.instances.page__body_editor.setData(html);
|
18
|
+
</script>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<%= form_tag_with_upload_progress({:action => 'upload'}, { :begin => "new Effect.Appear('status')", :finish => "$('message').innertHTML = arguments[0]" }) %>
|
2
|
+
|
3
|
+
<fieldset>
|
4
|
+
<legend><%= _('Upload a File to your Site') %></legend>
|
5
|
+
<label for="upload_filename"><%= _('File') %>:</label> <%= file_field('upload', 'filename') -%>
|
6
|
+
<%= submit_tag(_('Upload'), {:class => 'save'}) -%>
|
7
|
+
<div id='status' style="display: none"><%= upload_status_tag %></div>
|
8
|
+
<div id="message"><%= @message %></div>
|
9
|
+
</fieldset>
|
10
|
+
</form>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<% @page_heading = _('Images') %>
|
2
|
+
<% subtabs_for(:content) %>
|
3
|
+
|
4
|
+
<%= render :partial => 'upload' -%>
|
5
|
+
|
6
|
+
<table>
|
7
|
+
<tr>
|
8
|
+
<th><%= _("Thumbnail")%> <small>(<%= _('right-click for link')%>)</small></th>
|
9
|
+
<th><%= _("Content Type")%></th>
|
10
|
+
<th><%= _("File Size")%></th>
|
11
|
+
<th><%= _("Date")%></th>
|
12
|
+
<th><%= _("Delete")%></th>
|
13
|
+
</tr>
|
14
|
+
<%= render_void_table(@resources.size, 6) %>
|
15
|
+
<% @resources.each do |image| %>
|
16
|
+
<tr>
|
17
|
+
<td>
|
18
|
+
<a href='<%= "#{this_blog.base_url}/files/#{image.filename}" %>' rel='lightbox'>
|
19
|
+
<%= show_thumbnail(image) %>
|
20
|
+
</a>
|
21
|
+
</td>
|
22
|
+
<td><%= image.mime %></td>
|
23
|
+
<td><%=h image.size rescue 0 -%> bytes</td>
|
24
|
+
<td><%=h image.created_at.strftime('%Y-%m-%d %H:%M:%S') -%></td>
|
25
|
+
<td class="operation"><%= link_to _("delete"), {:action => 'destroy', :id => image.id, :search => params[:search], :page => params[:page] }, :confirm => _("Are you sure?"), :method => :post %></td></tr>
|
26
|
+
<% end %>
|
27
|
+
|
28
|
+
</table>
|
@@ -1,15 +1,46 @@
|
|
1
1
|
<% @page_heading = _('Uploads') %>
|
2
2
|
<% subtabs_for(:content) %>
|
3
3
|
|
4
|
-
<%=
|
4
|
+
<%= render :partial => 'upload' -%>
|
5
5
|
|
6
|
-
<
|
7
|
-
|
8
|
-
<
|
9
|
-
|
10
|
-
<
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
6
|
+
<table>
|
7
|
+
<tr>
|
8
|
+
<th><%= _("Filename")%> <small>(<%= _('right-click for link')%>)</small></th>
|
9
|
+
<th><%= _("Content Type")%></th>
|
10
|
+
<th><%= _("MetaData")%></th>
|
11
|
+
<th><%= _("File Size")%></th>
|
12
|
+
<th><%= _("Date")%></th>
|
13
|
+
<th><%= _("Delete")%></th>
|
14
|
+
</tr>
|
15
|
+
<%= render_void_table(@resources.size, 6) %>
|
16
|
+
<% for upload in @resources -%>
|
17
|
+
<tr <%= alternate_class -%>>
|
18
|
+
<td><%= link_to ("#{upload.filename}", "#{this_blog.base_url}/files/#{upload.filename}", {:rel => 'lightbox'}) -%></td>
|
19
|
+
<td>
|
20
|
+
<%= task_edit_resource_mime(upload.mime, upload.id) %>
|
21
|
+
<div id="edit-resource-mime-<%= upload.id %>" style="display:none;position:absolute;">
|
22
|
+
<%= render :partial => "mime_edit", :locals => {:id => upload.id, :mime => upload.mime} %>
|
23
|
+
</div>
|
24
|
+
</td>
|
25
|
+
<% if upload.itunes_metadata? %>
|
26
|
+
<td>
|
27
|
+
<%= task_edit_resource_metadata(_("Edit MetaData") + ' (+/-)', upload.id) %>
|
28
|
+
<div id="edit-resource-metadata-<%= upload.id%>" style="display:none;position:absolute;">
|
29
|
+
<%= render :partial => "metadata_edit" , :locals => {:id => upload.id, :resource => upload}%>
|
30
|
+
</div>
|
31
|
+
</td>
|
32
|
+
<% else -%>
|
33
|
+
<td>
|
34
|
+
<%= task_add_resource_metadata(_("Add MetaData") + ' (+/-)', upload.id) %>
|
35
|
+
<div id="add-resource-metadata-<%= upload.id%>" style="display:none;position:absolute;">
|
36
|
+
<%= render :partial => "metadata_add", :locals => {:id => upload.id} %>
|
37
|
+
</div>
|
38
|
+
</td>
|
39
|
+
<% end -%>
|
40
|
+
<td><%=h upload.size rescue 0 -%> bytes</td>
|
41
|
+
<td><%=h upload.created_at.strftime('%Y-%m-%d %H:%M:%S') -%></td>
|
42
|
+
<td class="operation"><%= link_to _("delete"), {:action => 'destroy', :id => upload.id, :search => params[:search], :page => params[:page] }, :confirm => _("Are you sure?"), :method => :post %></td>
|
43
|
+
</tr>
|
44
|
+
<% end -%>
|
45
|
+
<%= display_pagination(@resources, 6)%>
|
46
|
+
</table>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<meta http-equiv="imagetoolbar" content="no" />
|
8
8
|
<%= stylesheet_link_tag "growler", "administration", "lightbox" %>
|
9
9
|
<%= stylesheet_link_tag "administration_rtl" if ( _("Localization.rtl") == "1") %>
|
10
|
-
<%= javascript_include_tag "prototype", "effects", "builder", "dragdrop", "controls", "typo", "lightbox", "quicktags", "growler", "administration", :ckeditor %>
|
10
|
+
<%= javascript_include_tag "prototype", "effects", "builder", "dragdrop", "controls", "typo", "lightbox", "quicktags", "growler", "typo_carousel", "administration", :ckeditor %>
|
11
11
|
<%= calendar_date_select_includes %>
|
12
12
|
</head>
|
13
13
|
|
data/config/environment.rb
CHANGED
@@ -47,7 +47,7 @@ Rails::Initializer.run do |config|
|
|
47
47
|
config.gem 'RedCloth', :version => '~> 4.2.2'
|
48
48
|
config.gem 'panztel-actionwebservice', :version => '2.3.5', :lib => 'actionwebservice'
|
49
49
|
config.gem 'addressable', :version => '~> 2.1.0', :lib => 'addressable/uri'
|
50
|
-
|
50
|
+
config.gem 'mini_magick', :version => '~> 1.2.5', :lib => 'mini_magick'
|
51
51
|
|
52
52
|
# Use the database for sessions instead of the file system
|
53
53
|
# (create the session table with 'rake create_sessions_table')
|
@@ -65,7 +65,8 @@ AccessControl.map :require => [ :admin, :publisher, :contributor ] do |map|
|
|
65
65
|
project.submenu "Comments", { :controller => "admin/feedback" }
|
66
66
|
project.submenu "Pages", { :controller => "admin/pages", :action => "index" }
|
67
67
|
project.submenu "Categories", { :controller => "admin/categories", :action => "index" }
|
68
|
-
project.submenu "
|
68
|
+
project.submenu "Files", { :controller => "admin/resources", :action => "index" }
|
69
|
+
project.submenu "Images", { :controller => "admin/resources", :action => "images"}
|
69
70
|
project.submenu "Tags", { :controller => "admin/tags", :action => "index" }
|
70
71
|
project.submenu "", { :controller => "admin/comments", :action => "show" }
|
71
72
|
project.submenu "", { :controller => "admin/comments", :action => "new" }
|
data/db/schema.rb
CHANGED
@@ -17,10 +17,12 @@ ActiveRecord::Schema.define(:version => 86) do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
create_table "blacklist_patterns", :force => true do |t|
|
20
|
-
t.string "type"
|
20
|
+
t.string "type"
|
21
21
|
t.string "pattern"
|
22
22
|
end
|
23
23
|
|
24
|
+
add_index "blacklist_patterns", ["pattern"], :name => "index_blacklist_patterns_on_pattern"
|
25
|
+
|
24
26
|
create_table "blogs", :force => true do |t|
|
25
27
|
t.text "settings"
|
26
28
|
t.string "base_url"
|
@@ -36,14 +38,14 @@ ActiveRecord::Schema.define(:version => 86) do
|
|
36
38
|
|
37
39
|
create_table "categories", :force => true do |t|
|
38
40
|
t.string "name"
|
39
|
-
t.integer "position"
|
41
|
+
t.integer "position"
|
40
42
|
t.string "permalink"
|
41
43
|
t.text "keywords"
|
42
44
|
t.text "description"
|
43
45
|
t.integer "parent_id"
|
44
46
|
end
|
45
47
|
|
46
|
-
add_index "categories", ["permalink"], :name => "
|
48
|
+
add_index "categories", ["permalink"], :name => "index_categories_on_permalink"
|
47
49
|
|
48
50
|
create_table "categorizations", :force => true do |t|
|
49
51
|
t.integer "article_id"
|
@@ -75,8 +77,8 @@ ActiveRecord::Schema.define(:version => 86) do
|
|
75
77
|
t.integer "parent_id"
|
76
78
|
end
|
77
79
|
|
78
|
-
add_index "contents", ["published"], :name => "
|
79
|
-
add_index "contents", ["text_filter_id"], :name => "
|
80
|
+
add_index "contents", ["published"], :name => "index_contents_on_published"
|
81
|
+
add_index "contents", ["text_filter_id"], :name => "index_contents_on_text_filter_id"
|
80
82
|
|
81
83
|
create_table "feedback", :force => true do |t|
|
82
84
|
t.string "type"
|
@@ -101,8 +103,8 @@ ActiveRecord::Schema.define(:version => 86) do
|
|
101
103
|
t.boolean "status_confirmed"
|
102
104
|
end
|
103
105
|
|
104
|
-
add_index "feedback", ["article_id"], :name => "
|
105
|
-
add_index "feedback", ["text_filter_id"], :name => "
|
106
|
+
add_index "feedback", ["article_id"], :name => "index_feedback_on_article_id"
|
107
|
+
add_index "feedback", ["text_filter_id"], :name => "index_feedback_on_text_filter_id"
|
106
108
|
|
107
109
|
create_table "notifications", :force => true do |t|
|
108
110
|
t.integer "content_id"
|
@@ -112,10 +114,10 @@ ActiveRecord::Schema.define(:version => 86) do
|
|
112
114
|
end
|
113
115
|
|
114
116
|
create_table "page_caches", :force => true do |t|
|
115
|
-
t.string "name"
|
117
|
+
t.string "name"
|
116
118
|
end
|
117
119
|
|
118
|
-
add_index "page_caches", ["name"], :name => "
|
120
|
+
add_index "page_caches", ["name"], :name => "index_page_caches_on_name"
|
119
121
|
|
120
122
|
create_table "pings", :force => true do |t|
|
121
123
|
t.integer "article_id"
|
@@ -123,7 +125,7 @@ ActiveRecord::Schema.define(:version => 86) do
|
|
123
125
|
t.datetime "created_at"
|
124
126
|
end
|
125
127
|
|
126
|
-
add_index "pings", ["article_id"], :name => "
|
128
|
+
add_index "pings", ["article_id"], :name => "index_pings_on_article_id"
|
127
129
|
|
128
130
|
create_table "profiles", :force => true do |t|
|
129
131
|
t.string "label"
|
@@ -164,20 +166,19 @@ ActiveRecord::Schema.define(:version => 86) do
|
|
164
166
|
end
|
165
167
|
|
166
168
|
create_table "sessions", :force => true do |t|
|
167
|
-
t.string "sessid"
|
169
|
+
t.string "sessid"
|
168
170
|
t.text "data"
|
171
|
+
t.datetime "created_at"
|
169
172
|
t.datetime "updated_at"
|
170
173
|
end
|
171
174
|
|
172
|
-
add_index "sessions", ["sessid"], :name => "
|
173
|
-
add_index "sessions", ["sessid"], :name => "sessions_sessid_index"
|
175
|
+
add_index "sessions", ["sessid"], :name => "index_sessions_on_sessid"
|
174
176
|
|
175
177
|
create_table "sidebars", :force => true do |t|
|
176
|
-
t.integer
|
177
|
-
t.text
|
178
|
-
t.integer
|
179
|
-
t.
|
180
|
-
t.string "type"
|
178
|
+
t.integer "active_position"
|
179
|
+
t.text "config"
|
180
|
+
t.integer "staged_position"
|
181
|
+
t.string "type"
|
181
182
|
end
|
182
183
|
|
183
184
|
create_table "sitealizer", :force => true do |t|
|
@@ -205,11 +206,6 @@ ActiveRecord::Schema.define(:version => 86) do
|
|
205
206
|
t.text "params"
|
206
207
|
end
|
207
208
|
|
208
|
-
create_table "text_link_ads_rss", :force => true do |t|
|
209
|
-
t.string "html", :limit => 1024
|
210
|
-
t.integer "post_id"
|
211
|
-
end
|
212
|
-
|
213
209
|
create_table "triggers", :force => true do |t|
|
214
210
|
t.integer "pending_item_id"
|
215
211
|
t.string "pending_item_type"
|
@@ -218,10 +214,10 @@ ActiveRecord::Schema.define(:version => 86) do
|
|
218
214
|
end
|
219
215
|
|
220
216
|
create_table "users", :force => true do |t|
|
221
|
-
t.string "login"
|
222
|
-
t.string "password"
|
223
|
-
t.
|
224
|
-
t.
|
217
|
+
t.string "login"
|
218
|
+
t.string "password"
|
219
|
+
t.text "email"
|
220
|
+
t.text "name"
|
225
221
|
t.boolean "notify_via_email"
|
226
222
|
t.boolean "notify_on_new_articles"
|
227
223
|
t.boolean "notify_on_comments"
|
@@ -230,9 +226,9 @@ ActiveRecord::Schema.define(:version => 86) do
|
|
230
226
|
t.integer "profile_id"
|
231
227
|
t.string "remember_token"
|
232
228
|
t.datetime "remember_token_expires_at"
|
233
|
-
t.string "text_filter_id",
|
234
|
-
t.string "editor",
|
235
|
-
t.string "state",
|
229
|
+
t.string "text_filter_id", :default => "1"
|
230
|
+
t.string "editor", :default => "simple"
|
231
|
+
t.string "state", :default => "active"
|
236
232
|
t.string "firstname"
|
237
233
|
t.string "lastname"
|
238
234
|
t.string "nickname"
|
@@ -251,6 +247,4 @@ ActiveRecord::Schema.define(:version => 86) do
|
|
251
247
|
t.datetime "last_connection"
|
252
248
|
end
|
253
249
|
|
254
|
-
add_index "users", ["login"], :name => "login", :unique => true
|
255
|
-
|
256
250
|
end
|