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
@@ -1,11 +1,12 @@
|
|
1
|
-
<div id="active_<%= active.html_id %>" class=
|
2
|
-
<h4 class=
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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=
|
2
|
-
<h4 class=
|
3
|
-
<
|
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
|
15
|
-
|
14
|
+
<div>
|
15
|
+
<%= save(_('Publish changes'))%>
|
16
16
|
</div>
|
17
17
|
<div id="messages"> </div>
|
18
18
|
|
19
19
|
<div id="sidebar-config">
|
20
|
-
<div id="available" class=
|
21
|
-
<
|
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='
|
28
|
-
<
|
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
|
-
</
|
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
|
37
|
+
<br class='clear' />
|
38
38
|
|
39
|
-
<div
|
40
|
-
|
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
|
-
|
10
|
-
|
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
|
-
<
|
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=
|
6
|
-
|
7
|
-
|
8
|
-
<%=
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
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
|
-
<
|
4
|
-
<
|
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
|
-
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
</div>
|
24
|
-
|
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
|
-
<
|
34
|
-
<
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
</
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
55
|
-
<
|
56
|
-
|
57
|
-
<
|
58
|
-
<
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
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
|
-
|
103
|
-
|
104
|
-
<
|
105
|
-
|
106
|
-
<
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
<
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
<
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
<
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
<
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
<
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
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 %>
|