typo 4.1 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/TODO-4.2 +14 -0
- data/TODO.MULTIUSERS +45 -0
- data/app/controllers/admin/base_controller.rb +18 -0
- data/app/controllers/admin/general_controller.rb +14 -0
- data/app/controllers/application.rb +2 -1
- data/app/controllers/articles_controller.rb +18 -21
- data/app/helpers/admin/base_helper.rb +4 -4
- data/app/helpers/admin/feedback_helper.rb +3 -3
- data/app/helpers/application_helper.rb +2 -6
- data/app/helpers/sidebar_helper.rb +2 -2
- data/app/models/blog.rb +9 -1
- data/app/models/category.rb +9 -9
- data/app/models/comment.rb +1 -1
- data/app/models/content_state/presumed_ham.rb +2 -2
- data/app/models/resource.rb +2 -0
- data/app/views/admin/categories/_categories.rhtml +10 -6
- data/app/views/admin/categories/edit.rhtml +3 -1
- data/app/views/admin/comments/_form.rhtml +3 -3
- data/app/views/admin/comments/list.rhtml +7 -5
- data/app/views/admin/comments/new.rhtml +3 -1
- data/app/views/admin/comments/show.rhtml +3 -1
- data/app/views/admin/content/_articles.rhtml +1 -1
- data/app/views/admin/content/_form.rhtml +4 -2
- data/app/views/admin/content/new.rhtml +1 -0
- data/app/views/admin/content/preview.rhtml +8 -8
- data/app/views/admin/feedback/_item.rhtml +3 -1
- data/app/views/admin/feedback/list.rhtml +4 -4
- data/app/views/admin/general/index.rhtml +14 -1
- data/app/views/admin/pages/_form.rhtml +1 -1
- data/app/views/admin/pages/destroy.rhtml +1 -1
- data/app/views/admin/pages/new.rhtml +1 -0
- data/app/views/admin/shared/_edit.rhtml +2 -2
- data/app/views/layouts/administration.rhtml +5 -2
- data/app/views/layouts/minimal.rhtml +134 -2
- data/config/boot.rb +1 -1
- data/config/environment.rb +11 -3
- data/config/environments/test.rb +0 -7
- data/config/routes.rb +3 -0
- data/db/migrate/004_add_sidebars.rb +21 -3
- data/db/migrate/056_create_notifications.rb +1 -1
- data/db/migrate/062_add_sitealizer_plugin.rb +18 -0
- data/db/schema.mysql-v3.sql +217 -0
- data/db/schema.mysql.sql +31 -5
- data/db/schema.postgresql.sql +31 -6
- data/db/schema.rb +17 -7
- data/db/schema.sqlite.sql +31 -6
- data/db/schema.sqlserver.sql +32 -6
- data/db/schema_version +1 -1
- data/lang/de_DE.rb +493 -0
- data/lang/fr_FR.rb +28 -4
- data/lang/ro_RO.rb +554 -0
- data/lib/tasks/release.rake +7 -7
- data/lib/typo_version.rb +1 -1
- data/public/images/sitealizer/bar.gif +0 -0
- data/public/images/sitealizer/uv.png +0 -0
- data/public/images/sitealizer/vh.png +0 -0
- data/public/javascripts/tiny_mce/blank.htm +9 -0
- data/public/javascripts/tiny_mce/langs/en.js +41 -0
- data/public/javascripts/tiny_mce/license.txt +504 -0
- data/public/javascripts/tiny_mce/themes/advanced/about.htm +52 -0
- data/public/javascripts/tiny_mce/themes/advanced/anchor.htm +33 -0
- data/public/javascripts/tiny_mce/themes/advanced/charmap.htm +53 -0
- data/public/javascripts/tiny_mce/themes/advanced/color_picker.htm +13 -0
- data/public/javascripts/tiny_mce/themes/advanced/css/editor_content.css +58 -0
- data/public/javascripts/tiny_mce/themes/advanced/css/editor_popup.css +331 -0
- data/public/javascripts/tiny_mce/themes/advanced/css/editor_ui.css +97 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/about.htm +31 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/common_buttons.htm +162 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/create_accessible_content.htm +45 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/images/insert_anchor_window.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/images/insert_image_window.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/images/insert_link_window.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/images/insert_table_window.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/index.htm +27 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/insert_anchor_button.htm +32 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/insert_image_button.htm +65 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/insert_link_button.htm +33 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/insert_table_button.htm +71 -0
- data/public/javascripts/tiny_mce/themes/advanced/docs/en/style.css +28 -0
- data/public/javascripts/tiny_mce/themes/advanced/editor_template.js +1 -0
- data/public/javascripts/tiny_mce/themes/advanced/editor_template_src.js +1534 -0
- data/public/javascripts/tiny_mce/themes/advanced/image.htm +100 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/anchor.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/anchor_symbol.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/backcolor.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bold.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bold_de_se.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bold_es.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bold_fr.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bold_ru.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bold_tw.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/browse.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/bullist.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/button_menu.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/buttons.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/cancel_button_bg.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/charmap.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/cleanup.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/close.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/code.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/color.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/copy.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/custom_1.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/cut.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/forecolor.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/help.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/hr.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/image.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/indent.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/insert_button_bg.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/italic.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/italic_de_se.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/italic_es.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/italic_ru.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/italic_tw.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/justifycenter.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/justifyfull.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/justifyleft.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/justifyright.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/link.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/menu_check.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/newdocument.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/numlist.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/opacity.png +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/outdent.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/paste.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/redo.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/removeformat.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/separator.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/spacer.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/statusbar_resize.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/strikethrough.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/sub.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/sup.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/underline.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/underline_es.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/underline_fr.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/underline_ru.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/underline_tw.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/undo.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/unlink.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/visualaid.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/xp/tab_bg.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/xp/tab_end.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/xp/tab_sel_bg.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/xp/tab_sel_end.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/images/xp/tabs_bg.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/about.js +75 -0
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/anchor.js +74 -0
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/charmap.js +326 -0
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/color_picker.js +108 -0
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/image.js +81 -0
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/link.js +70 -0
- data/public/javascripts/tiny_mce/themes/advanced/jscripts/source_editor.js +60 -0
- data/public/javascripts/tiny_mce/themes/advanced/langs/en.js +82 -0
- data/public/javascripts/tiny_mce/themes/advanced/link.htm +100 -0
- data/public/javascripts/tiny_mce/themes/advanced/source_editor.htm +32 -0
- data/public/javascripts/tiny_mce/tiny_mce.js +1 -0
- data/public/javascripts/tiny_mce/tiny_mce_popup.js +288 -0
- data/public/javascripts/tiny_mce/tiny_mce_src.js +7284 -0
- data/public/javascripts/tiny_mce/utils/editable_selects.js +61 -0
- data/public/javascripts/tiny_mce/utils/form_utils.js +210 -0
- data/public/javascripts/tiny_mce/utils/mclayer.js +210 -0
- data/public/javascripts/tiny_mce/utils/mctabs.js +74 -0
- data/public/javascripts/tiny_mce/utils/validate.js +219 -0
- data/public/stylesheets/administration.css +5 -1
- data/public/stylesheets/minimal.css +1 -0
- data/test/functional/admin/categories_controller_test.rb +2 -2
- data/test/functional/xml_controller_test.rb +72 -40
- data/test/test_helper.rb +1 -17
- data/test/unit/article_test.rb +1 -1
- data/test/unit/trigger_test.rb +1 -1
- data/themes/scribbish/views/articles/_comment.rhtml +13 -17
- data/themes/scribbish/views/articles/_comment_form.rhtml +7 -5
- data/themes/scribbish/views/articles/_comment_list.rhtml +7 -0
- data/themes/scribbish/views/articles/read.rhtml +1 -1
- data/vendor/plugins/aimpresence_sidebar/views/content.rhtml +1 -1
- data/vendor/plugins/archives_sidebar/views/content.rhtml +1 -1
- data/vendor/plugins/audioscrobbler_sidebar/MAINTAINERS +26 -0
- data/vendor/plugins/audioscrobbler_sidebar/MIT-LICENSE +21 -0
- data/vendor/plugins/audioscrobbler_sidebar/README +27 -0
- data/vendor/plugins/backpack_sidebar/MAINTAINERS +26 -0
- data/vendor/plugins/backpack_sidebar/MIT-LICENSE +21 -0
- data/vendor/plugins/backpack_sidebar/README +27 -0
- data/vendor/plugins/category_sidebar/views/content.rhtml +1 -1
- data/vendor/plugins/sitealizer/CHANGELOG +6 -0
- data/vendor/plugins/sitealizer/LICENSE +22 -0
- data/vendor/plugins/sitealizer/README +82 -0
- data/vendor/plugins/sitealizer/Rakefile +22 -0
- data/vendor/plugins/sitealizer/init.rb +24 -0
- data/vendor/plugins/sitealizer/install.rb +22 -0
- data/vendor/plugins/sitealizer/lib/app/assets/images/bar.gif +0 -0
- data/vendor/plugins/sitealizer/lib/app/assets/images/uv.png +0 -0
- data/vendor/plugins/sitealizer/lib/app/assets/images/vh.png +0 -0
- data/vendor/plugins/sitealizer/lib/app/controllers/sitealizer_controller.rb +118 -0
- data/vendor/plugins/sitealizer/lib/app/models/site_tracker.rb +145 -0
- data/vendor/plugins/sitealizer/lib/app/views/layouts/sitealizer.rhtml +66 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_browsers.rhtml +23 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_daily_stats.rhtml +67 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_hits_summary.rhtml +0 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_hosts.rhtml +21 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_keywords.rhtml +19 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_languages.rhtml +21 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_main_frame.rhtml +84 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_monthly_hits.rhtml +67 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_page_urls.rhtml +20 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_platforms.rhtml +21 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_referers.rhtml +22 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_robots.rhtml +19 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/_search_engines.rhtml +19 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/hourly_stats.rhtml +39 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/index.rhtml +8 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/login.rhtml +20 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/menu.rhtml +74 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/referrer_stats.rhtml +20 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/search_stats.rhtml +25 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/summary.rhtml +22 -0
- data/vendor/plugins/sitealizer/lib/app/views/sitealizer/visitor_info.rhtml +30 -0
- data/vendor/plugins/sitealizer/lib/config.yml +18 -0
- data/vendor/plugins/sitealizer/lib/sitealizer/parser.rb +347 -0
- data/vendor/plugins/sitealizer/lib/sitealizer.rb +78 -0
- data/vendor/plugins/sitealizer/lib/tasks/sitealizer.rake +36 -0
- data/vendor/plugins/sitealizer/test/fixtures/sitealizer.yml +89 -0
- data/vendor/plugins/sitealizer/test/sitealizer_controller_test.rb +208 -0
- data/vendor/plugins/sitealizer/test/sitealizer_parser_test.rb +169 -0
- data/vendor/plugins/sitealizer/test/test_helper.rb +7 -0
- data/vendor/plugins/tada_sidebar/MAINTAINERS +26 -0
- data/vendor/plugins/tada_sidebar/MIT-LICENSE +21 -0
- data/vendor/plugins/tada_sidebar/README +27 -0
- data/vendor/plugins/tag_sidebar/views/content.rhtml +1 -1
- data/vendor/plugins/tiny_mce/README +10 -0
- data/vendor/plugins/tiny_mce/Rakefile +22 -0
- data/vendor/plugins/tiny_mce/TODO +2 -0
- data/vendor/plugins/tiny_mce/changelog +1017 -0
- data/vendor/plugins/tiny_mce/init.rb +3 -0
- data/vendor/plugins/tiny_mce/install.rb +1 -0
- data/vendor/plugins/tiny_mce/lib/tiny_mce.rb +36 -0
- data/vendor/plugins/tiny_mce/lib/tiny_mce_helper.rb +48 -0
- data/vendor/plugins/tiny_mce/tasks/tiny_mce.rake +40 -0
- data/vendor/plugins/tiny_mce/test/helper_testcase.rb +38 -0
- data/vendor/plugins/tiny_mce/test/tiny_mce_helper_test.rb +67 -0
- data/vendor/plugins/tiny_mce/test/tiny_mce_test.rb +85 -0
- data/vendor/plugins/tiny_mce/tiny_mce_options.yml +121 -0
- data/vendor/plugins/xbox_sidebar/MAINTAINERS +26 -0
- data/vendor/plugins/xbox_sidebar/MIT-LICENSE +21 -0
- data/vendor/plugins/xbox_sidebar/README +27 -0
- data/vendor/plugins/xml_sidebar/lib/xml_sidebar.rb +1 -1
- data/vendor/plugins/xml_sidebar/views/content.rhtml +4 -4
- metadata +220 -4
- data/TODO-4.1 +0 -16
@@ -5,6 +5,8 @@
|
|
5
5
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
6
|
<title>Typo Administration: <%= controller.controller_name %></title>
|
7
7
|
<meta http-equiv="imagetoolbar" content="no" />
|
8
|
+
<%= javascript_include_tiny_mce_if_used if this_blog.editor == 2 and (controller.action_name == 'new' or controller.action_name == 'edit') %>
|
9
|
+
<%= tiny_mce if this_blog.editor == 2 and (controller.action_name == 'new' or controller.action_name == 'edit') %>
|
8
10
|
<%= stylesheet_link_tag "administration.css" %>
|
9
11
|
<%= javascript_include_tag "prototype", "effects", "dragdrop", "controls", "typo" %>
|
10
12
|
</head>
|
@@ -29,10 +31,11 @@
|
|
29
31
|
<ul id="tabs">
|
30
32
|
<%= tab _("Publish"), :controller=>"/admin/content", :action => 'new' %>
|
31
33
|
<%= tab _("Manage"), :controller=>"/admin/content/list", :action => 'index' %>
|
32
|
-
<%= tab _("
|
33
|
-
<%= tab _("Design"), :controller=>"/admin/
|
34
|
+
<%= tab _("Feedback"), :controller=>"/admin/feedback", :action => 'index' %>
|
35
|
+
<%= tab _("Design"), :controller=>"/admin/sidebar", :action => 'index' %>
|
34
36
|
<%= tab _("Users"), :controller=>"/admin/users", :action => 'index' %>
|
35
37
|
<%= tab _("Settings"), :controller=>"/admin/", :action => 'index' %>
|
38
|
+
<%= tab _("Statistics"), :controller=>"/stats", :action => 'index' %>
|
36
39
|
</ul>
|
37
40
|
</div>
|
38
41
|
|
@@ -2,8 +2,140 @@
|
|
2
2
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
3
|
<head>
|
4
4
|
<%= page_header %>
|
5
|
-
|
6
|
-
|
5
|
+
<style type="text/css">
|
6
|
+
/* Stuff cherry-picked from azure.css */
|
7
|
+
|
8
|
+
body {
|
9
|
+
font: 1em/1.2em Arial, Verdana, Helvetica, sans-serif;
|
10
|
+
}
|
11
|
+
|
12
|
+
#main {
|
13
|
+
margin: 0;
|
14
|
+
padding: 0;
|
15
|
+
font-size: 80%;
|
16
|
+
background: #fff;
|
17
|
+
}
|
18
|
+
|
19
|
+
a {
|
20
|
+
color: #5189b5;
|
21
|
+
text-decoration: none;
|
22
|
+
border-bottom: 1px dotted #5189b5;
|
23
|
+
}
|
24
|
+
|
25
|
+
a:hover { color: #85ab02; border-bottom-color: #85ab02; }
|
26
|
+
|
27
|
+
h1, h2, h3, h4, h5, h6 {
|
28
|
+
margin: 0;
|
29
|
+
padding: 0;
|
30
|
+
}
|
31
|
+
|
32
|
+
form, div { padding: 0; margin: 0; }
|
33
|
+
p { margin: 0 0 1em 0; padding: 0; }
|
34
|
+
img { border: 0; }
|
35
|
+
|
36
|
+
.post h2 {
|
37
|
+
font: normal 140%/1.3em Arial, Verdana, Helvetica, sans-serif;
|
38
|
+
}
|
39
|
+
|
40
|
+
.post h2 a {
|
41
|
+
color: #5189b5;
|
42
|
+
text-decoration: none;
|
43
|
+
border: none;
|
44
|
+
}
|
45
|
+
|
46
|
+
.post h2 a:hover {
|
47
|
+
color: #85ab02;
|
48
|
+
}
|
49
|
+
|
50
|
+
p.meta {
|
51
|
+
font-size: 75%;
|
52
|
+
text-align: right;
|
53
|
+
margin-right: 5px;
|
54
|
+
}
|
55
|
+
|
56
|
+
p.auth {
|
57
|
+
padding: 0 0 0 12px;
|
58
|
+
font-size: 85%;
|
59
|
+
margin-left: 10px;
|
60
|
+
font-weight: bold;
|
61
|
+
color: #9a9a9b;
|
62
|
+
background: url(../images/bracket.gif) no-repeat;
|
63
|
+
}
|
64
|
+
|
65
|
+
/*+-------------------------------------------+
|
66
|
+
| MISC |
|
67
|
+
+-------------------------------------------+*/
|
68
|
+
|
69
|
+
a[name] { border: none; }
|
70
|
+
|
71
|
+
/* Syntax highlighting */
|
72
|
+
.typocode_ruby .normal {}
|
73
|
+
.typocode_ruby .comment { color: #005; font-style: italic; }
|
74
|
+
.typocode_ruby .keyword { color: #A00; font-weight: bold; }
|
75
|
+
.typocode_ruby .method { color: #077; }
|
76
|
+
.typocode_ruby .class { color: #074; }
|
77
|
+
.typocode_ruby .module { color: #050; }
|
78
|
+
.typocode_ruby .punct { color: #447; font-weight: bold; }
|
79
|
+
.typocode_ruby .symbol { color: #099; }
|
80
|
+
.typocode_ruby .string { color: #944; background: #FFE; }
|
81
|
+
.typocode_ruby .char { color: #F07; }
|
82
|
+
.typocode_ruby .ident { color: #004; }
|
83
|
+
.typocode_ruby .constant { color: #07F; }
|
84
|
+
.typocode_ruby .regex { color: #B66; background: #FEF; }
|
85
|
+
.typocode_ruby .number { color: #F99; }
|
86
|
+
.typocode_ruby .attribute { color: #7BB; }
|
87
|
+
.typocode_ruby .global { color: #7FB; }
|
88
|
+
.typocode_ruby .expr { color: #227; }
|
89
|
+
.typocode_ruby .escape { color: #277; }
|
90
|
+
.typocode_xml .normal {}
|
91
|
+
.typocode_xml .namespace { color: #B66; font-weight: bold; }
|
92
|
+
.typocode_xml .tag { color: #F88; }
|
93
|
+
.typocode_xml .comment { color: #005; font-style: italic; }
|
94
|
+
.typocode_xml .punct { color: #447; font-weight: bold; }
|
95
|
+
.typocode_xml .string { color: #944; }
|
96
|
+
.typocode_xml .number { color: #F99; }
|
97
|
+
.typocode_xml .attribute { color: #BB7; }
|
98
|
+
.typocode_yaml .normal {}
|
99
|
+
.typocode_yaml .document { font-weight: bold; color: #07F; }
|
100
|
+
.typocode_yaml .type { font-weight: bold; color: #05C; }
|
101
|
+
.typocode_yaml .key { color: #F88; }
|
102
|
+
.typocode_yaml .comment { color: #005; font-style: italic; }
|
103
|
+
.typocode_yaml .punct { color: #447; font-weight: bold; }
|
104
|
+
.typocode_yaml .string { color: #944; }
|
105
|
+
.typocode_yaml .number { color: #F99; }
|
106
|
+
.typocode_yaml .time { color: #F99; }
|
107
|
+
.typocode_yaml .date { color: #F99; }
|
108
|
+
.typocode_yaml .ref { color: #944; }
|
109
|
+
.typocode_yaml .anchor { color: #944; }
|
110
|
+
|
111
|
+
.typocode {
|
112
|
+
background-color:#eee;
|
113
|
+
padding:2px;
|
114
|
+
margin:5px;
|
115
|
+
margin-left:1em;
|
116
|
+
margin-bottom:1em;
|
117
|
+
}
|
118
|
+
|
119
|
+
.typocode pre {
|
120
|
+
padding: 0px;
|
121
|
+
margin: 0px;
|
122
|
+
background: transparent;
|
123
|
+
font-family: monospace;
|
124
|
+
overflow:auto;
|
125
|
+
}
|
126
|
+
|
127
|
+
|
128
|
+
.typocode .lineno {
|
129
|
+
text-align: right;
|
130
|
+
/* color: #B00;*/
|
131
|
+
font-family: monospace;
|
132
|
+
padding-right: 1em;
|
133
|
+
}
|
134
|
+
|
135
|
+
code {
|
136
|
+
font-size:120%;
|
137
|
+
}
|
138
|
+
</style>
|
7
139
|
</head>
|
8
140
|
<body>
|
9
141
|
<div id="main">
|
data/config/boot.rb
CHANGED
data/config/environment.rb
CHANGED
@@ -16,11 +16,19 @@ Rails::Initializer.run do |config|
|
|
16
16
|
|
17
17
|
# I need the localization plugin to load first
|
18
18
|
# Otherwise, I can't localize plugins <= localization
|
19
|
-
|
19
|
+
# Forcing manually the load of the textfilters plugins fixes the bugs with apache in production.
|
20
|
+
config.plugins = [ 'localization',
|
21
|
+
'typo_textfilter_flickr',
|
22
|
+
'typo_textfilter_tmcode',
|
23
|
+
'typo_textfilter_sparkline',
|
24
|
+
'typo_textfilter_lightbox',
|
25
|
+
'typo_textfilter_amazon' ]
|
26
|
+
|
20
27
|
Dir.entries("#{RAILS_ROOT}/vendor/plugins/").each { |dir|
|
21
|
-
config.plugins.push("#{dir}") if File.directory?("#{RAILS_ROOT}/vendor/plugins/#{dir}/lib")
|
28
|
+
config.plugins.push("#{dir}") if (File.directory?("#{RAILS_ROOT}/vendor/plugins/#{dir}/lib") or File.exist?("#{RAILS_ROOT}/vendor/plugins/#{dir}/init.rb"))
|
22
29
|
}
|
23
30
|
|
31
|
+
|
24
32
|
config.load_paths += %W(
|
25
33
|
vendor/rubypants
|
26
34
|
vendor/akismet
|
@@ -153,4 +161,4 @@ CachedModel.use_local_cache = true
|
|
153
161
|
CachedModel.use_memcache = false
|
154
162
|
|
155
163
|
# Uncomment this to choose your blog's language
|
156
|
-
#Localization.lang = 'fr_FR'
|
164
|
+
# Localization.lang = 'fr_FR'
|
data/config/environments/test.rb
CHANGED
@@ -16,11 +16,4 @@ config.action_controller.perform_caching = false
|
|
16
16
|
# ActionMailer::Base.deliveries array.
|
17
17
|
config.action_mailer.delivery_method = :test
|
18
18
|
|
19
|
-
# Overwrite the default settings for fixtures in tests. See Fixtures
|
20
|
-
# for more details about these settings.
|
21
|
-
|
22
|
-
#config.transactional_fixtures = true
|
23
|
-
#config.instantiated_fixtures = false
|
24
|
-
#onfig.pre_loaded_fixtures = false
|
25
|
-
|
26
19
|
Migrator.offer_migration_when_available = false
|
data/config/routes.rb
CHANGED
@@ -83,6 +83,9 @@ ActionController::Routing::Routes.draw do |map|
|
|
83
83
|
map.connect 'plugins/filters/:filter/:public_action',
|
84
84
|
:controller => 'textfilter', :action => 'public_action'
|
85
85
|
|
86
|
+
# Stats plugin
|
87
|
+
map.connect '/stats/:action', :controller => 'sitealizer'
|
88
|
+
|
86
89
|
# Work around the Bad URI bug
|
87
90
|
%w{ accounts articles backend files live sidebar textfilter xml }.each do |i|
|
88
91
|
map.connect "#{i}", :controller => "#{i}", :action => 'index'
|
@@ -19,9 +19,25 @@ class AddSidebars < ActiveRecord::Migration
|
|
19
19
|
t.column :staged_config, :text
|
20
20
|
end
|
21
21
|
|
22
|
-
Bare4Sidebar.create(:active_position=>0, :controller=>'category'
|
23
|
-
|
24
|
-
|
22
|
+
Bare4Sidebar.create(:active_position=>0, :controller=>'category', :active_config=>'--- !map:HashWithIndifferentAccess
|
23
|
+
empty: false
|
24
|
+
count: true')
|
25
|
+
Bare4Sidebar.create(:active_position=>1, :controller=>'static', :active_config=>'--- !map:HashWithIndifferentAccess
|
26
|
+
title: Links
|
27
|
+
body: |+
|
28
|
+
<ul>
|
29
|
+
<li><a href="http://www.typosphere.org" title="Typo">Typo</a></li>
|
30
|
+
<li><a href="http://scottstuff.net" title="Scottstuff">scottstuff.net</a></li>
|
31
|
+
<li><a href="http://www.bofh.org.uk" title="Just a Summary">Just A Summary</a></li>
|
32
|
+
<li><a href="http://kevin.sb.org/">Kevin Ballard</a></li>
|
33
|
+
<li><a href="http://fredericdevillamil.com">Frédéric de Villamil</a></li>
|
34
|
+
<li><a href="http://typoforums.org" title="Typo Forums">Typo Forums</a></li>
|
35
|
+
</ul>')
|
36
|
+
Bare4Sidebar.create(:active_position=>2, :controller=>'xml', :active_config=>'--- !map:HashWithIndifferentAccess
|
37
|
+
format: rss20
|
38
|
+
trackbacks: true
|
39
|
+
comments: true
|
40
|
+
articles: true')
|
25
41
|
end
|
26
42
|
end
|
27
43
|
|
@@ -29,3 +45,5 @@ class AddSidebars < ActiveRecord::Migration
|
|
29
45
|
drop_table :sidebars
|
30
46
|
end
|
31
47
|
end
|
48
|
+
|
49
|
+
|
@@ -6,7 +6,7 @@ class CreateNotifications < ActiveRecord::Migration
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def self.up
|
9
|
-
|
9
|
+
rename_table :notifications, :old_notifications
|
10
10
|
create_table :notifications do |t|
|
11
11
|
t.column :content_id, :integer
|
12
12
|
t.column :user_id, :integer
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class AddSitealizerPlugin < ActiveRecord::Migration
|
2
|
+
|
3
|
+
def self.up
|
4
|
+
create_table :sitealizer do |t|
|
5
|
+
t.column :path, :string
|
6
|
+
t.column :ip, :string
|
7
|
+
t.column :referer, :string
|
8
|
+
t.column :language, :string
|
9
|
+
t.column :user_agent, :string
|
10
|
+
t.column :created_at, :datetime
|
11
|
+
t.column :created_on, :date
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.down
|
16
|
+
drop_table :sitealizer
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,217 @@
|
|
1
|
+
-- This file is autogenerated by the Rail schema generator, using
|
2
|
+
-- the schema defined in db/migration/*.rb
|
3
|
+
--
|
4
|
+
-- Do not edit this file. Instead, add a new migration using
|
5
|
+
-- ./script/generate migration <name>, and then run
|
6
|
+
-- ./script/generate schema
|
7
|
+
|
8
|
+
-- tables
|
9
|
+
|
10
|
+
CREATE TABLE articles_categories (
|
11
|
+
`article_id` int(11),
|
12
|
+
`category_id` int(11),
|
13
|
+
`is_primary` int(11)
|
14
|
+
) TYPE=MyISAM;
|
15
|
+
|
16
|
+
CREATE TABLE articles_tags (
|
17
|
+
`article_id` int(11),
|
18
|
+
`tag_id` int(11)
|
19
|
+
) TYPE=MyISAM;
|
20
|
+
|
21
|
+
CREATE TABLE blacklist_patterns (
|
22
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
23
|
+
`type` varchar(255),
|
24
|
+
`pattern` varchar(255)
|
25
|
+
) TYPE=MyISAM;
|
26
|
+
|
27
|
+
CREATE TABLE blogs (
|
28
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
29
|
+
`settings` text,
|
30
|
+
`base_url` varchar(255)
|
31
|
+
) TYPE=MyISAM;
|
32
|
+
|
33
|
+
CREATE TABLE categories (
|
34
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
35
|
+
`name` varchar(255),
|
36
|
+
`position` int(11),
|
37
|
+
`permalink` varchar(255)
|
38
|
+
) TYPE=MyISAM;
|
39
|
+
|
40
|
+
CREATE TABLE contents (
|
41
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
42
|
+
`type` varchar(255),
|
43
|
+
`title` varchar(255),
|
44
|
+
`author` varchar(255),
|
45
|
+
`body` text,
|
46
|
+
`extended` text,
|
47
|
+
`excerpt` text,
|
48
|
+
`keywords` varchar(255),
|
49
|
+
`created_at` datetime,
|
50
|
+
`updated_at` datetime,
|
51
|
+
`user_id` int(11),
|
52
|
+
`permalink` varchar(255),
|
53
|
+
`guid` varchar(255),
|
54
|
+
`text_filter_id` int(11),
|
55
|
+
`whiteboard` text,
|
56
|
+
`article_id` int(11),
|
57
|
+
`email` varchar(255),
|
58
|
+
`url` varchar(255),
|
59
|
+
`ip` varchar(40),
|
60
|
+
`blog_name` varchar(255),
|
61
|
+
`name` varchar(255),
|
62
|
+
`published` tinyint(1) DEFAULT 0,
|
63
|
+
`allow_pings` tinyint(1),
|
64
|
+
`allow_comments` tinyint(1),
|
65
|
+
`blog_id` int(11) NOT NULL,
|
66
|
+
`published_at` datetime,
|
67
|
+
`state` text,
|
68
|
+
`status_confirmed` tinyint(1)
|
69
|
+
) TYPE=MyISAM;
|
70
|
+
|
71
|
+
CREATE TABLE notifications (
|
72
|
+
`notify_user_id` int(11),
|
73
|
+
`notify_content_id` int(11),
|
74
|
+
`created_at` datetime,
|
75
|
+
`updated_at` datetime
|
76
|
+
) TYPE=MyISAM;
|
77
|
+
|
78
|
+
CREATE TABLE page_caches (
|
79
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
80
|
+
`name` varchar(255)
|
81
|
+
) TYPE=MyISAM;
|
82
|
+
|
83
|
+
CREATE TABLE pings (
|
84
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
85
|
+
`article_id` int(11),
|
86
|
+
`url` varchar(255),
|
87
|
+
`created_at` datetime
|
88
|
+
) TYPE=MyISAM;
|
89
|
+
|
90
|
+
CREATE TABLE redirects (
|
91
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
92
|
+
`from_path` varchar(255),
|
93
|
+
`to_path` varchar(255)
|
94
|
+
) TYPE=MyISAM;
|
95
|
+
|
96
|
+
CREATE TABLE resources (
|
97
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
98
|
+
`size` int(11),
|
99
|
+
`filename` varchar(255),
|
100
|
+
`mime` varchar(255),
|
101
|
+
`created_at` datetime,
|
102
|
+
`updated_at` datetime,
|
103
|
+
`article_id` int(11),
|
104
|
+
`itunes_metadata` tinyint(1),
|
105
|
+
`itunes_author` varchar(255),
|
106
|
+
`itunes_subtitle` varchar(255),
|
107
|
+
`itunes_duration` int(11),
|
108
|
+
`itunes_summary` text,
|
109
|
+
`itunes_keywords` varchar(255),
|
110
|
+
`itunes_category` varchar(255),
|
111
|
+
`itunes_explicit` tinyint(1)
|
112
|
+
) TYPE=MyISAM;
|
113
|
+
|
114
|
+
CREATE TABLE sessions (
|
115
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
116
|
+
`sessid` varchar(255),
|
117
|
+
`data` text,
|
118
|
+
`created_at` datetime,
|
119
|
+
`updated_at` datetime
|
120
|
+
) TYPE=MyISAM;
|
121
|
+
|
122
|
+
CREATE TABLE sidebars (
|
123
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
124
|
+
`controller` varchar(255),
|
125
|
+
`active_position` int(11),
|
126
|
+
`config` text,
|
127
|
+
`staged_position` int(11)
|
128
|
+
) TYPE=MyISAM;
|
129
|
+
|
130
|
+
CREATE TABLE tags (
|
131
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
132
|
+
`name` varchar(255),
|
133
|
+
`created_at` datetime,
|
134
|
+
`updated_at` datetime,
|
135
|
+
`display_name` varchar(255)
|
136
|
+
) TYPE=MyISAM;
|
137
|
+
|
138
|
+
CREATE TABLE text_filters (
|
139
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
140
|
+
`name` varchar(255),
|
141
|
+
`description` varchar(255),
|
142
|
+
`markup` varchar(255),
|
143
|
+
`filters` text,
|
144
|
+
`params` text
|
145
|
+
) TYPE=MyISAM;
|
146
|
+
|
147
|
+
CREATE TABLE triggers (
|
148
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
149
|
+
`pending_item_id` int(11),
|
150
|
+
`pending_item_type` varchar(255),
|
151
|
+
`due_at` datetime,
|
152
|
+
`trigger_method` varchar(255)
|
153
|
+
) TYPE=MyISAM;
|
154
|
+
|
155
|
+
CREATE TABLE users (
|
156
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
157
|
+
`login` varchar(255),
|
158
|
+
`password` varchar(255),
|
159
|
+
`email` text,
|
160
|
+
`name` text,
|
161
|
+
`notify_via_email` tinyint(1),
|
162
|
+
`notify_on_new_articles` tinyint(1),
|
163
|
+
`notify_on_comments` tinyint(1),
|
164
|
+
`notify_watch_my_articles` tinyint(1),
|
165
|
+
`notify_via_jabber` tinyint(1),
|
166
|
+
`jabber` varchar(255)
|
167
|
+
) TYPE=MyISAM;
|
168
|
+
|
169
|
+
|
170
|
+
-- indexes
|
171
|
+
|
172
|
+
CREATE INDEX `blacklist_patterns_pattern_index` ON blacklist_patterns (`pattern`);
|
173
|
+
CREATE INDEX `categories_permalink_index` ON categories (`permalink`);
|
174
|
+
CREATE INDEX `contents_blog_id_index` ON contents (`blog_id`);
|
175
|
+
CREATE INDEX `contents_article_id_index` ON contents (`article_id`);
|
176
|
+
CREATE INDEX `page_caches_name_index` ON page_caches (`name`);
|
177
|
+
CREATE INDEX `pings_article_id_index` ON pings (`article_id`);
|
178
|
+
CREATE INDEX `sessions_sessid_index` ON sessions (`sessid`);
|
179
|
+
|
180
|
+
-- data
|
181
|
+
|
182
|
+
INSERT INTO sidebars (`config`, `staged_position`, `active_position`, `controller`) VALUES(NULL, NULL, 0, 'category');
|
183
|
+
INSERT INTO sidebars (`config`, `staged_position`, `active_position`, `controller`) VALUES(NULL, NULL, 1, 'static');
|
184
|
+
INSERT INTO sidebars (`config`, `staged_position`, `active_position`, `controller`) VALUES(NULL, NULL, 2, 'xml');
|
185
|
+
INSERT INTO text_filters (`name`, `filters`, `description`, `params`, `markup`) VALUES('none', '--- []
|
186
|
+
|
187
|
+
', 'None', '--- {}
|
188
|
+
|
189
|
+
', 'none');
|
190
|
+
INSERT INTO text_filters (`name`, `filters`, `description`, `params`, `markup`) VALUES('markdown', '--- []
|
191
|
+
|
192
|
+
', 'Markdown', '--- {}
|
193
|
+
|
194
|
+
', 'markdown');
|
195
|
+
INSERT INTO text_filters (`name`, `filters`, `description`, `params`, `markup`) VALUES('smartypants', '---
|
196
|
+
- :smartypants
|
197
|
+
', 'SmartyPants', '--- {}
|
198
|
+
|
199
|
+
', 'none');
|
200
|
+
INSERT INTO text_filters (`name`, `filters`, `description`, `params`, `markup`) VALUES('markdown smartypants', '---
|
201
|
+
- :smartypants
|
202
|
+
', 'Markdown with SmartyPants', '--- {}
|
203
|
+
|
204
|
+
', 'markdown');
|
205
|
+
INSERT INTO text_filters (`name`, `filters`, `description`, `params`, `markup`) VALUES('textile', '--- []
|
206
|
+
|
207
|
+
', 'Textile', '--- {}
|
208
|
+
|
209
|
+
', 'textile');
|
210
|
+
|
211
|
+
-- schema version meta-info
|
212
|
+
|
213
|
+
CREATE TABLE schema_info (
|
214
|
+
`version` int(11)
|
215
|
+
) TYPE=MyISAM;
|
216
|
+
|
217
|
+
insert into schema_info (version) values (53);
|
data/db/schema.mysql.sql
CHANGED
@@ -155,6 +155,17 @@ CREATE TABLE sidebars (
|
|
155
155
|
`blog_id` int(11) DEFAULT NULL
|
156
156
|
) ENGINE=InnoDB;
|
157
157
|
|
158
|
+
CREATE TABLE sitealizer (
|
159
|
+
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
160
|
+
`path` varchar(255) DEFAULT NULL,
|
161
|
+
`ip` varchar(255) DEFAULT NULL,
|
162
|
+
`referer` varchar(255) DEFAULT NULL,
|
163
|
+
`language` varchar(255) DEFAULT NULL,
|
164
|
+
`user_agent` varchar(255) DEFAULT NULL,
|
165
|
+
`created_at` datetime DEFAULT NULL,
|
166
|
+
`created_on` date DEFAULT NULL
|
167
|
+
) ENGINE=InnoDB;
|
168
|
+
|
158
169
|
CREATE TABLE tags (
|
159
170
|
`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
|
160
171
|
`name` varchar(255) DEFAULT NULL,
|
@@ -210,6 +221,25 @@ CREATE INDEX `index_sessions_on_sessid` ON sessions (`sessid`);
|
|
210
221
|
|
211
222
|
-- data
|
212
223
|
|
224
|
+
INSERT INTO sidebars (`config`, `staged_position`, `type`, `active_position`, `blog_id`) VALUES('--- !map:HashWithIndifferentAccess
|
225
|
+
empty: false
|
226
|
+
count: true', NULL, NULL, 0, NULL);
|
227
|
+
INSERT INTO sidebars (`config`, `staged_position`, `type`, `active_position`, `blog_id`) VALUES('--- !map:HashWithIndifferentAccess
|
228
|
+
title: Links
|
229
|
+
body: |+
|
230
|
+
<ul>
|
231
|
+
<li><a href="http://www.typosphere.org" title="Typo">Typo</a></li>
|
232
|
+
<li><a href="http://scottstuff.net" title="Scottstuff">scottstuff.net</a></li>
|
233
|
+
<li><a href="http://www.bofh.org.uk" title="Just a Summary">Just A Summary</a></li>
|
234
|
+
<li><a href="http://kevin.sb.org/">Kevin Ballard</a></li>
|
235
|
+
<li><a href="http://fredericdevillamil.com">Frédéric de Villamil</a></li>
|
236
|
+
<li><a href="http://typoforums.org" title="Typo Forums">Typo Forums</a></li>
|
237
|
+
</ul>', NULL, NULL, 1, NULL);
|
238
|
+
INSERT INTO sidebars (`config`, `staged_position`, `type`, `active_position`, `blog_id`) VALUES('--- !map:HashWithIndifferentAccess
|
239
|
+
format: rss20
|
240
|
+
trackbacks: true
|
241
|
+
comments: true
|
242
|
+
articles: true', NULL, NULL, 2, NULL);
|
213
243
|
INSERT INTO text_filters (`name`, `filters`, `description`, `params`, `markup`) VALUES('none', '--- []
|
214
244
|
|
215
245
|
', 'None', '--- {}
|
@@ -236,14 +266,10 @@ INSERT INTO text_filters (`name`, `filters`, `description`, `params`, `markup`)
|
|
236
266
|
|
237
267
|
', 'textile');
|
238
268
|
|
239
|
-
INSERT INTO `sidebars` (`id`, `active_position`, `config`, `staged_position`, `type`, `blog_id`) VALUES (1, 0, '--- !map:HashWithIndifferentAccess \nempty: false\ncount: true\n', 0, 'CategorySidebar', 1);
|
240
|
-
INSERT INTO `sidebars` (`id`, `active_position`, `config`, `staged_position`, `type`, `blog_id`) VALUES (3, 2, '--- !map:HashWithIndifferentAccess \nformat: rss20\ntrackbacks: false\ncomments: true\narticles: true\n', 2, 'XmlSidebar', 1);
|
241
|
-
INSERT INTO `sidebars` (`id`, `active_position`, `config`, `staged_position`, `type`, `blog_id`) VALUES (4, 1, '--- !map:HashWithIndifferentAccess \nbody: "<ul>\\n <li><a href=\\"http://www.typosphere.org\\" title=\\"Typo\\">Typo</a></li>\\n <li><a href=\\"http://blog.leetsoft.com\\" title=\\"too-biased\\">too-biased</a></li>\\n <li><a href=\\"http://blog.remor.com/\\" title=\\"seth hall\\">Seth Hall</a></li>\\n <li><a href=\\"http://scottstuff.net\\" title=\\"Scottstuff\\">scottstuff.net</a></li>\\n <li><a href=\\"http://www.bofh.org.uk\\" title=\\"Just a Summary\\">Just A Summary</a></li>\\n <li><a href=\\"http://nubyonrails.com\\" title=\\"Topfunky\\">Topfunky</a></li>\\n <li><a href=\\"http://planettypo.com\\" title=\\"PlanetTypo\\">PlanetTypo</a></li>\\n <li><a href=\\"http://typoforums.org\\" title=\\"Typo Forums\\">Typo Forums</a></li>\\n <li><a href=\\"http://fredericdevillamil.com\\" title=\\"Fr\\xC3\\xA9d\\xC3\\xA9ric de Villamil\\">Fr\\xC3\\xA9d\\xC3\\xA9ric de Villamil</a></li>\\n\\\n </ul>\\n"\ntitle: Links\n', NULL, 'StaticSidebar', 1);
|
242
|
-
|
243
269
|
-- schema version meta-info
|
244
270
|
|
245
271
|
CREATE TABLE schema_info (
|
246
272
|
`version` int(11) DEFAULT NULL
|
247
273
|
) ENGINE=InnoDB;
|
248
274
|
|
249
|
-
insert into schema_info (version) values (
|
275
|
+
insert into schema_info (version) values (62);
|
data/db/schema.postgresql.sql
CHANGED
@@ -155,6 +155,17 @@ CREATE TABLE sidebars (
|
|
155
155
|
"blog_id" integer DEFAULT NULL
|
156
156
|
);
|
157
157
|
|
158
|
+
CREATE TABLE sitealizer (
|
159
|
+
"id" serial primary key,
|
160
|
+
"path" character varying(255) DEFAULT NULL,
|
161
|
+
"ip" character varying(255) DEFAULT NULL,
|
162
|
+
"referer" character varying(255) DEFAULT NULL,
|
163
|
+
"language" character varying(255) DEFAULT NULL,
|
164
|
+
"user_agent" character varying(255) DEFAULT NULL,
|
165
|
+
"created_at" timestamp DEFAULT NULL,
|
166
|
+
"created_on" date DEFAULT NULL
|
167
|
+
);
|
168
|
+
|
158
169
|
CREATE TABLE tags (
|
159
170
|
"id" serial primary key,
|
160
171
|
"name" character varying(255) DEFAULT NULL,
|
@@ -210,6 +221,25 @@ CREATE INDEX "index_sessions_on_sessid" ON sessions ("sessid");
|
|
210
221
|
|
211
222
|
-- data
|
212
223
|
|
224
|
+
INSERT INTO sidebars ("config", "staged_position", "type", "active_position", "blog_id") VALUES('--- !map:HashWithIndifferentAccess
|
225
|
+
empty: false
|
226
|
+
count: true', NULL, NULL, 0, NULL);
|
227
|
+
INSERT INTO sidebars ("config", "staged_position", "type", "active_position", "blog_id") VALUES('--- !map:HashWithIndifferentAccess
|
228
|
+
title: Links
|
229
|
+
body: |+
|
230
|
+
<ul>
|
231
|
+
<li><a href="http://www.typosphere.org" title="Typo">Typo</a></li>
|
232
|
+
<li><a href="http://scottstuff.net" title="Scottstuff">scottstuff.net</a></li>
|
233
|
+
<li><a href="http://www.bofh.org.uk" title="Just a Summary">Just A Summary</a></li>
|
234
|
+
<li><a href="http://kevin.sb.org/">Kevin Ballard</a></li>
|
235
|
+
<li><a href="http://fredericdevillamil.com">Frédéric de Villamil</a></li>
|
236
|
+
<li><a href="http://typoforums.org" title="Typo Forums">Typo Forums</a></li>
|
237
|
+
</ul>', NULL, NULL, 1, NULL);
|
238
|
+
INSERT INTO sidebars ("config", "staged_position", "type", "active_position", "blog_id") VALUES('--- !map:HashWithIndifferentAccess
|
239
|
+
format: rss20
|
240
|
+
trackbacks: true
|
241
|
+
comments: true
|
242
|
+
articles: true', NULL, NULL, 2, NULL);
|
213
243
|
INSERT INTO text_filters ("name", "filters", "description", "params", "markup") VALUES('none', '--- []
|
214
244
|
|
215
245
|
', 'None', '--- {}
|
@@ -236,15 +266,10 @@ INSERT INTO text_filters ("name", "filters", "description", "params", "markup")
|
|
236
266
|
|
237
267
|
', 'textile');
|
238
268
|
|
239
|
-
INSERT INTO sidebars ("id", "active_position", "config", "staged_position", "type", "blog_id") VALUES (1, 0, '--- !map:HashWithIndifferentAccess \nempty: false\ncount: true\n', 0, 'CategorySidebar', 1);
|
240
|
-
INSERT INTO sidebars ("id", "active_position", "config", "staged_position", "type", "blog_id") VALUES (2, 2, '--- !map:HashWithIndifferentAccess \nformat: rss20\ntrackbacks: false\ncomments: true\narticles: true\n', 2, 'XmlSidebar', 1);
|
241
|
-
INSERT INTO sidebars ("id", "active_position", "config", "staged_position", "type", "blog_id") VALUES (3, 1, '--- !map:HashWithIndifferentAccess \nbody: "<ul>\\n <li><a href=\\"http://www.typosphere.org\\" title=\\"Typo\\">Typo</a></li>\\n <li><a href=\\"http://blog.leetsoft.com\\" title=\\"too-biased\\">too-biased</a></li>\\n <li><a href=\\"http://blog.remor.com/\\" title=\\"seth hall\\">Seth Hall</a></li>\\n <li><a href=\\"http://scottstuff.net\\" title=\\"Scottstuff\\">scottstuff.net</a></li>\\n <li><a href=\\"http://www.bofh.org.uk\\" title=\\"Just a Summary\\">Just A Summary</a></li>\\n <li><a href=\\"http://nubyonrails.com\\" title=\\"Topfunky\\">Topfunky</a></li>\\n <li><a href=\\"http://planettypo.com\\" title=\\"PlanetTypo\\">PlanetTypo</a></li>\\n <li><a href=\\"http://typoforums.org\\" title=\\"Typo Forums\\">Typo Forums</a></li>\\n <li><a href=\\"http://fredericdevillamil.com\\" title=\\"Fr\\xC3\\xA9d\\xC3\\xA9ric de Villamil\\">Fr\\xC3\\xA9d\\xC3\\xA9ric de Villamil</a></li>\\n\\\n </ul>\\n"\ntitle: Links\n', NULL, 'StaticSidebar', 1);
|
242
|
-
|
243
|
-
|
244
269
|
-- schema version meta-info
|
245
270
|
|
246
271
|
CREATE TABLE schema_info (
|
247
272
|
"version" integer DEFAULT NULL
|
248
273
|
);
|
249
274
|
|
250
|
-
insert into schema_info (version) values (
|
275
|
+
insert into schema_info (version) values (62);
|