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
@@ -1,4 +1,6 @@
1
+ <!--
1
2
  <a href="javascript:" class="carousel-control" rel="prev">Previous</a>
3
+ -->
2
4
  <div id="carousel-wrapper">
3
5
  <div id="carousel-content">
4
6
  <% @images.each do |image| %>
@@ -8,7 +10,9 @@
8
10
  <% end %>
9
11
  </div>
10
12
  </div>
13
+ <!--
11
14
  <a href="javascript:" class="carousel-control" rel="next">Next</a>
15
+ -->
12
16
  <script type='text/javascript'>
13
17
  new Carousel('carousel-wrapper', $$('#carousel-content .slide'), $$('a.carousel-control', 'a.carousel-jumper'), {duration: 0.4, circular: false});
14
18
  </script>
@@ -6,6 +6,7 @@
6
6
  $('f').className = 'active';
7
7
  $('text_filter').value = 'none';
8
8
  html = $('article_body_and_extended').value;
9
+ $('simple_editor').innerHTML = '';
9
10
 
10
11
  if (CKEDITOR.instances.article__body_and_extended_editor &&
11
12
  typeof(CKEDITOR.instances.article__body_and_extended_editor) == 'object') {
@@ -1,8 +1,9 @@
1
1
  <% @page_heading = _('Manage articles') %>
2
+ <% @link_to_new = link_to(_("New Article"), {:controller => 'content', :action => 'new'}, :id => 'dialog-link', :class => 'ui-state-default ui-corner-all') %>
3
+
2
4
  <% subtabs_for(:content) %>
3
5
 
4
- <div class="list" id="articles">
5
- <% form_remote_tag :url => {:action => 'index'},
6
+ <% form_remote_tag :url => {:action => 'index'},
6
7
  :method => :get,
7
8
  :name => 'article',
8
9
  :update => {:success => 'articleList'},
@@ -10,41 +11,37 @@
10
11
  :complete => "Element.hide('spinner')" \
11
12
  do %>
12
13
 
13
- <h4 class='mt30'><label for="search"><%= _("Search articles that contains...")%></label></h4>
14
- <input id="search" type="text" name="search[searchstring]" class='small medium' />
15
- <%= submit_tag(_("Search"), {:class => 'search'}) %>
16
- <span id='spinner' style="display:none;"><%= image_tag('spinner.gif') %></span>
17
-
18
- <table>
19
- <tr>
20
- <th><%= _("Title") %></th>
21
- <th><%= _("Categories") %></th>
22
- <th><%= _("Date") %></th>
23
- <th><%= _("Author")%></th>
24
- <th><%= _("Status") %></th>
25
- <th><%= _("Feedback")%></th>
26
- </tr>
27
- <tr class="menubar">
28
- <td>&nbsp;</td>
29
- <td><%= collection_select_with_current('search', 'category', Category.all, "id", "name", @search[:category].to_i, true)
30
- %></td>
31
- <td>
32
- <%= collection_select_with_current(:search, :published_at, Article.find_by_published_at, "publication", "publication", @search[:published_at], true) %>
33
- </td>
34
- <td><%= collection_select_with_current(:search, :user_id, User.find(:all), "id", "name", @search[:user_id].to_i, true) %></td>
35
- <td>
36
- <select name="search[published]">
37
- <option value="">Please select</option>
38
- <option value="0">Unpublished</option>
39
- <option value="1">Published</option>
40
- </select>
41
- </td>
42
- <td><input type="submit" value='<%= _("Filter") %>' />
43
- </tr>
44
- <tbody id="articleList">
45
- <%= render :partial => 'article_list', :object => @articles -%>
46
- </tbody>
47
- </table>
14
+ <%= render :partial => 'drafts' unless Article.drafts.empty? %>
48
15
 
49
- <%end%>
16
+ <div class='settings'>
17
+ <h4><label for="search"><%= _("Search articles that contains...")%></label></h4>
18
+ <div class='input_text'>
19
+ <input id="search" type="text" name="search[searchstring]" class='small medium' />
20
+ <%= submit_tag(_("Search"), {:class => 'ed_button'}) %>
21
+ <span id='spinner' style="display:none;"><%= image_tag('spinner.gif') %></span>
50
22
  </div>
23
+ </div>
24
+
25
+ <table>
26
+ <tr>
27
+ <th><%= _("Title") %></th>
28
+ <th><%= _("Categories") %></th>
29
+ <th><%= _("Author")%></th>
30
+ <th><%= _("Date") %></th>
31
+ <th><%= _("Feedback")%></th>
32
+ </tr>
33
+ <tr>
34
+ <td>&nbsp;</td>
35
+ <td><%= collection_select_with_current('search', 'category', Category.all, "id", "name", @search[:category].to_i, true)
36
+ %></td>
37
+ <td><%= collection_select_with_current(:search, :user_id, User.find(:all), "id", "name", @search[:user_id].to_i, true) %></td>
38
+ <td>
39
+ <%= collection_select_with_current(:search, :published_at, Article.find_by_published_at, "publication", "publication", @search[:published_at], true) %>
40
+ </td>
41
+ <td><input type="submit" value='<%= _("Filter") %>' class='ed_button' />
42
+ </tr>
43
+ <tbody id="articleList">
44
+ <%= render :partial => 'article_list', :object => @articles -%>
45
+ </tbody>
46
+ </table>
47
+ <%end%>
@@ -1,14 +1,19 @@
1
- <div class="bordered">
2
- <h3><%= _("Latest Comments") %></h3>
3
- <ul>
4
- <% if @comments.size == 0 %>
5
- <li><%= _("No comments yet") %></li>
6
- <% else %>
7
- <% for comment in @comments -%>
8
- <li>
9
- <%= link_to_permalink comment, h(_("By %s on %s", comment.author, comment.article.title)) %>
10
- </li>
1
+ <div class='dashboard-left ui-accordion ui-widget ui-helper-reset ui-accordion-icons'>
2
+ <h3 class='ui-accordion-header ui-helper-reset ui-state-active ui-corner-top'>
3
+ <span class='ui-icon ui-icon-comment'> </span>
4
+ <%= _("Latest Comments") %>
5
+ </h3>
6
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
7
+ <ul>
8
+ <% if @comments.size == 0 %>
9
+ <li><%= _("No comments yet") %></li>
10
+ <% else %>
11
+ <% for comment in @comments -%>
12
+ <li>
13
+ <%= link_to_permalink comment, h(_("By %s on %s", comment.author, comment.article.title)) %>
14
+ </li>
15
+ <% end %>
11
16
  <% end %>
12
- <% end %>
13
- </ul>
17
+ </ul>
18
+ </div>
14
19
  </div>
@@ -1,7 +1,12 @@
1
- <h3><%= _("Inbound links") %></h3>
2
- <% if @inbound_links.nil? %>
3
- <%= _('You have no internet connection') %>
4
- <% else %>
1
+ <div class='dashboard ui-accordion ui-widget ui-helper-reset ui-accordion-icons'>
2
+ <h3 class='ui-accordion-header ui-helper-reset ui-state-active ui-corner-top'>
3
+ <span class='ui-icon ui-icon-link'> </span>
4
+ <%= _("Inbound links") %>
5
+ </h3>
6
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
7
+ <% if @inbound_links.nil? %>
8
+ <%= _('You have no internet connection') %>
9
+ <% else %>
5
10
  <ul>
6
11
  <% if @inbound_links.size == 0 %>
7
12
  <li><%= _("No one made a link to you yet") %></li>
@@ -14,3 +19,5 @@
14
19
  <% end %>
15
20
  </ul>
16
21
  <% end %>
22
+ </div>
23
+ </div>
@@ -1,9 +1,19 @@
1
- <div class="dashboard">
2
- <p> <%= _("This place gives you a quick overview of what happens on your Typo blog and what you can do. Maybe will you want to %s, %s or %s." ,
3
- link_to(_('write a post'), :controller => 'content', :action => 'new'),
4
- link_to(_('write a page'), :controller => 'page', :action => 'new') ,
5
- link_to(_("update your profile or change your password"), :controller => 'users', :action => 'edit', :id => session[:user_id]) ) -%>.</p>
6
- <p> <%= _("You can also do a bit of design, %s or %s." ,
7
- link_to(_("change your blog presentation"), :controller => 'themes') ,
8
- link_to(_("enable plugins"), :controller => 'sidebar') ) -%></p>
1
+ <div class='ui-widget ui-widget ui-helper-reset' >
2
+ <div class='ui-state-highlight ui-corner-all' style='padding: 0pt 0.7em;'>
3
+ <p>
4
+ <span class='ui-icon ui-icon-info' style='float: left; margin-right: 0.3em;'></span>
5
+ <%= _("This place gives you a quick overview of what happens on your Typo blog and what you can do. Maybe will you want to %s, %s or %s." ,
6
+ link_to(_('write a post'), :controller => 'content', :action => 'new'),
7
+ link_to(_('write a page'), :controller => 'page', :action => 'new') ,
8
+ link_to(_("update your profile or change your password"), :controller => 'users', :action => 'edit', :id => session[:user_id]) ) -%>.</p>
9
+ <p> <%= _("You can also do a bit of design, %s or %s." ,
10
+ link_to(_("change your blog presentation"), :controller => 'themes') ,
11
+ link_to(_("enable plugins"), :controller => 'sidebar') ) -%></p>
12
+
13
+ <p>
14
+ If you need help, <a href="http://typosphere.org">read our documentation</a>. You can also browse our
15
+ <a href="http://typogarden.org">theme catalogue</a>
16
+ or <a href='http://plugins.typosphere.org'>download some plugins</a> to customize your Typo blog.
17
+ </p>
18
+ </div>
9
19
  </div>
@@ -1,12 +1,17 @@
1
- <div class="bordered">
2
- <h3><%= _("Most popular") %></h3>
3
- <ul>
4
- <% if @bestof.size == 0 %>
5
- <li><%= _("Nothing to show yet") %> !</li>
6
- <% else %>
7
- <% for article in @bestof -%>
8
- <li><%= link_to_permalink article, article.title %> (<%= link_to_permalink article, article.comment_count %>)</li>
9
- <% end %>
10
- <% end -%>
11
- </ul>
12
- </div>
1
+ <div class='dashboard-left ui-accordion ui-widget ui-helper-reset ui-accordion-icons'>
2
+ <h3 class='ui-accordion-header ui-helper-reset ui-state-active ui-corner-top'>
3
+ <span class='ui-icon ui-icon-star'> </span>
4
+ <%= _("Most popular") %>
5
+ </h3>
6
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
7
+ <ul>
8
+ <% if @bestof.size == 0 %>
9
+ <li><%= _("Nothing to show yet") %> !</li>
10
+ <% else %>
11
+ <% for article in @bestof -%>
12
+ <li><%= link_to_permalink article, article.title %> (<%= link_to_permalink article, article.comment_count %>)</li>
13
+ <% end %>
14
+ <% end -%>
15
+ </ul>
16
+ </div>
17
+ </div>
@@ -1,14 +1,19 @@
1
- <div class="bordered">
2
- <h3><%= _("Latest posts") %></h3>
3
- <ul>
4
- <% if @recent_posts.size == 0 %>
5
- <li> <%= link_to _("No posts yet, why don't you start and write one"), :controller => 'content', :action => 'new' %> ?</li>
6
- <% else %>
7
- <% for post in @recent_posts -%>
8
- <li>
9
- <%= link_to_permalink post, post.title %> (<%= link_to_permalink(post, post.published_comments.size) %>)
10
- </li>
11
- <% end %>
12
- <% end %>
13
- </ul>
1
+ <div class='dashboard ui-accordion ui-widget ui-helper-reset ui-accordion-icons'>
2
+ <h3 class='ui-accordion-header ui-helper-reset ui-state-active ui-corner-top'>
3
+ <span class='ui-icon ui-icon-note'> </span>
4
+ <%= _("Latest Posts") %>
5
+ </h3>
6
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
7
+ <ul>
8
+ <% if @recent_posts.size == 0 %>
9
+ <li> <%= link_to _("No posts yet, why don't you start and write one"), :controller => 'content', :action => 'new' %> ?</li>
10
+ <% else %>
11
+ <% for post in @recent_posts -%>
12
+ <li>
13
+ <%= link_to_permalink post, post.title %> (<%= link_to_permalink(post, post.published_comments.size) %>)
14
+ </li>
15
+ <% end %>
16
+ <% end %>
17
+ </ul>
18
+ </div>
14
19
  </div>
@@ -1,8 +1,12 @@
1
- <div class="bordered-orange">
2
- <h3><%= _("Latest news from the Typo development blog") %></h3>
3
- <% if @typo_links.nil? %>
4
- <%= _('You have no internet connection') %>
5
- <% else %>
1
+ <div class='dashboard ui-accordion ui-widget ui-helper-reset ui-accordion-icons'>
2
+ <h3 class='ui-accordion-header ui-helper-reset ui-state-active ui-corner-top'>
3
+ <span class='ui-icon ui-icon-signal-diag'> </span>
4
+ <%= _("Latest news from the Typo development blog") %>
5
+ </h3>
6
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
7
+ <% if @typo_links.nil? %>
8
+ <%= _('You have no internet connection') %>
9
+ <% else %>
6
10
  <ul>
7
11
  <% if @typo_links.size == 0 %>
8
12
  <li><%= _("Oh no, nothing new") %></li>
@@ -17,5 +21,5 @@
17
21
  <% end %>
18
22
  </ul>
19
23
  <% end %>
20
- <hr />
24
+ </div>
21
25
  </div>
@@ -1,3 +1,17 @@
1
- <h2><%= _("Welcome back, %s!" ,current_user.name ) -%></h2>
2
-
3
- <p><%= _("%d articles and %d comments were posted since your last connexion", @newposts, @newcomments) %></p>
1
+ <div class='dashboard-left ui-accordion ui-widget ui-helper-reset ui-accordion-icons'>
2
+ <h3 class='ui-accordion-header ui-helper-reset ui-state-active ui-corner-top'>
3
+ <span class='ui-icon ui-icon-person'> </span>
4
+ <%= _("Welcome back, %s!" ,current_user.name ) -%>
5
+ </h3>
6
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
7
+ <p><%= _("%d articles and %d comments were posted since your last connexion", @newposts, @newcomments) %></p>
8
+ <p><%= _("You're running Typo %s", TYPO_VERSION) %></p>
9
+ <ul>
10
+ <li> <%= _("Total posts : %d", @statposts) %></li>
11
+ <li> <%= _("Your posts : %d" , @statuserposts) %></li>
12
+ <li> <%= _("Total comments : %d" , @statcomments) %></li>
13
+ <li> <%= _("Spam comments : %d" , @statspam) %></li>
14
+ </ul>
15
+
16
+ </div>
17
+ </div>
@@ -1,20 +1,13 @@
1
1
  <% content_for('tasks') do %>
2
- <li><a href="http://typosphere.org">Documentation</a></li>
3
- <li><a href="http://typogarden.org">Themes</a></li>
2
+ <li><a href='#'>&nbsp;</a></li>
4
3
  <% end %>
5
4
 
6
- <div id='dashboard-left'>
7
- <%= render :partial => "welcome" %>
8
- <%= render :partial => "sysinfo" %>
9
- </div>
10
-
11
- <div id='dashboard-right'>
12
- <%= render :partial => "overview" %>
13
- <%= render :partial => "inbound" %>
14
- <%= render :partial => "comments" %>
15
- <%= render :partial => "posts" %>
16
- <%= render :partial => "popular" %>
17
- <%= render :partial => "typo_dev" %>
18
- </div>
19
-
5
+ <%= render :partial => "overview" %>
6
+ <%= render :partial => "welcome" %>
7
+ <%= render :partial => "inbound" %>
8
+ <%= render :partial => "comments" %>
9
+ <%= render :partial => "posts" %>
10
+ <%= render :partial => "popular" %>
11
+ <%= render :partial => "typo_dev" %>
20
12
 
13
+ <br class='clear' />
@@ -1,10 +1,10 @@
1
- <p>
1
+ <div class='settings'>
2
2
  <%= hidden_field_tag "confirmed", params[:confirmed] %>
3
3
  <%= hidden_field_tag "published", params[:published] %>
4
4
  <%= hidden_field_tag "bulkop_#{position}", "",{:id=>"bulkop"} %>
5
- <%= submit_tag _("Delete Checked Items"), {:class => 'delete',:onclick=>"getElementById('bulkop').value='Delete Checked Items'"} %> &nbsp;
6
- <%= submit_tag _("Delete all spam"), {:class => 'delete', :onclick=>"getElementById('bulkop').value='Delete all spam'"}%>
7
- <%= submit_tag _("Mark Checked Items as Spam"), {:class => 'delete',:onclick=>"getElementById('bulkop').value='Mark Checked Items as Spam'"} %>
8
- <%= submit_tag _("Mark Checked Items as Ham"), {:class => 'confirm',:onclick=>"getElementById('bulkop').value='Mark Checked Items as Ham'"} %>
9
- <%= submit_tag _("Confirm Classification of Checked Items"), {:class => 'confirm', :onclick=>"getElementById('bulkop').value='Confirm Classification of Checked Items'"} %>
10
- </p>
5
+ <%= submit_tag _("Delete Checked Items"), {:class => 'ed_button',:onclick=>"getElementById('bulkop').value='Delete Checked Items'"} %> &nbsp;
6
+ <%= submit_tag _("Delete all spam"), {:class => 'ed_button', :onclick=>"getElementById('bulkop').value='Delete all spam'"}%>
7
+ <%= submit_tag _("Mark Checked Items as Spam"), {:class => 'ed_button',:onclick=>"getElementById('bulkop').value='Mark Checked Items as Spam'"} %>
8
+ <%= submit_tag _("Mark Checked Items as Ham"), {:class => 'ed_button',:onclick=>"getElementById('bulkop').value='Mark Checked Items as Ham'"} %>
9
+ <%= submit_tag _("Confirm Classification of Checked Items"), {:class => 'ed_button', :onclick=>"getElementById('bulkop').value='Confirm Classification of Checked Items'"} %>
10
+ </div>
@@ -1,32 +1,32 @@
1
-
2
1
  <%= error_messages_for 'comment' %>
3
2
  <%= hidden_field_tag 'article_id', @article.id %>
4
3
 
5
- <fieldset>
6
- <legend><%= _("Add a comment") %></legend>
7
-
8
- <div>
9
- <label for="comment_author" class='float'><%= _("Author")%></label>
10
- <p class='input_text_title'>
11
- <%= text_field 'comment', 'author', :class => 'small medium', :value => current_user.display_name %>
12
- </p>
13
- </div>
14
- <div>
15
- <label for="comment_email" class='float'><%= _("Email")%></label>
16
- <p class='input_text_title'>
17
- <%= text_field 'comment', 'email', :class => 'small medium', :value => current_user.email %>
18
- </p>
19
- </div>
20
- <div>
21
- <label for="comment_url" class='float'><%= _("Url") %></label>
22
- <p class='input_text_title'>
23
- <%= text_field 'comment', 'url', :class => 'small medium', :value => current_user.url %>
24
- </p>
4
+ <div id='comment' 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> <%= _("Add a comment")%></h3>
6
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
7
+ <div class='setting'>
8
+ <label for="comment_author" class='float'><%= _("Author")%></label>
9
+ <p class='input_text'>
10
+ <%= text_field 'comment', 'author', :class => 'medium', :value => current_user.display_name %>
11
+ </p>
12
+ </div>
13
+ <div class='setting clear'>
14
+ <label for="comment_email" class='float'><%= _("Email")%></label>
15
+ <p class='input_text'>
16
+ <%= text_field 'comment', 'email', :class => 'medium', :value => current_user.email %>
17
+ </p>
18
+ </div>
19
+ <div class='setting clear'>
20
+ <label for="comment_url" class='float'><%= _("Url") %></label>
21
+ <p class='input_text'>
22
+ <%= text_field 'comment', 'url', :class => 'medium', :value => current_user.url %>
23
+ </p>
24
+ </div>
25
+ <div class='setting clear'>
26
+ <label for="comment_body" class='float'><%= _("Content")%></label>
27
+ <p class='input_text'>
28
+ <%= text_area 'comment', 'body', { :rows => '10', :class => 'small medium'} %>
29
+ </p>
30
+ </div>
25
31
  </div>
26
- <div>
27
- <label for="comment_body" class='float'><%= _("Content")%></label>
28
- <p class='input_text_title'>
29
- <%= text_area 'comment', 'body', { :rows => '10', :class => 'small medium'} %>
30
- </p>
31
- </div>
32
- </fieldset>
32
+ </div>
@@ -1,12 +1,19 @@
1
1
  <tr <%= alternate_class %>>
2
2
  <td><input class= "feedback_check" type="checkbox" name="feedback_check[<%= item.id %>]"/></td>
3
3
  <td class='<%= comment_class item.state %>'><%= item.state %></td>
4
+ <td>
5
+ <div id="feedback_<%=item.id%>">
6
+ <%= link_to_remote(h(truncate(item.body, :length => 100)), :url => { :action => 'preview', :id => item.id })%>
7
+ </div>
8
+ <%= show_actions item %>
9
+ </td>
4
10
  <td><%= link_to item.article.title, :controller => 'feedback', :action => 'article', :id => item.article_id %></td>
5
11
  <td>
6
12
  <%= link_to_unless item.url.blank?, ((h(item.author) || '(unknown)').slice(0,40)), item.url %><br />
7
13
  <%=h item.email.to_s.slice(0,40) %>
8
14
  </td>
9
- <td id="feedback_<%=item.id%>">
10
- <%=link_to_remote(h(truncate(item.body, :length => 100)), :url => { :action => 'preview', :id => item.id })%></td>
11
- <td><%=h item.ip %></td>
15
+ <td>
16
+ <%= format_date item.created_at %>
17
+ <%= published_or_not item %>
18
+ </td>
12
19
  </tr>
@@ -1,9 +1,10 @@
1
- <% @page_heading = _("Comments for %s (%s)","#{ link_to h(@article.title), :controller => '/admin/content', :action => 'new', :id => @article.id }","#{ link_to _('add a comment'), '#comment' }") %>
1
+ <% @page_heading = _("Comments for %s", @article.title) %>
2
+ <% @link_to_new = link_to(_("Add a comment"), '#comment', {:id => 'dialog-link', :class => 'ui-state-default ui-corner-all'}) %>
2
3
 
3
4
  <% content_for (:tasks) do %>
4
- <%= subtab(_('All comments'),'', {:action => :article, :id => @article.id, :ham => 'y', :spam => 'y'} ) %>
5
- <%= subtab(_('Limit to ham'), '', {:action => :article, :id => @article.id, :ham => 'y'}) %>
6
- <%= subtab(_('Limit to spam'), '', {:action => :article, :id => @article.id, :spam => 'y'}) %>
5
+ <%= subtab(_('All comments'), {:action => :article, :id => @article.id, :ham => 'y', :spam => 'y'} ) %>
6
+ <%= subtab(_('Limit to ham'), {:action => :article, :id => @article.id, :ham => 'y'}) %>
7
+ <%= subtab(_('Limit to spam'), {:action => :article, :id => @article.id, :spam => 'y'}) %>
7
8
  <% end %>
8
9
 
9
10
  <div class="list">
@@ -15,7 +16,7 @@
15
16
  IP: <%=h comment.ip %></p>
16
17
  <%= h(comment.body) %>
17
18
  <p>
18
- <%= comment.created_at.strftime("%m/%d/%Y %H:%M") %> – [
19
+ <%= format_date comment.created_at %> – [
19
20
  <%= link_to_edit _("Edit"), comment %> |
20
21
  <%= link_to _("Delete") , {:action => 'delete', :id => comment.id, :search => params[:search], :page => params[:page] }, :confirm => _("Are you sure?"), :method => :post %> |
21
22
  <%= comment.state %> ]