|
|
@ -45,6 +45,7 @@
|
|
|
|
<a href="javascript:void(0);" class="btn_addPic" style="text-decoration:none;">
|
|
|
|
<a href="javascript:void(0);" class="btn_addPic" style="text-decoration:none;">
|
|
|
|
<span><%= l(:button_upload_photo) %></span>
|
|
|
|
<span><%= l(:button_upload_photo) %></span>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- :accept => 'image/png,image/gif,image/jpeg', -->
|
|
|
|
<span class="add_avatar" style="margin-left: -55px;width: 70px">
|
|
|
|
<span class="add_avatar" style="margin-left: -55px;width: 70px">
|
|
|
|
<%= file_field_tag 'avatar[image]',
|
|
|
|
<%= file_field_tag 'avatar[image]',
|
|
|
|
:id => nil,
|
|
|
|
:id => nil,
|
|
|
@ -57,6 +58,8 @@
|
|
|
|
:max_file_size => Setting.attachment_max_size.to_i.kilobytes,
|
|
|
|
:max_file_size => Setting.attachment_max_size.to_i.kilobytes,
|
|
|
|
:max_file_size_message => l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)),
|
|
|
|
:max_file_size_message => l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)),
|
|
|
|
:max_concurrent_uploads => Redmine::Configuration['max_concurrent_ajax_uploads'].to_i,
|
|
|
|
:max_concurrent_uploads => Redmine::Configuration['max_concurrent_ajax_uploads'].to_i,
|
|
|
|
|
|
|
|
:file_type => Redmine::Configuration['pic_types'].to_s,
|
|
|
|
|
|
|
|
:type_support_message => l(:error_pic_type),
|
|
|
|
:upload_path => upload_avatar_path(:format => 'js'),
|
|
|
|
:upload_path => upload_avatar_path(:format => 'js'),
|
|
|
|
:description_placeholder => nil ,# l(:label_optional_description)
|
|
|
|
:description_placeholder => nil ,# l(:label_optional_description)
|
|
|
|
:source_type => source.class.to_s,
|
|
|
|
:source_type => source.class.to_s,
|
|
|
|