typo 5.4.3 → 5.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. data/CHANGELOG +21 -8
  2. data/README +2 -2
  3. data/app/controllers/accounts_controller.rb +6 -10
  4. data/app/controllers/admin/content_controller.rb +2 -3
  5. data/app/controllers/admin/profiles_controller.rb +0 -1
  6. data/app/controllers/admin/resources_controller.rb +6 -20
  7. data/app/controllers/articles_controller.rb +5 -5
  8. data/app/controllers/setup_controller.rb +45 -0
  9. data/app/controllers/xml_controller.rb +0 -9
  10. data/app/helpers/admin/base_helper.rb +50 -33
  11. data/app/helpers/admin/categories_helper.rb +12 -0
  12. data/app/helpers/admin/feedback_helper.rb +10 -0
  13. data/app/helpers/application_helper.rb +13 -0
  14. data/app/models/blog.rb +0 -10
  15. data/app/models/content.rb +4 -3
  16. data/app/models/feedback.rb +1 -0
  17. data/app/models/feedback/states.rb +2 -1
  18. data/app/models/resource.rb +0 -26
  19. data/app/models/user.rb +2 -2
  20. data/app/views/accounts/confirm.html.erb +1 -16
  21. data/app/views/accounts/login.html.erb +9 -17
  22. data/app/views/accounts/recover_password.html.erb +5 -8
  23. data/app/views/accounts/signup.html.erb +1 -0
  24. data/app/views/admin/categories/_categories.html.erb +11 -3
  25. data/app/views/admin/categories/index.html.erb +6 -9
  26. data/app/views/admin/categories/reorder.html.erb +5 -3
  27. data/app/views/admin/content/_article_list.html.erb +9 -4
  28. data/app/views/admin/content/_drafts.html.erb +7 -5
  29. data/app/views/admin/content/_form.html.erb +91 -83
  30. data/app/views/admin/content/_images.html.erb +4 -0
  31. data/app/views/admin/content/_visual_editor.html.erb +1 -0
  32. data/app/views/admin/content/index.html.erb +35 -38
  33. data/app/views/admin/dashboard/_comments.html.erb +17 -12
  34. data/app/views/admin/dashboard/_inbound.html.erb +11 -4
  35. data/app/views/admin/dashboard/_overview.html.erb +18 -8
  36. data/app/views/admin/dashboard/_popular.html.erb +17 -12
  37. data/app/views/admin/dashboard/_posts.html.erb +18 -13
  38. data/app/views/admin/dashboard/_typo_dev.html.erb +10 -6
  39. data/app/views/admin/dashboard/_welcome.html.erb +17 -3
  40. data/app/views/admin/dashboard/index.html.erb +9 -16
  41. data/app/views/admin/feedback/_button.html.erb +7 -7
  42. data/app/views/admin/feedback/_form.html.erb +28 -28
  43. data/app/views/admin/feedback/_item.html.erb +10 -3
  44. data/app/views/admin/feedback/article.html.erb +6 -5
  45. data/app/views/admin/feedback/index.html.erb +35 -37
  46. data/app/views/admin/pages/_form.html.erb +30 -42
  47. data/app/views/admin/pages/_pages.html.erb +15 -34
  48. data/app/views/admin/pages/_visual_editor.html.erb +1 -0
  49. data/app/views/admin/pages/index.html.erb +13 -6
  50. data/app/views/admin/profiles/index.html.erb +6 -4
  51. data/app/views/admin/resources/_upload.html.erb +15 -8
  52. data/app/views/admin/resources/images.html.erb +1 -1
  53. data/app/views/admin/resources/index.html.erb +1 -17
  54. data/app/views/admin/settings/_submit.html.erb +1 -1
  55. data/app/views/admin/settings/feedback.html.erb +96 -91
  56. data/app/views/admin/settings/index.html.erb +74 -74
  57. data/app/views/admin/settings/seo.html.erb +67 -66
  58. data/app/views/admin/settings/update_database.html.erb +24 -24
  59. data/app/views/admin/settings/write.html.erb +24 -70
  60. data/app/views/admin/sidebar/_active.html.erb +9 -8
  61. data/app/views/admin/sidebar/_available.html.erb +5 -3
  62. data/app/views/admin/sidebar/index.html.erb +12 -12
  63. data/app/views/admin/themes/catalogue.html.erb +16 -3
  64. data/app/views/admin/themes/index.html.erb +23 -13
  65. data/app/views/admin/users/_form.html.erb +180 -175
  66. data/app/views/admin/users/edit.html.erb +4 -5
  67. data/app/views/admin/users/index.html.erb +4 -3
  68. data/app/views/admin/users/new.html.erb +5 -7
  69. data/app/views/layouts/accounts.html.erb +7 -9
  70. data/app/views/layouts/administration.html.erb +21 -27
  71. data/app/views/layouts/setup.html.erb +18 -0
  72. data/app/views/notification_mailer/notif_user.html.erb +14 -12
  73. data/app/views/setup/confirm.html.erb +1 -0
  74. data/app/views/setup/index.html.erb +17 -0
  75. data/app/views/shared/_confirm.html.erb +16 -0
  76. data/config/environment.rb +3 -2
  77. data/config/initializers/access_rules.rb +0 -1
  78. data/config/routes.rb +4 -3
  79. data/db/migrate/087_drop_blacklist_patterns.rb +14 -0
  80. data/db/migrate/088_drop_session_table.rb +14 -0
  81. data/db/schema.rb +29 -37
  82. data/doc/Installer.txt +3 -3
  83. data/lib/spam_protection.rb +0 -10
  84. data/lib/tasks/release.rake +1 -1
  85. data/lib/typo_version.rb +1 -1
  86. data/public/images/admin/ui-bg_diagonals-thick_90_eeeeee_40x40.png +0 -0
  87. data/public/images/admin/ui-bg_flat_15_cd0a0a_40x100.png +0 -0
  88. data/public/images/admin/ui-bg_glass_100_e4f1fb_1x400.png +0 -0
  89. data/public/images/admin/ui-bg_glass_80_d7ebf9_1x400.png +0 -0
  90. data/public/images/admin/ui-bg_highlight-hard_100_f2f5f7_1x100.png +0 -0
  91. data/public/images/admin/ui-bg_highlight-hard_70_000000_1x100.png +0 -0
  92. data/public/images/admin/ui-bg_highlight-soft_100_deedf7_1x100.png +0 -0
  93. data/public/images/admin/ui-bg_highlight-soft_25_ffef8f_1x100.png +0 -0
  94. data/public/images/admin/ui-bg_highlight-soft_50_116088_1x100.png +0 -0
  95. data/public/images/admin/ui-icons_2694e8_256x240.png +0 -0
  96. data/public/images/admin/ui-icons_2e83ff_256x240.png +0 -0
  97. data/public/images/admin/ui-icons_3d80b3_256x240.png +0 -0
  98. data/public/images/admin/ui-icons_72a7cf_256x240.png +0 -0
  99. data/public/images/admin/ui-icons_ffffff_256x240.png +0 -0
  100. data/public/javascripts/lightbox.js +2 -2
  101. data/public/stylesheets/accounts.css +119 -0
  102. data/public/stylesheets/administration.css +598 -625
  103. data/spec/controllers/accounts_controller_spec.rb +94 -12
  104. data/spec/controllers/admin/categories_controller_spec.rb +0 -11
  105. data/spec/controllers/admin/profiles_controller_spec.rb +2 -2
  106. data/spec/controllers/admin/resources_controller_spec.rb +15 -2
  107. data/spec/controllers/articles_controller_spec.rb +27 -0
  108. data/spec/controllers/routes/xml_routing_spec.rb +0 -8
  109. data/spec/controllers/setup_controller_spec.rb +24 -0
  110. data/spec/controllers/xml_controller_spec.rb +0 -7
  111. data/spec/models/comment_spec.rb +37 -7
  112. data/spec/models/configuration_spec.rb +0 -11
  113. data/spec/models/trackback_spec.rb +0 -8
  114. data/spec/models/user_spec.rb +9 -0
  115. data/spec/spec_helper.rb +1 -1
  116. data/test/fixtures/blogs.yml +0 -8
  117. data/test/fixtures/users.yml +1 -0
  118. data/vendor/plugins/upload_progress/lib/upload_progress_helper.rb +1 -1
  119. metadata +26 -38
  120. data/app/controllers/admin/blacklist_controller.rb +0 -47
  121. data/app/helpers/admin/blacklist_helper.rb +0 -2
  122. data/app/models/blacklist_pattern.rb +0 -24
  123. data/app/views/admin/base/_recent_comments.html.erb +0 -10
  124. data/app/views/admin/base/_recent_trackbacks.html.erb +0 -10
  125. data/app/views/admin/blacklist/_blacklist_patterns.html.erb +0 -16
  126. data/app/views/admin/blacklist/_form.html.erb +0 -14
  127. data/app/views/admin/blacklist/_quick_post.html.erb +0 -9
  128. data/app/views/admin/blacklist/destroy.html.erb +0 -10
  129. data/app/views/admin/blacklist/edit.html.erb +0 -10
  130. data/app/views/admin/blacklist/index.html.erb +0 -10
  131. data/app/views/admin/dashboard/_sysinfo.html.erb +0 -11
  132. data/app/views/admin/resources/_itunes_category_add.html.erb +0 -11
  133. data/app/views/admin/resources/_itunes_category_edit.html.erb +0 -32
  134. data/app/views/admin/resources/_metadata_add.html.erb +0 -22
  135. data/app/views/admin/resources/_metadata_edit.html.erb +0 -22
  136. data/config/iTunes.yml +0 -72
  137. data/db/typo_dev +0 -0
  138. data/public/images/admin/blue_block_bottom_left.jpg +0 -0
  139. data/public/images/admin/blue_block_bottom_right.jpg +0 -0
  140. data/public/images/admin/blue_block_top_left.jpg +0 -0
  141. data/public/images/admin/blue_block_top_right.jpg +0 -0
  142. data/public/images/admin/editor_active_top_left.jpg +0 -0
  143. data/public/images/admin/editor_active_top_right.jpg +0 -0
  144. data/public/images/admin/editor_bottom_left.jpg +0 -0
  145. data/public/images/admin/editor_bottom_right.jpg +0 -0
  146. data/public/images/admin/input_text_left.jpg +0 -0
  147. data/public/images/admin/input_text_right.jpg +0 -0
  148. data/public/images/admin/input_text_small_left.jpg +0 -0
  149. data/public/images/admin/input_text_small_right.jpg +0 -0
  150. data/public/images/admin/publisher_bottom.jpg +0 -0
  151. data/public/images/admin/publisher_top.jpg +0 -0
  152. data/public/stylesheets/border-radius-ie8.htc +0 -34
  153. data/spec/controllers/admin/blacklist_controller_spec.rb +0 -54
  154. data/spec/models/blacklist_pattern_spec.rb +0 -12
  155. data/test/fixtures/blacklist_patterns.yml +0 -8
@@ -3,83 +3,83 @@
3
3
 
4
4
  <% form_tag :action => 'update' do %>
5
5
 
6
- <fieldset>
7
- <legend><%= _("Your blog")%></legend>
8
-
9
- <div>
10
- <label for="setting_blog_name" class="float"><%= _("Blog name")%></label>
11
- <p class='input_text_title'>
12
- <%= text_field(:setting, :blog_name, {:class => 'small', :size => this_blog.blog_name.length})%>
13
- </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> <%= _("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
- <div>
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
- <fieldset>
54
- <legend>Publishing options</legend>
55
- <div>
56
- <label for="setting_limit_article_display" class="float"><%= _("Display")%> </label>
57
- <p class='input_text_title'>
58
- <%= text_field(:setting, :limit_article_display, {:size => 4, :class => 'small'})%>
59
- <%= _("articles on my homepage by default")%>
60
- </p>
61
- </div>
62
- <div>
63
- <label for="setting_limit_rss_display" class="float"><%= _("Display")%> </label>
64
- <p class='input_text_title'>
65
- <%= text_field(:setting, :limit_rss_display, {:size => 4, :class => 'small'})%>
66
- <%= _("articles in my news feed by default")%>.
67
- </p>
68
- </div>
69
- <div>
70
- <label class="float" for="setting_show_extended_on_rss"><%= _("Show full article on feed")%>:</label>
71
- <p class='input_text_title'>
72
- <%= check_box(:setting, :show_extended_on_rss) %>
73
- </p>
74
- </div>
75
- <p><%= _('You can use your Google Feedburner account instead of Typo feed URL. To enable this, fill this form with your Feedburner ID.') %></p>
76
- <div>
77
- <label class="float" for="setting_feedburner_url"><%= _("Feedburner ID")%></label>
78
- <p class='input_text_title'>
79
- <%= text_field(:setting, :feedburner_url, :class => 'small medium')%>
80
- </p>
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
- </fieldset>
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
- <fieldset>
8
- <legend><%= _("Search Engine Optimisation")%></legend>
9
-
10
- <div>
11
- <label class="float"><%= _("Show blog name")%></label>
12
- <p class='input_text_title ml140'>
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
- </p>
20
- </div>
21
- <div>
22
- <label class="float" for="setting_permalink_format"><%= _("Format of permalink")%></label>
23
- <p class='input_text_title'>
24
- <%= text_field(:setting, :permalink_format, { :class => 'small medium'})%>
25
- </p>
26
- </div>
27
- <div>
28
- <label class="float" for="setting_google_analytics"><%= _("Google Analytics")%></label>
29
- <p class='input_text_title'>
30
- <%= text_field(:setting, :google_analytics, :class => 'small medium')%>
31
- </p>
32
- </div>
33
- <div>
34
- <label class="float" for="setting_meta_description"><%= _("Meta description")%></label>
35
- <p class='input_text_title ml140'>
36
- <%= text_area(:setting, :meta_description, :rows => 3, :class => 'small large')%>
37
- </p>
38
- </div>
39
- <div>
40
- <label class="float" for="setting_meta_keywords"><%= _("Meta keywords")%></label>
41
- <p class='input_text_title ml140'>
42
- <%= text_field(:setting, :meta_keywords, :class => 'small medium')%>
43
- </p>
44
- </div>
45
- <div>
46
- <label class="float" for="setting_rss_description"><%= _("Use RSS description")%></label>
47
- <p class='input_text_title ml140'>
48
- <%= check_box(:setting, :rss_description)%>
49
- <%= "#{_('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')}"%>
50
- </p>
51
- </div>
52
- <div>
53
- <label class="float" for="setting_index_categories"><%= _("Index categories")%></label>
54
- <p class='input_text_title ml140'>
55
- <%= check_box(:setting, :index_categories)%>
56
- <%= _("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") %>
57
- </p>
58
- </div>
59
- <div>
60
- <label class="float" for="setting_index_tags"><%= _("Index tags")%></label>
61
- <p class='input_text_title ml140'>
62
- <%= check_box(:setting, :index_tags)%>
63
- <%= _("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") %>
64
- </p>
65
- </div>
66
- <div>
67
- <label class="float" for="setting_robots"><%= _("Robots.txt")%></label>
68
- <p class='input_text_title ml140'>
69
- <%= text_area(:setting, :robots, :rows => 10, :class => 'small large')%>
70
- </p>
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
- <p class='mandatory'><small><%= _("You robots.txt file is not writeable. Typo won't be able to write it")%></small></p>
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
- </fieldset>
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 id="settings">
5
- <div id="gensettings">
6
- <h3><%= _("Information")%></h3>
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
- <label><%= _("Current database version")%>:</label>
9
- <span class="db_version"><%= @current_version %></span>
9
+ <strong><%= _("Current database version")%>:</strong>
10
+ <%= @current_version %>
10
11
  </p>
12
+
13
+ <% unless @needed_migrations.blank? %>
11
14
  <p>
12
- <label><%= _("New database version")%>:</label>
13
- <span class="db_version"><%= @needed_version %></span>
15
+ <strong><%= _("New database version")%>:</strong>
16
+ <%= @needed_version %>
14
17
  </p>
15
18
  <p>
16
19
  <label><%= _("Your database supports migrations")%>:</label>
17
- <span class="db_version"><%= @support ? _('yes') : _('no') %></span>
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
- </div>
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
- <fieldset>
7
- <legend><%= _("Publish")%></legend>
8
- <div>
9
- <label class="float" for="setting_send_outbound_pings"><%= _("Send trackbacks")%></label>
10
- <p class='input_text_title'>
11
- <%= check_box(:setting, :send_outbound_pings) %>
12
- </p>
13
- <p><%= _("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.")%></p>
14
- </div>
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="setting_itunes_summary"><%= _("Summary")%> <span class="mandatory">*</span></label>
47
- <p class='input_text_title ml140'>
48
- <%= text_area :setting, :itunes_summary, :rows => 3, :class => 'small medium' %>
49
- </p>
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="setting_itunes_email"><%= _("Email")%> <span class="mandatory">**</span></label>
53
- <p class='input_text_title'>
54
- <%= text_field(:setting, :itunes_email, {:class => 'small medium'}) %>
55
- </p>
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
- <div>
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 %>