diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb index 432d7286f..b9ed0f1be 100644 --- a/app/views/layouts/base_courses.html.erb +++ b/app/views/layouts/base_courses.html.erb @@ -38,9 +38,8 @@ <% @course = Course.find_by_extra(@project.identifier)%>
<% if(@project.project_type==1)%> - - <% if get_avatar?(@project)%> + | <% if(@project.project_type==1) %>
+ <% if get_avatar?(@project) %>
<%= link_to image_tag(url_to_avatar(@project), :class => "avatar2"), project_path(@project) %>
<% else %>
<%= link_to image_tag('../images/avatars/Project/course.jpg', :class => "avatar2"), project_path(@project)%>
diff --git a/app/views/projects/_course_form.html.erb b/app/views/projects/_course_form.html.erb
index 1742bdb76..05407378f 100644
--- a/app/views/projects/_course_form.html.erb
+++ b/app/views/projects/_course_form.html.erb
@@ -5,7 +5,9 @@
-
+<% unless @project.new_record? %>
+ <%= render :partial=>"avatar/avatar_form",:locals=> {source:@project} %> +<% end %><%= 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;" %> |