|
|
|
@ -2,11 +2,11 @@
|
|
|
|
|
<div class="project-block">
|
|
|
|
|
<div class="img-tag">
|
|
|
|
|
<% 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)%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% 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)%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(project), :class => "avatar2"), project_path(project) %>
|
|
|
|
|
</div>
|
|
|
|
@ -56,6 +56,7 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= content_tag('span', files_count, :class => "info") %><%= content_tag('span', l(:label_x_data)) %>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
@ -72,7 +73,7 @@
|
|
|
|
|
<!-- <%= content_tag('span', "#{l(:default_role_manager)}: ") %> -->
|
|
|
|
|
<% @admin = @project.project_infos%>
|
|
|
|
|
<% if @admin.size > 0 %>
|
|
|
|
|
<%= content_tag('a', @admin.collect{|u| link_to(u.user.name, user_path(u.user_id))}.join(", ").html_safe) %>
|
|
|
|
|
<%= content_tag('a', @admin.collect{|u| link_to(u.user.lastname+u.user.firstname, user_path(u.user_id))}.join(", ").html_safe) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if(@project.project_type==1)%>
|
|
|
|
|
大学:
|
|
|
|
@ -86,6 +87,13 @@
|
|
|
|
|
<% unless User.current.member_of?(@project) %>
|
|
|
|
|
<%= watcher_link(@project, User.current) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<span style="float: right; margin-right: 100px">
|
|
|
|
|
<% if @project.project_type == 1 %>
|
|
|
|
|
<% unless Course.find_by_extra(@project.identifier).tea_id == User.current.id%>
|
|
|
|
|
<%= join_in_course(@project, User.current)%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tags">
|
|
|
|
|