typo 5.4.3 → 5.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +21 -8
- data/README +2 -2
- data/app/controllers/accounts_controller.rb +6 -10
- data/app/controllers/admin/content_controller.rb +2 -3
- data/app/controllers/admin/profiles_controller.rb +0 -1
- data/app/controllers/admin/resources_controller.rb +6 -20
- data/app/controllers/articles_controller.rb +5 -5
- data/app/controllers/setup_controller.rb +45 -0
- data/app/controllers/xml_controller.rb +0 -9
- data/app/helpers/admin/base_helper.rb +50 -33
- data/app/helpers/admin/categories_helper.rb +12 -0
- data/app/helpers/admin/feedback_helper.rb +10 -0
- data/app/helpers/application_helper.rb +13 -0
- data/app/models/blog.rb +0 -10
- data/app/models/content.rb +4 -3
- data/app/models/feedback.rb +1 -0
- data/app/models/feedback/states.rb +2 -1
- data/app/models/resource.rb +0 -26
- data/app/models/user.rb +2 -2
- data/app/views/accounts/confirm.html.erb +1 -16
- data/app/views/accounts/login.html.erb +9 -17
- data/app/views/accounts/recover_password.html.erb +5 -8
- data/app/views/accounts/signup.html.erb +1 -0
- data/app/views/admin/categories/_categories.html.erb +11 -3
- data/app/views/admin/categories/index.html.erb +6 -9
- data/app/views/admin/categories/reorder.html.erb +5 -3
- data/app/views/admin/content/_article_list.html.erb +9 -4
- data/app/views/admin/content/_drafts.html.erb +7 -5
- data/app/views/admin/content/_form.html.erb +91 -83
- data/app/views/admin/content/_images.html.erb +4 -0
- data/app/views/admin/content/_visual_editor.html.erb +1 -0
- data/app/views/admin/content/index.html.erb +35 -38
- data/app/views/admin/dashboard/_comments.html.erb +17 -12
- data/app/views/admin/dashboard/_inbound.html.erb +11 -4
- data/app/views/admin/dashboard/_overview.html.erb +18 -8
- data/app/views/admin/dashboard/_popular.html.erb +17 -12
- data/app/views/admin/dashboard/_posts.html.erb +18 -13
- data/app/views/admin/dashboard/_typo_dev.html.erb +10 -6
- data/app/views/admin/dashboard/_welcome.html.erb +17 -3
- data/app/views/admin/dashboard/index.html.erb +9 -16
- data/app/views/admin/feedback/_button.html.erb +7 -7
- data/app/views/admin/feedback/_form.html.erb +28 -28
- data/app/views/admin/feedback/_item.html.erb +10 -3
- data/app/views/admin/feedback/article.html.erb +6 -5
- data/app/views/admin/feedback/index.html.erb +35 -37
- data/app/views/admin/pages/_form.html.erb +30 -42
- data/app/views/admin/pages/_pages.html.erb +15 -34
- data/app/views/admin/pages/_visual_editor.html.erb +1 -0
- data/app/views/admin/pages/index.html.erb +13 -6
- data/app/views/admin/profiles/index.html.erb +6 -4
- data/app/views/admin/resources/_upload.html.erb +15 -8
- data/app/views/admin/resources/images.html.erb +1 -1
- data/app/views/admin/resources/index.html.erb +1 -17
- data/app/views/admin/settings/_submit.html.erb +1 -1
- data/app/views/admin/settings/feedback.html.erb +96 -91
- data/app/views/admin/settings/index.html.erb +74 -74
- data/app/views/admin/settings/seo.html.erb +67 -66
- data/app/views/admin/settings/update_database.html.erb +24 -24
- data/app/views/admin/settings/write.html.erb +24 -70
- data/app/views/admin/sidebar/_active.html.erb +9 -8
- data/app/views/admin/sidebar/_available.html.erb +5 -3
- data/app/views/admin/sidebar/index.html.erb +12 -12
- data/app/views/admin/themes/catalogue.html.erb +16 -3
- data/app/views/admin/themes/index.html.erb +23 -13
- data/app/views/admin/users/_form.html.erb +180 -175
- data/app/views/admin/users/edit.html.erb +4 -5
- data/app/views/admin/users/index.html.erb +4 -3
- data/app/views/admin/users/new.html.erb +5 -7
- data/app/views/layouts/accounts.html.erb +7 -9
- data/app/views/layouts/administration.html.erb +21 -27
- data/app/views/layouts/setup.html.erb +18 -0
- data/app/views/notification_mailer/notif_user.html.erb +14 -12
- data/app/views/setup/confirm.html.erb +1 -0
- data/app/views/setup/index.html.erb +17 -0
- data/app/views/shared/_confirm.html.erb +16 -0
- data/config/environment.rb +3 -2
- data/config/initializers/access_rules.rb +0 -1
- data/config/routes.rb +4 -3
- data/db/migrate/087_drop_blacklist_patterns.rb +14 -0
- data/db/migrate/088_drop_session_table.rb +14 -0
- data/db/schema.rb +29 -37
- data/doc/Installer.txt +3 -3
- data/lib/spam_protection.rb +0 -10
- data/lib/tasks/release.rake +1 -1
- data/lib/typo_version.rb +1 -1
- data/public/images/admin/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
- data/public/images/admin/ui-bg_flat_15_cd0a0a_40x100.png +0 -0
- data/public/images/admin/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
- data/public/images/admin/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
- data/public/images/admin/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
- data/public/images/admin/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
- data/public/images/admin/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
- data/public/images/admin/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
- data/public/images/admin/ui-bg_highlight-soft_50_116088_1x100.png +0 -0
- data/public/images/admin/ui-icons_2694e8_256x240.png +0 -0
- data/public/images/admin/ui-icons_2e83ff_256x240.png +0 -0
- data/public/images/admin/ui-icons_3d80b3_256x240.png +0 -0
- data/public/images/admin/ui-icons_72a7cf_256x240.png +0 -0
- data/public/images/admin/ui-icons_ffffff_256x240.png +0 -0
- data/public/javascripts/lightbox.js +2 -2
- data/public/stylesheets/accounts.css +119 -0
- data/public/stylesheets/administration.css +598 -625
- data/spec/controllers/accounts_controller_spec.rb +94 -12
- data/spec/controllers/admin/categories_controller_spec.rb +0 -11
- data/spec/controllers/admin/profiles_controller_spec.rb +2 -2
- data/spec/controllers/admin/resources_controller_spec.rb +15 -2
- data/spec/controllers/articles_controller_spec.rb +27 -0
- data/spec/controllers/routes/xml_routing_spec.rb +0 -8
- data/spec/controllers/setup_controller_spec.rb +24 -0
- data/spec/controllers/xml_controller_spec.rb +0 -7
- data/spec/models/comment_spec.rb +37 -7
- data/spec/models/configuration_spec.rb +0 -11
- data/spec/models/trackback_spec.rb +0 -8
- data/spec/models/user_spec.rb +9 -0
- data/spec/spec_helper.rb +1 -1
- data/test/fixtures/blogs.yml +0 -8
- data/test/fixtures/users.yml +1 -0
- data/vendor/plugins/upload_progress/lib/upload_progress_helper.rb +1 -1
- metadata +26 -38
- data/app/controllers/admin/blacklist_controller.rb +0 -47
- data/app/helpers/admin/blacklist_helper.rb +0 -2
- data/app/models/blacklist_pattern.rb +0 -24
- data/app/views/admin/base/_recent_comments.html.erb +0 -10
- data/app/views/admin/base/_recent_trackbacks.html.erb +0 -10
- data/app/views/admin/blacklist/_blacklist_patterns.html.erb +0 -16
- data/app/views/admin/blacklist/_form.html.erb +0 -14
- data/app/views/admin/blacklist/_quick_post.html.erb +0 -9
- data/app/views/admin/blacklist/destroy.html.erb +0 -10
- data/app/views/admin/blacklist/edit.html.erb +0 -10
- data/app/views/admin/blacklist/index.html.erb +0 -10
- data/app/views/admin/dashboard/_sysinfo.html.erb +0 -11
- data/app/views/admin/resources/_itunes_category_add.html.erb +0 -11
- data/app/views/admin/resources/_itunes_category_edit.html.erb +0 -32
- data/app/views/admin/resources/_metadata_add.html.erb +0 -22
- data/app/views/admin/resources/_metadata_edit.html.erb +0 -22
- data/config/iTunes.yml +0 -72
- data/db/typo_dev +0 -0
- data/public/images/admin/blue_block_bottom_left.jpg +0 -0
- data/public/images/admin/blue_block_bottom_right.jpg +0 -0
- data/public/images/admin/blue_block_top_left.jpg +0 -0
- data/public/images/admin/blue_block_top_right.jpg +0 -0
- data/public/images/admin/editor_active_top_left.jpg +0 -0
- data/public/images/admin/editor_active_top_right.jpg +0 -0
- data/public/images/admin/editor_bottom_left.jpg +0 -0
- data/public/images/admin/editor_bottom_right.jpg +0 -0
- data/public/images/admin/input_text_left.jpg +0 -0
- data/public/images/admin/input_text_right.jpg +0 -0
- data/public/images/admin/input_text_small_left.jpg +0 -0
- data/public/images/admin/input_text_small_right.jpg +0 -0
- data/public/images/admin/publisher_bottom.jpg +0 -0
- data/public/images/admin/publisher_top.jpg +0 -0
- data/public/stylesheets/border-radius-ie8.htc +0 -34
- data/spec/controllers/admin/blacklist_controller_spec.rb +0 -54
- data/spec/models/blacklist_pattern_spec.rb +0 -12
- data/test/fixtures/blacklist_patterns.yml +0 -8
@@ -3,83 +3,83 @@
|
|
3
3
|
|
4
4
|
<% form_tag :action => 'update' do %>
|
5
5
|
|
6
|
-
<
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
6
|
+
<div class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons settings'>
|
7
|
+
<h3 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'><span class='ui-icon ui-icon-gear'></span> <%= _("Your blog")%></h3>
|
8
|
+
<div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
|
9
|
+
<div class='setting'>
|
10
|
+
<label for="setting_blog_name" class="float"><%= _("Blog name")%></label>
|
11
|
+
<div class='input_text'>
|
12
|
+
<%= text_field(:setting, :blog_name, {:class => 'medium', :size => this_blog.blog_name.length })%>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
<div class='setting clear'>
|
16
|
+
<label class="clear float" for="setting_blog_subtitle"><%= _("Blog subtitle")%></label>
|
17
|
+
<div class='input_text'>
|
18
|
+
<%= text_field(:setting, :blog_subtitle, {:class => 'medium', :size => this_blog.blog_subtitle.length})%>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<div class='setting clear'>
|
22
|
+
<label class="float" for="base_url"><%= _("Blog URL")%></label>
|
23
|
+
<div class='input_text'>
|
24
|
+
<%= text_field(:setting, :base_url, {:size => this_blog.base_url.length, :class => 'medium'})%>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
<div class='setting clear'>
|
28
|
+
<label class="float" for="setting_lang"><%= _("Language")%></label>
|
29
|
+
<div class='input_text'>
|
30
|
+
<select name="setting[lang]" id='setting_lang'>
|
31
|
+
<%= fetch_langs %>
|
32
|
+
</select>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<div class='setting clear'>
|
36
|
+
<label class="float" for="setting_allow_signup"><%= _("Allow users to register")%></label>
|
37
|
+
<div class='input_text'>
|
38
|
+
<%= check_box(:setting, :allow_signup) %>
|
39
|
+
<span><%= _("You can allow users to register to your blog. By default, they will register as contributors, an unpriviledged account level which grant them no rights but own a profile on the site. If you don't want users to register, you can thus add them by yourself in the users part of this admin.") %>.</span>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
<div class='setting clear'>
|
43
|
+
<label class="float" for="setting_admin_display_elements"><%= _("Items to display in admin lists")%></label>
|
44
|
+
<div class='input_text'>
|
45
|
+
<%= text_field(:setting, :admin_display_elements, {:size => 4, :class => 'small'})%>
|
46
|
+
</div>
|
47
|
+
</div>
|
14
48
|
</div>
|
15
|
-
|
16
|
-
<label class="float" for="setting_blog_subtitle"><%= _("Blog subtitle")%></label>
|
17
|
-
<p class='input_text_title'>
|
18
|
-
<%= text_field(:setting, :blog_subtitle, {:class => 'small', :size => this_blog.blog_subtitle.length})%>
|
19
|
-
</p>
|
20
|
-
</div>
|
21
|
-
<div>
|
22
|
-
<label class="float" for="base_url"><%= _("Blog URL")%></label>
|
23
|
-
<p class='input_text_title'>
|
24
|
-
<%= text_field(:setting, :base_url, {:size => this_blog.base_url.length, :class => 'small'})%>
|
25
|
-
</p>
|
26
|
-
</div>
|
27
|
-
<div>
|
28
|
-
<label class="float" for="setting_lang"><%= _("Language")%></label>
|
29
|
-
<p class='input_text_title'>
|
30
|
-
<select name="setting[lang]" id='setting_lang'>
|
31
|
-
<%= fetch_langs %>
|
32
|
-
</select>
|
33
|
-
</p>
|
34
|
-
</div>
|
35
|
-
<p><%= _("You can allow users to register to your blog. By default, they will register as contributors, an unpriviledged account level which grant them no rights but own a profile on the site. If you don't want users to register, you can thus add them by yourself in the users part of this admin.") %>.</p>
|
36
|
-
<div>
|
37
|
-
<label class="float" for="setting_allow_signup"><%= _("Allow users to register")%></label>
|
38
|
-
<p class='input_text_title'>
|
39
|
-
<%= radio_button(:setting, :allow_signup, 0)%>
|
40
|
-
<label for="setting_allow_signup_0"><%= _("No")%></label>
|
41
|
-
<%= radio_button(:setting, :allow_signup, 1)%>
|
42
|
-
<label for="setting_allow_signup_1"><%= _("Yes")%></label>
|
43
|
-
</p>
|
44
|
-
</div>
|
45
|
-
<div>
|
46
|
-
<label class="float" for="setting_admin_display_elements"><%= _("Items to display in admin lists")%></label>
|
47
|
-
<p class='input_text_title'>
|
48
|
-
<%= text_field(:setting, :admin_display_elements, {:size => 4, :class => 'small'})%>
|
49
|
-
</p>
|
50
|
-
</div>
|
51
|
-
</fieldset>
|
49
|
+
</div>
|
52
50
|
|
53
|
-
<
|
54
|
-
<
|
55
|
-
<div>
|
56
|
-
<
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
<
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
<
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
51
|
+
<div class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons'>
|
52
|
+
<h3 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'><span class='ui-icon ui-icon-gear'></span> <%= _("Publishing options")%></h3>
|
53
|
+
<div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
|
54
|
+
<div class='setting'>
|
55
|
+
<label for="setting_limit_article_display" class="float"><%= _("Display")%> </label>
|
56
|
+
<div class='input_text'>
|
57
|
+
<%= text_field(:setting, :limit_article_display, {:size => 4, :class => 'small'})%>
|
58
|
+
<%= _("articles on my homepage by default")%>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
<div class='setting clear'>
|
62
|
+
<label for="setting_limit_rss_display" class="float"><%= _("Display")%> </label>
|
63
|
+
<div class='input_text'>
|
64
|
+
<%= text_field(:setting, :limit_rss_display, {:size => 4, :class => 'small'})%>
|
65
|
+
<%= _("articles in my news feed by default")%>.
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<div class='setting clear'>
|
69
|
+
<label class="float" for="setting_show_extended_on_rss"><%= _("Show full article on feed")%>:</label>
|
70
|
+
<div class='input_text'>
|
71
|
+
<%= check_box(:setting, :show_extended_on_rss) %>
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
<div class='setting clear'>
|
75
|
+
<label class="float" for="setting_feedburner_url"><%= _("Feedburner ID")%></label>
|
76
|
+
<div class='input_text'>
|
77
|
+
<%= text_field(:setting, :feedburner_url, :class => 'medium')%>
|
78
|
+
<span><%= _('You can use your Google Feedburner account instead of Typo feed URL. To enable this, fill this form with your Feedburner ID.') %></span>
|
79
|
+
</div>
|
80
|
+
</div>
|
81
81
|
</div>
|
82
|
-
</
|
82
|
+
</div>
|
83
83
|
|
84
84
|
<%= hidden_field_tag 'from', 'index' %>
|
85
85
|
<%= render :partial => 'submit' %>
|
@@ -4,76 +4,77 @@
|
|
4
4
|
<%= error_messages_for 'blog' %>
|
5
5
|
|
6
6
|
<% form_tag :action => 'update' do %>
|
7
|
-
<
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
7
|
+
<div class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons settings'>
|
8
|
+
<h3 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'><span class='ui-icon ui-icon-gear'></span> <%= _("Search Engine Optimisation")%></h3>
|
9
|
+
<div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
|
10
|
+
<div class='setting'>
|
11
|
+
<label class="float"><%= _("Show blog name")%></label>
|
12
|
+
<div class='input_text'>
|
13
|
+
<%= radio_button(:setting, :title_prefix, 1)%>
|
14
|
+
<label for="setting_title_prefix_1"><%= _("At the beginning of page title")%></label><br />
|
15
|
+
<%= radio_button(:setting, :title_prefix, 2)%>
|
16
|
+
<label for="setting_title_prefix_2"><%= _("At the end of page title")%></label><br />
|
17
|
+
<%= radio_button(:setting, :title_prefix, 0)%>
|
18
|
+
<label for="setting_title_prefix_0"><%= _("Don't show blog name in page title")%></label>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<div class='setting clear'>
|
22
|
+
<label class="float" for="setting_permalink_format"><%= _("Format of permalink")%></label>
|
23
|
+
<div class='input_text'>
|
24
|
+
<%= text_field(:setting, :permalink_format, { :class => 'medium'})%>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
<div class='setting clear'>
|
28
|
+
<label class="float" for="setting_google_analytics"><%= _("Google Analytics")%></label>
|
29
|
+
<div class='input_text'>
|
30
|
+
<%= text_field(:setting, :google_analytics, :class => 'medium')%>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
<div class='setting clear'>
|
34
|
+
<label class="float" for="setting_meta_description"><%= _("Meta description")%></label>
|
35
|
+
<div class='input_text'>
|
36
|
+
<%= text_area(:setting, :meta_description, :rows => 3, :class => 'medium')%>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
<div class='setting clear'>
|
40
|
+
<label class="float" for="setting_meta_keywords"><%= _("Meta keywords")%></label>
|
41
|
+
<div class='input_text'>
|
42
|
+
<%= text_area(:setting, :meta_keywords, :rows => 3, :class => 'medium')%>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<div class='setting clear'>
|
46
|
+
<label class="float" for="setting_rss_description"><%= _("Use RSS description")%></label>
|
47
|
+
<div class='input_text'>
|
48
|
+
<%= check_box(:setting, :rss_description)%>
|
49
|
+
<span><%= "#{_('This will display')} <em>#{_('Original article writen by')} ... #{_('and published on')} <a href='#{this_blog.base_url}'>#{this_blog.blog_name}</a> | <a href='#{this_blog.base_url}'>#{_('direct link to this article')}</a> | #{_('If you are reading this article elsewhere than')} <a href='#{this_blog.base_url}'>#{this_blog.blog_name}</a>, #{_('it has been illegally reproduced and without proper authorization')}</em> #{_('at the bottom of each of your post in the RSS feed')}"%></span>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
<div class='setting clear'>
|
53
|
+
<label class="float" for="setting_index_categories"><%= _("Index categories")%></label>
|
54
|
+
<div class='input_text'>
|
55
|
+
<%= check_box(:setting, :index_categories)%>
|
56
|
+
<span><%= _("Unchecking this box will add <code>noindex, follow</code> meta tags in every category page, removing them from search engines and preventing duplicate content issues") %></span>
|
57
|
+
</div>
|
58
|
+
</div>
|
59
|
+
<div class='setting clear'>
|
60
|
+
<label class="float" for="setting_index_tags"><%= _("Index tags")%></label>
|
61
|
+
<div class='input_text'>
|
62
|
+
<%= check_box(:setting, :index_tags)%>
|
63
|
+
<span><%= _("Unchecking this box will add <code>noindex, follow</code> meta tags in every tags page, removing them from search engines and preventing duplicate content issues") %></span>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
<div class='setting clear'>
|
67
|
+
<label class="float" for="setting_robots"><%= _("Robots.txt")%></label>
|
68
|
+
<div class='input_text'>
|
69
|
+
<%= text_area(:setting, :robots, :rows => 10, :class => 'medium')%>
|
70
|
+
</div>
|
71
|
+
</div>
|
71
72
|
</div>
|
72
73
|
|
73
74
|
<% unless robot_writable? -%>
|
74
|
-
<
|
75
|
+
<div class='mandatory'><small><%= _("You robots.txt file is not writeable. Typo won't be able to write it")%></small></div>
|
75
76
|
<% end -%>
|
76
|
-
</
|
77
|
+
</div>
|
77
78
|
<%= hidden_field_tag 'from', 'seo' %>
|
78
79
|
<%= render :partial => 'submit' %>
|
79
80
|
<% end %>
|
@@ -1,42 +1,42 @@
|
|
1
1
|
<% @page_heading = _('Database migration') %>
|
2
2
|
<% subtabs_for(:settings) %>
|
3
3
|
|
4
|
-
<div
|
5
|
-
<
|
6
|
-
|
4
|
+
<div class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons settings'>
|
5
|
+
<h3 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'><span class='ui-icon ui-icon-gear'></span> <%= _("Information")%></h3>
|
6
|
+
<div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
|
7
|
+
|
7
8
|
<p>
|
8
|
-
<
|
9
|
-
|
9
|
+
<strong><%= _("Current database version")%>:</strong>
|
10
|
+
<%= @current_version %>
|
10
11
|
</p>
|
12
|
+
|
13
|
+
<% unless @needed_migrations.blank? %>
|
11
14
|
<p>
|
12
|
-
<
|
13
|
-
|
15
|
+
<strong><%= _("New database version")%>:</strong>
|
16
|
+
<%= @needed_version %>
|
14
17
|
</p>
|
15
18
|
<p>
|
16
19
|
<label><%= _("Your database supports migrations")%>:</label>
|
17
|
-
|
20
|
+
<%= @support ? _('yes') : _('no') %>
|
18
21
|
</p>
|
19
|
-
</div>
|
20
|
-
|
21
|
-
<% unless @needed_migrations.blank? %>
|
22
|
-
<div id="need">
|
23
22
|
<h3><%= _("Needed migrations")%></h3>
|
24
23
|
<ul>
|
25
24
|
<% for migration in @needed_migrations %>
|
26
25
|
<li><%= migration.humanize %></li>
|
27
26
|
<% end %>
|
28
27
|
</ul>
|
29
|
-
|
30
|
-
<% end %>
|
28
|
+
<% end %>
|
31
29
|
|
30
|
+
<% form_tag :action => 'migrate' do %>
|
31
|
+
<% if @current_version == @needed_version %>
|
32
|
+
<div class='ui-widget ui-widget ui-helper-reset' >
|
33
|
+
<div class='ui-state-highlight ui-corner-all' style='padding: 0pt 0.7em;'>
|
34
|
+
<p><span class='ui-icon ui-icon-info' style='float: left; margin-right: 0.3em;'></span><strong><%= _("You are up to date!")%></strong></p>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<% else %>
|
38
|
+
<%= save(_("Update database now")) %> <small><%= _("may take a moment")%></small>
|
39
|
+
<% end %>
|
40
|
+
<% end %>
|
41
|
+
</div>
|
32
42
|
</div>
|
33
|
-
|
34
|
-
<% form_tag :action => 'migrate' do %>
|
35
|
-
<div id="operations" class="paginate l">
|
36
|
-
<% if @current_version == @needed_version %>
|
37
|
-
<strong><%= _("You are up to date!")%></strong>
|
38
|
-
<% else %>
|
39
|
-
<%= save(_("Update database now")) %> <small><%= _("may take a moment")%></small>
|
40
|
-
<% end %>
|
41
|
-
</div>
|
42
|
-
<% end %>
|
@@ -3,78 +3,32 @@
|
|
3
3
|
|
4
4
|
<% form_tag :action => 'update' do %>
|
5
5
|
|
6
|
-
<
|
7
|
-
<
|
8
|
-
<div>
|
9
|
-
<
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
<div>
|
16
|
-
<label class="float" for="setting_ping_urls"><%= _("URLs to ping automatically")%></label>
|
17
|
-
<p class='input_text_title ml140'>
|
18
|
-
<%= text_area(:setting, :ping_urls, :rows => 3, :class => 'small medium') %>
|
19
|
-
</p>
|
20
|
-
</div>
|
21
|
-
<div>
|
22
|
-
<label class="float" for="setting_geourl_location"><%= _("Latitude, Longitude")%></label>
|
23
|
-
<p class='input_text_title ml140'>
|
24
|
-
<%= text_field(:setting, :geourl_location, { :class => 'small medium'})%><br />
|
25
|
-
<small><%= _("Display")%> <a href="http://geourl.org"><%= _("your lattitude and longitude")%></a> (<%= _("exemple")%> <tt>47.774,-122.201</tt>)</small>
|
26
|
-
</p>
|
27
|
-
</div>
|
28
|
-
</fieldset>
|
29
|
-
|
30
|
-
<fieldset>
|
31
|
-
<legend><%= _("Podcasts")%></legend>
|
32
|
-
<div>
|
33
|
-
<p><%= _("The below settings act as defaults when you choose to publish an enclosure with iTunes metadata")%>.</p>
|
34
|
-
<label for="setting_itunes_author" class="float"><%= _("Author")%></label>
|
35
|
-
<p class='input_text_title'>
|
36
|
-
<%= text_field(:setting, :itunes_author, { :class => 'small medium'}) %>
|
37
|
-
</p>
|
38
|
-
</div>
|
39
|
-
<div>
|
40
|
-
<label for="setting_itunes_subtitle" class="float"><%= _("Subtitle")%> <span class="mandatory">*</span></label>
|
41
|
-
<p class='input_text_title'>
|
42
|
-
<%= text_field(:setting, :itunes_subtitle, { :class => 'small medium'}) %>
|
43
|
-
</p>
|
6
|
+
<div class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons settings'>
|
7
|
+
<h3 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'><span class='ui-icon ui-icon-gear'></span> <%= _("Publish")%></h3>
|
8
|
+
<div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
|
9
|
+
<div class='setting'>
|
10
|
+
<label class="float" for="setting_send_outbound_pings"><%= _("Send trackbacks")%></label>
|
11
|
+
<div class='input_text'>
|
12
|
+
<%= check_box(:setting, :send_outbound_pings) %>
|
13
|
+
<span><%= _("When publishing articles, Typo can send trackbacks to websites that you link to. This should be disabled for private blogs as it will leak non-public information to sites that you're discussing. For public blogs, there's no real point in disabling this.")%></span>
|
14
|
+
</div>
|
44
15
|
</div>
|
45
|
-
<div>
|
46
|
-
<label class="float" for="
|
47
|
-
<
|
48
|
-
<%= text_area
|
49
|
-
</
|
16
|
+
<div class='setting clear'>
|
17
|
+
<label class="float" for="setting_ping_urls"><%= _("URLs to ping automatically")%></label>
|
18
|
+
<div class='input_text'>
|
19
|
+
<%= text_area(:setting, :ping_urls, :rows => 3, :class => 'medium') %>
|
20
|
+
</div>
|
50
21
|
</div>
|
51
|
-
<div>
|
52
|
-
<label class="float" for="
|
53
|
-
<
|
54
|
-
<%= text_field(:setting, :
|
55
|
-
|
22
|
+
<div class='setting clear'>
|
23
|
+
<label class="float" for="setting_geourl_location"><%= _("Latitude, Longitude")%></label>
|
24
|
+
<div class='input_text'>
|
25
|
+
<%= text_field(:setting, :geourl_location, { :class => 'medium'})%>
|
26
|
+
<span><%= _("Display")%> <a href="http://geourl.org"><%= _("your lattitude and longitude")%></a> (<%= _("exemple")%> <tt>47.774,-122.201</tt>)</span>
|
27
|
+
</div>
|
56
28
|
</div>
|
57
|
-
|
58
|
-
<label class="float" for="setting_itunes_name"><%= _("Optional Name")%> <span class="mandatory">**</span></label>
|
59
|
-
<p class='input_text_title'>
|
60
|
-
<%= text_field(:setting, :itunes_name, {:class => 'small medium'}) %><br />
|
61
|
-
<small>** <%= _("Not published by Apple")%></small>
|
62
|
-
</p>
|
63
|
-
</div>
|
64
|
-
<div>
|
65
|
-
<label class="float" for="setting_itunes_copyright"><%= _("Copyright Information")%></label>
|
66
|
-
<p class='input_text_title'>
|
67
|
-
<%= text_field(:setting, :itunes_copyright, {:class => 'small medium'}) %>
|
68
|
-
</p>
|
69
|
-
</div>
|
70
|
-
<div>
|
71
|
-
<label class="float" for="setting_itunes_explicit"><%= _("Explicit")%></label>
|
72
|
-
<p class='input_text_title'>
|
73
|
-
<%= check_box(:setting, :itunes_explicit)%>
|
74
|
-
</p>
|
75
|
-
</div>
|
76
|
-
</fieldset>
|
77
|
-
<%= hidden_field_tag 'from', 'write' %>
|
78
|
-
<%= render :partial => 'submit' %>
|
29
|
+
</div>
|
79
30
|
</div>
|
31
|
+
|
32
|
+
<%= hidden_field_tag 'from', 'write' %>
|
33
|
+
<%= render :partial => 'submit' %>
|
80
34
|
<% end %>
|