diff --git a/app/views/avatar/_avatar_form.html.erb b/app/views/avatar/_avatar_form.html.erb index f7e8b0e2d..fc55bd2ef 100644 --- a/app/views/avatar/_avatar_form.html.erb +++ b/app/views/avatar/_avatar_form.html.erb @@ -35,7 +35,7 @@ filter: alpha(opacity:0); } -
+
<%= image_tag(url_to_avatar(source), id: "avatar_image", size: AvatarHelper::AVATAR_SIZE,:class=>"avatar")%>
diff --git a/app/views/projects/_form.html.erb b/app/views/projects/_form.html.erb index 135a56b77..ab27047ce 100644 --- a/app/views/projects/_form.html.erb +++ b/app/views/projects/_form.html.erb @@ -1,5 +1,6 @@ <%= error_messages_for 'project' %> +

<%= render :partial=>"avatar/avatar_form",:locals=> {source:@project} %>

<%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;" %>

<%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %>

diff --git a/app/views/projects/new.html.erb b/app/views/projects/new.html.erb index c66523896..4f34d4988 100644 --- a/app/views/projects/new.html.erb +++ b/app/views/projects/new.html.erb @@ -3,7 +3,6 @@ <%= labelled_form_for @project do |f| %>
-

<%= render :partial=>"avatar/avatar_form",:locals=> {source:@project} %>

<%= render :partial => 'form', :locals => { :f => f } %> <%= submit_tag l(:button_create) %> <%= submit_tag l(:button_create_and_continue), :name => 'continue' %>