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,11 +1,12 @@
1
- <div id="active_<%= active.html_id %>" class="dragitem">
2
- <h4 class="handle"><%= active.display_name %></h4>
3
- <p><%= active.description %></p>
4
- <div class="space">
5
- <div><% active.class.fields.each do |row| -%>
6
- <%= row.line_html(active) %>
7
- <% end -%></div>
8
- <%= link_to_remote('remove',
1
+ <div id="active_<%= active.html_id %>" class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons settings target'>
2
+ <h4 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'><%= active.display_name %></h4>
3
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
4
+ <p><%= active.description %></p>
5
+ <div><% active.class.fields.each do |row| -%>
6
+ <%= row.line_html(active) %>
7
+ <% end -%>
8
+ </div>
9
+ <%= link_to_remote('remove',
9
10
  :url => {:action => 'remove', :id => active.id,
10
11
  :element => "active_#{active.html_id}"},
11
12
  :before => "new Effect.Fade('active_#{active.html_id}')",
@@ -1,5 +1,7 @@
1
- <div id="available_<%= available.short_name %>" class="dragitem">
2
- <h4 class="handle"><%= available.display_name %></h4>
3
- <p><%= available.description %></p>
1
+ <div id="available_<%= available.short_name %>" class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons settings target'>
2
+ <h4 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'><%= available.display_name %></h4>
3
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
4
+ <p><%= available.description %></p>
5
+ </div>
4
6
  </div>
5
7
  <%= draggable_element "available_#{available.short_name}" %>
@@ -11,33 +11,33 @@
11
11
  :failure => "var g = new k.Growler({location : 'br'});
12
12
  g.error('Oops, something wrong happened', {life: 3});
13
13
  ") %>
14
- <div class="paginate r">
15
- <input value="<%= _('Publish changes')%>" class="submit" type="submit"/>
14
+ <div>
15
+ <%= save(_('Publish changes'))%>
16
16
  </div>
17
17
  <div id="messages">&nbsp;</div>
18
18
 
19
19
  <div id="sidebar-config">
20
- <div id="available" class="dropbox">
21
- <h2><%= _("Available Items")%></h2>
22
- <div id="available_box">
20
+ <div id="available" class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons'>
21
+ <h3 class='ui-accordion-header ui-helper-reset ui-state-active ui-corner-top'><%= _("Available Items")%></h3>
22
+ <div id="available_box" class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
23
23
  <%= render :partial => 'availables', :object => @available %>
24
24
  </div>
25
25
  </div>
26
26
 
27
- <div id="cnt-active" class='dropbox'>
28
- <h2 id="hdr-active">
27
+ <div id="cnt-active" class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons'>
28
+ <h3 id="hdr-active" class='ui-accordion-header ui-helper-reset ui-state-active ui-corner-top'>
29
29
  <%= _("Active Sidebar items")%>
30
30
  <%= image_tag "spinner-blue.gif", :id => 'update_spinner',
31
31
  :style => 'display:none;' -%>
32
- </h2>
33
- <div id="active">
32
+ </h3>
33
+ <div id="active" class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
34
34
  <%= render :partial => 'actives', :object => @active %>
35
35
  </div>
36
36
  </div>
37
- <br clear="all" />
37
+ <br class='clear' />
38
38
 
39
- <div class="paginate r">
40
- <input value="<%= _('Publish changes')%>" class="submit" type="submit"/>
39
+ <div>
40
+ <%= save(_('Publish changes'))%>
41
41
  </div>
42
42
 
43
43
  </div>
@@ -5,13 +5,26 @@
5
5
  <p><%= _("Sorry the theme catalogue is not available") %></p>
6
6
  <% end %>
7
7
 
8
+ <% i = 0 %>
8
9
  <% for theme in @themes %>
9
- <div class="theme">
10
- <div class='inner'>
10
+ <div class='dashboard-left ui-accordion ui-widget ui-helper-reset ui-accordion-icons theme settings'>
11
+ <h3 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'>
12
+ <span class='ui-icon ui-icon-image'> </span>
13
+ <%= theme.name %>
14
+ </h3>
15
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
16
+
11
17
  <%= link_to(image_tag(theme.image), theme.url) %>
12
- <h3><%= theme.name %> created by <%= theme.author %></h3>
18
+ <p>Created by <%= theme.author %></p>
13
19
  <p><%= theme.description %></p>
14
20
  </div>
15
21
  </div>
22
+ <% if i == 2 %>
23
+ <% i = 0 %>
24
+ <br class='clear' />
25
+ <% else %>
26
+ <% i+=1 %>
27
+ <% end %>
28
+
16
29
  <% end %>
17
30
  <hr class="clear" />
@@ -1,20 +1,30 @@
1
1
  <% @page_heading = _('Choose a theme') %>
2
2
  <% subtabs_for(:themes) %>
3
-
3
+ <% i = 0 %>
4
4
  <% for theme in @themes %>
5
- <div class="theme">
6
- <div class='inner'>
7
- <% if theme.path == @active.path -%>
8
- <%= image_tag(url_for(:action => 'preview', :theme => theme.name, :skip_relative_url_root => true)) %>
9
- <% else %>
10
- <%= link_to(image_tag(url_for(:action => 'preview', :theme => theme.name, :skip_relative_url_root => true)), :action => 'switchto', :theme => theme.name) %>
11
- <% end %>
12
- <%= theme.description_html %>
13
- <% if theme.path == @active.path -%>
14
- <em>(<%= _("Active theme")%>)</em>
15
- <% end -%>
5
+ <div class='dashboard-left ui-accordion ui-widget ui-helper-reset ui-accordion-icons theme settings'>
6
+ <h3 class='ui-accordion-header ui-helper-reset <%= theme.path == @active.path ? 'ui-state-active' : 'ui-state-default' %> ui-corner-top'>
7
+ <span class='ui-icon <%= theme.path == @active.path ? 'ui-icon-star' : 'ui-icon-image' %>'> </span>
8
+ <%= theme.name %>
9
+ </h3>
10
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
11
+ <% if theme.path == @active.path -%>
12
+ <%= image_tag(url_for(:action => 'preview', :theme => theme.name, :skip_relative_url_root => true)) %>
13
+ <% else %>
14
+ <%= link_to(image_tag(url_for(:action => 'preview', :theme => theme.name, :skip_relative_url_root => true)), :action => 'switchto', :theme => theme.name) %>
15
+ <% end %>
16
+ <%= theme.description_html %>
17
+ <% if theme.path == @active.path -%>
18
+ <em>(<%= _("Active theme")%>)</em>
19
+ <% end -%>
20
+ </div>
16
21
  </div>
17
- </div>
22
+ <% if i == 2 %>
23
+ <% i = 0 %>
24
+ <br class='clear' />
25
+ <% else %>
26
+ <% i+=1 %>
27
+ <% end %>
18
28
  <% end %>
19
29
 
20
30
  <hr class="clear" />
@@ -1,183 +1,188 @@
1
1
  <%= error_messages_for 'user' %>
2
2
 
3
- <fieldset>
4
- <legend><%= _("Personal information")%></legend>
3
+ <div class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons settings'>
4
+ <h3 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'><span class='ui-icon ui-icon-person'> </span><%= _("Account settings")%></h3>
5
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
6
+ <div class='setting'>
7
+ <label class="float" for="user_login"><%= _("Login")%></label>
8
+ <p class='input_text'>
9
+ <%= text_field('user', 'login', {:class => 'medium'}) %>
10
+ </p>
11
+ </div>
12
+ <div class='setting clear'>
13
+ <label class="float" for="user_password"><%= _("Password")%></label>
14
+ <p class='input_text'>
15
+ <%= password_field('user', 'password', {:class => 'medium'}) %>
16
+ </p>
17
+ </div>
18
+ <div class='setting clear'>
19
+ <label class="float" for="user_password"><%= _("Password confirmation")%></label>
20
+ <p class='input_text'>
21
+ <%= password_field('user', 'password_confirmation', {:class => 'medium'}) %>
22
+ </p>
23
+ </div>
24
+ <div class='setting clear'>
25
+ <label class="float" for="user_email"><%= _("Email")%></label>
26
+ <p class='input_text'>
27
+ <%= text_field('user', 'email', {:class => 'medium'}) %>
28
+ </p>
29
+ </div>
5
30
 
6
- <div>
7
- <label class="float" for="user_login"><%= _("Login")%></label>
8
- <p class='input_text_title'>
9
- <%= text_field('user', 'login', {:class => 'small medium'}) %>
10
- </p>
11
- </div>
12
- <div>
13
- <label class="float" for="user_firstname"><%= _("Firstname") %></label>
14
- <p class='input_text_title'>
15
- <%= text_field('user', 'firstname', {:class => 'small medium'}) %>
16
- </p>
17
- </div>
18
- <div>
19
- <label class="float" for="user_lastname"><%= _("Lastname") %></label>
20
- <p class='input_text_title'>
21
- <%= text_field('user', 'lastname', {:class => 'small medium'}) %>
22
- </p>
23
- </div>
24
- <div>
25
- <label class="float" for="user_nickname"><%= _("Nickname") %></label>
26
- <p class='input_text_title'>
27
- <%= text_field('user', 'nickname', {:class => 'small medium'}) %>
28
- </p>
29
- </div>
30
- </fieldset>
31
-
31
+ <% if controller.controller_name == 'users' %>
32
+ <div class='setting clear'>
33
+ <label class="float" for="user_profile"><%= _("Profile")%></label>
34
+ <p class='input_text'>
35
+ <%= select("user", "profile_id", @profiles.collect {|p| [ _(p.nicename), p.id ] }, { :include_blank => false }) %>
36
+ </p>
37
+ </div>
38
+ <div class='setting clear'>
39
+ <label class='float' for="user_state"><%= _("User's status")%></label>
40
+ <p class='input_text'>
41
+ <select name="user[state]">
42
+ <option value="active" <%= 'selected' if @user.state == 'active' %>><%= _("Active")%></option>
43
+ <option value="inactive" <%= 'selected' if @user.state == 'inactive'%>><%= _("Inactive")%></option>
44
+ </select>
45
+ </p>
46
+ </div>
47
+ <% end %>
48
+ </div>
49
+ </div>
32
50
 
33
- <fieldset>
34
- <legend><%= _("User's settings")%></legend>
35
-
36
- <% if controller.controller_name == 'users' %>
37
- <div>
38
- <label class="float" for="user_profile"><%= _("Profile")%></label>
39
- <p class='input_text_title'>
40
- <%= select("user", "profile_id", @profiles.collect {|p| [ _(p.nicename), p.id ] }, { :include_blank => true }) %>
41
- </p>
42
- </div>
43
- <div>
44
- <label class='float' for="user_state"><%= _("User's status")%></label>
45
- <p class='input_text_title'>
46
- <select name="user[state]">
47
- <option value="active" <%= 'selected' if @user.state == 'active' %>><%= _("Active")%></option>
48
- <option value="inactive" <%= 'selected' if @user.state == 'inactive'%>><%= _("Inactive")%></option>
49
- </select>
50
- </p>
51
- </div>
52
- <% end %>
51
+ <div class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons settings'>
52
+ <h3 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'><span class='ui-icon ui-icon-person'> </span><%= _("Profile Settings")%></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 class="float" for="user_firstname"><%= _("Firstname") %></label>
56
+ <p class='input_text'>
57
+ <%= text_field('user', 'firstname', {:class => 'medium'}) %>
58
+ </p>
59
+ </div>
60
+ <div class='setting clear'>
61
+ <label class="float" for="user_lastname"><%= _("Lastname") %></label>
62
+ <p class='input_text'>
63
+ <%= text_field('user', 'lastname', {:class => 'medium'}) %>
64
+ </p>
65
+ </div>
66
+ <div class='setting clear'>
67
+ <label class="float" for="user_nickname"><%= _("Nickname") %></label>
68
+ <p class='input_text'>
69
+ <%= text_field('user', 'nickname', {:class => 'medium'}) %>
70
+ </p>
71
+ </div>
72
+ <% unless @user.login.nil? %>
73
+ <div class='setting clear'>
74
+ <label class="float" for="user_login"><%= _("Display Name")%></label>
75
+ <p class='input_text'>
76
+ <select name="user[name]">
77
+ <%= render_options_for_display_name %>
78
+ </select>
79
+ </p>
80
+ </div>
81
+ <% end %>
82
+ <div class='setting clear'>
83
+ <label class="float"><%= _("Editor")%></label>
84
+ <p class='input_text'>
85
+ <input type="radio" name="user[editor]" value="simple" id="editor_0" <%= 'checked="checked"' if @user.editor == 'simple' %>/>
86
+ <label for="editor_0"><%= _("Use simple editor")%></label><br />
87
+ <input type="radio" name="user[editor]" value="visual" id="editor_2" <%= 'checked="checked"' if @user.editor == 'visual' %>/>
88
+ <label for="editor_2"><%= _("Use visual rich editor")%></label>
89
+ </p>
90
+ </div>
91
+ <div class='setting clear'>
92
+ <label class="float" for="text_filter"><%= _("Article filter")%></label>
93
+ <p class='input_text'>
94
+ <select name="user[text_filter_id]" id="text_filter">
95
+ <%= options_for_select text_filter_options_with_id, @user.text_filter.id %>
96
+ </select>
97
+ </p>
98
+ </div>
99
+ </div>
100
+ </div>
53
101
 
54
- <% unless @user.login.nil? %>
55
- <div>
56
- <label class="float" for="user_login"><%= _("Display Name")%></label>
57
- <p class='input_text_title'>
58
- <select name="user[name]">
59
- <%= render_options_for_display_name %>
60
- </select>
61
- </p>
62
- </div>
63
- <% end %>
64
-
65
- <div>
66
- <label class="float" for="user_email"><%= _("Email")%></label>
67
- <p class='input_text_title'>
68
- <%= text_field('user', 'email', {:class => 'small medium'}) %>
69
- </p>
70
- </div>
71
- <div>
72
- <label class="float" for="user_password"><%= _("Password")%></label>
73
- <p class='input_text_title'>
74
- <%= password_field('user', 'password', {:class => 'small medium'}) %>
75
- </p>
76
- </div>
77
- <div>
78
- <label class="float" for="user_password"><%= _("Password confirmation")%></label>
79
- <p class='input_text_title'>
80
- <%= password_field('user', 'password_confirmation', {:class => 'small medium'}) %>
81
- </p>
82
- </div>
83
- <div>
84
- <label class="float"><%= _("Editor")%></label>
85
- <p class='input_text_title ml140'>
86
- <input type="radio" name="user[editor]" value="simple" id="editor_0" <%= 'checked="checked"' if @user.editor == 'simple' %>/>
87
- <label for="editor_0"><%= _("Use simple editor")%></label><br />
88
- <input type="radio" name="user[editor]" value="visual" id="editor_2" <%= 'checked="checked"' if @user.editor == 'visual' %>/>
89
- <label for="editor_2"><%= _("Use visual rich editor")%></label>
90
- </p>
91
- </div>
92
- <div>
93
- <label class="float" for="text_filter"><%= _("Article filter")%></label>
94
- <p class='input_text_title ml140'>
95
- <select name="user[text_filter_id]" id="text_filter">
96
- <%= options_for_select text_filter_options_with_id, @user.text_filter.id %>
97
- </select>
98
- </p>
99
- </div>
100
- </fieldset>
102
+ <div class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons settings'>
103
+ <h3 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'><span class='ui-icon ui-icon-person'> </span><%= _("Notifications")%></h3>
104
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
105
+ <div class='setting'>
106
+ <label class="float" for="user_notify_via_email"><%= _("Send notification messages via email")%>?</label>
107
+ <p class='input_text'>
108
+ <%= check_box 'user', 'notify_via_email' %>
109
+ </p>
110
+ </div>
111
+ <div class='setting clear'>
112
+ <label class="float" for="user_notify_on_new_articles"><%= _("Send notification messages when new articles are posted")%>?</label>
113
+ <p class='input_text'>
114
+ <%= check_box 'user', 'notify_on_new_articles' %>
115
+ </p>
116
+ </div>
117
+ <div class='setting clear'>
118
+ <label class="float" for="user_notify_on_comments"><%= _("Send notification messages when comments are posted")%>?</label>
119
+ <p class='input_text'>
120
+ <%= check_box 'user', 'notify_on_comments' %>
121
+ </p>
122
+ </div>
123
+ </div>
124
+ </div>
101
125
 
102
- <fieldset>
103
- <legend><%= _("Notifications") %></legend>
104
- <div>
105
- <label class="float large" for="user_notify_via_email"><%= _("Send notification messages via email")%>?</label>
106
- <p class='input_text_title'>
107
- <%= check_box 'user', 'notify_via_email' %>
108
- </p>
109
- </div>
110
- <div class='clear'>
111
- <label class="float large" for="user_notify_on_new_articles"><%= _("Send notification messages when new articles are posted")%>?</label>
112
- <p class='input_text_title'>
113
- <%= check_box 'user', 'notify_on_new_articles' %>
114
- </p>
115
- </div>
116
- <div class='clear'>
117
- <label class="float large" for="user_notify_on_comments"><%= _("Send notification messages when comments are posted")%>?</label>
118
- <p class='input_text_title'>
119
- <%= check_box 'user', 'notify_on_comments' %>
120
- </p>
121
- </div>
122
- </fieldset>
123
-
124
- <fieldset>
125
- <legend><%= _("Contact options") %></legend>
126
-
127
- <div class='clear'>
128
- <label class="float" for="user_url"><%= _("Your site")%></label>
129
- <p class='input_text_title ml140'>
130
- <%= text_field('user', 'url', {:class => 'small medium'}) %>
131
- <%= check_box 'user', 'show_url' %>
132
- <label for='user_show_url'><%= _("display url on public profile") %></label>
133
- </p>
134
- </div>
135
- <div class='clear'>
136
- <label class="float" for="user_msn"><%= _("Your MSN")%></label>
137
- <p class='input_text_title ml140'>
138
- <%= text_field('user', 'msn', {:class => 'small medium'}) %>
139
- <%= check_box 'user', 'show_msn' %>
140
- <label for='user_show_msn'><%= _("display MSN ID on public profile") %></label>
141
- </p>
142
- </div>
143
- <div class='clear'>
144
- <label class="float" for="user_yahoo"><%= _("Your Yahoo ID")%></label>
145
- <p class='input_text_title ml140'>
146
- <%= text_field('user', 'yahoo', {:class => 'small medium'}) %>
147
- <%= check_box 'user', 'show_yahoo' %>
148
- <label for='user_show_yahoo'><%= _("display Yahoo! ID on public profile") %></label>
149
- </p>
150
- </div>
151
- <div class='clear'>
152
- <label class="float" for="user_jabber"><%= _("Your Jabber ID")%></label>
153
- <p class='input_text_title ml140'>
154
- <%= text_field('user', 'jabber', {:class => 'small medium'}) %>
155
- <%= check_box 'user', 'show_jabber' %>
156
- <label for='user_show_jabber'><%= _("display Jabber ID on public profile") %></label>
157
- </p>
158
- </div>
159
- <div class='clear'>
160
- <label class="float" for="user_aim"><%= _("Your AIM id")%></label>
161
- <p class='input_text_title ml140'>
162
- <%= text_field('user', 'aim', {:class => 'small medium'}) %>
163
- <%= check_box 'user', 'show_aim' %>
164
- <label for='user_show_aim'><%= _("display AIM ID on public profile") %></label>
165
- </p>
166
- </div>
167
- <div class='clear'>
168
- <label class="float" for="user_twitter"><%= _("Your Twitter username")%></label>
169
- <p class='input_text_title ml140'>
170
- <%= text_field('user', 'twitter', {:class => 'small medium'}) %>
171
- <%= check_box 'user', 'show_twitter' %>
172
- <label for='user_show_twitter'><%= _("display twitter on public profile") %></label>
173
- </p>
174
- </div>
175
- <div class='clear'>
176
- <label class='float' for="user_description"><%= _("Tell us more about you")%></label>
177
- <p class='input_text_title'>
178
- <%= text_area('user', 'description', {:class => 'small large', :rows => 5}) %>
179
- </p>
180
- </div>
181
- </fieldset>
126
+ <% unless controller.controller_name == 'users'%>
127
+ <div class='ui-accordion ui-widget ui-helper-reset ui-accordion-icons settings'>
128
+ <h3 class='ui-accordion-header ui-helper-reset ui-state-default ui-corner-top'><span class='ui-icon ui-icon-person'> </span><%= _("Contact Options")%></h3>
129
+ <div class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active'>
130
+ <div class='setting'>
131
+ <label class="float" for="user_url"><%= _("Your site")%></label>
132
+ <p class='input_text'>
133
+ <%= text_field('user', 'url', {:class => 'medium'}) %>
134
+ <%= check_box 'user', 'show_url' %>
135
+ <label for='user_show_url'><%= _("display url on public profile") %></label>
136
+ </p>
137
+ </div>
138
+ <div class='setting clear'>
139
+ <label class="float" for="user_msn"><%= _("Your MSN")%></label>
140
+ <p class='input_text'>
141
+ <%= text_field('user', 'msn', {:class => 'medium'}) %>
142
+ <%= check_box 'user', 'show_msn' %>
143
+ <label for='user_show_msn'><%= _("display MSN ID on public profile") %></label>
144
+ </p>
145
+ </div>
146
+ <div class='setting clear'>
147
+ <label class="float" for="user_yahoo"><%= _("Your Yahoo ID")%></label>
148
+ <p class='input_text'>
149
+ <%= text_field('user', 'yahoo', {:class => 'medium'}) %>
150
+ <%= check_box 'user', 'show_yahoo' %>
151
+ <label for='user_show_yahoo'><%= _("display Yahoo! ID on public profile") %></label>
152
+ </p>
153
+ </div>
154
+ <div class='setting clear'>
155
+ <label class="float" for="user_jabber"><%= _("Your Jabber ID")%></label>
156
+ <p class='input_text'>
157
+ <%= text_field('user', 'jabber', {:class => 'medium'}) %>
158
+ <%= check_box 'user', 'show_jabber' %>
159
+ <label for='user_show_jabber'><%= _("display Jabber ID on public profile") %></label>
160
+ </p>
161
+ </div>
162
+ <div class='setting clear'>
163
+ <label class="float" for="user_aim"><%= _("Your AIM id")%></label>
164
+ <p class='input_text'>
165
+ <%= text_field('user', 'aim', {:class => 'medium'}) %>
166
+ <%= check_box 'user', 'show_aim' %>
167
+ <label for='user_show_aim'><%= _("display AIM ID on public profile") %></label>
168
+ </p>
169
+ </div>
170
+ <div class='setting clear'>
171
+ <label class="float" for="user_twitter"><%= _("Your Twitter username")%></label>
172
+ <p class='input_text'>
173
+ <%= text_field('user', 'twitter', {:class => 'medium'}) %>
174
+ <%= check_box 'user', 'show_twitter' %>
175
+ <label for='user_show_twitter'><%= _("display twitter on public profile") %></label>
176
+ </p>
177
+ </div>
178
+ <div class='setting clear'>
179
+ <label class='float' for="user_description"><%= _("Tell us more about you")%></label>
180
+ <p class='input_text'>
181
+ <%= text_area('user', 'description', {:class => 'medium', :rows => 5}) %>
182
+ </p>
183
+ </div>
184
+ </div>
185
+ </div>
186
+ <% end %>
182
187
 
183
188
  <%= cancel_or_save %>