Index: app/models/extended_profile.rb =================================================================== --- app/models/extended_profile.rb (revision 19) +++ app/models/extended_profile.rb (working copy) @@ -39,4 +39,11 @@ write_attribute(:linkedin, arg) end + # added by riceball + def content=(arg) + if arg.empty? + arg = nil + end + write_attribute(:content, arg) + end end Index: app/views/profile/_account.rhtml =================================================================== --- app/views/profile/_account.rhtml (revision 19) +++ app/views/profile/_account.rhtml (working copy) @@ -63,3 +63,12 @@ :class => profile[:linkedin].present? ? nil : 'empty', :onfocus => "if (this.value == 'http://') { this.value = ''; this.className = ''; }") %>

+<% +# added by riceball +%> +

+ + <%= text_area_tag('profile[content]', user.profile[:content], :rows => 8, :cols=>60,:accesskey => accesskey(:edit), :class => 'wiki-edit')%> + <%= wikitoolbar_for 'profile_content' %> +

+ Index: app/views/profile/_author.rhtml =================================================================== --- app/views/profile/_author.rhtml (revision 19) +++ app/views/profile/_author.rhtml (working copy) @@ -23,4 +23,12 @@ <%= content_tag(:a, image_tag('linkedin.png', :plugin => 'extended_profile'), :href => user.profile[:linkedin]) %> <% end %>

+ <% + # added by riceball + if user.profile[:content].present? %> +

<%=h l(:label_profile_content) %>

+
+ <%= textilizable user.profile[:content] %> +
+ <% end %> <% end %> Index: app/views/profile/_edit.rhtml =================================================================== --- app/views/profile/_edit.rhtml (revision 19) +++ app/views/profile/_edit.rhtml (working copy) @@ -44,3 +44,12 @@ <%= text_field_tag('profile[linkedin]', user.profile[:linkedin], :size => 30) %>

+<% +# added by riceball +%> +

+ + <%= text_area_tag('profile[content]', user.profile[:content], :rows => 8, :cols=>60,:accesskey => accesskey(:edit), :class => 'wiki-edit')%> + <%= wikitoolbar_for 'profile_content' %> +

+ Index: app/views/profile/_view.rhtml =================================================================== --- app/views/profile/_view.rhtml (revision 19) +++ app/views/profile/_view.rhtml (working copy) @@ -9,6 +9,7 @@ <%= content_tag(:h3, l(:label_profile)) %> + +<% +# added by riceball +if user.profile[:content].present? +%> +
+ <%= textilizable user.profile[:content] %> +
+<% end %> <% end %> Index: config/locales/zh.yml =================================================================== --- config/locales/zh.yml (revision 19) +++ config/locales/zh.yml (working copy) @@ -12,6 +12,7 @@ label_twitter_username: Twitter username label_linkedin: LinkedIn label_require_project_of_interest: 感兴趣的项目必选 + label_profile_content: 简历 field_extended_profile: 扩展个人轮廓 field_company_site: 公司网址 @@ -22,4 +23,4 @@ field_linkedin: LinkedIn sample_facebook_profile_id: e.g. 100000066953233 - sample_twitter_username: e.g. twitter \ No newline at end of file + sample_twitter_username: e.g. twitter Index: config/locales/en.yml =================================================================== --- config/locales/en.yml (revision 19) +++ config/locales/en.yml (working copy) @@ -11,6 +11,7 @@ label_twitter_username: Twitter username label_linkedin: LinkedIn label_require_project_of_interest: Require project of interest + label_profile_content: Profile field_extended_profile: Extended profile field_company_site: Company website Index: init.rb =================================================================== --- init.rb (revision 19) +++ init.rb (working copy) @@ -29,7 +29,7 @@ author_url 'http://www.andriylesyuk.com' description 'Adds many new fields to user profile.' url 'http://projects.andriylesyuk.com/projects/redmine-profile' - version '0.0.2' + version '0.0.2.1' settings :default => { :require_project => true }, :partial => 'settings/profile' end