|
|
|
@ -248,6 +248,18 @@ module ApplicationHelper
|
|
|
|
|
classes = (ancestors.empty? ? 'root' : 'child')
|
|
|
|
|
s << "<li class='project-table'><div class='#{classes}'>"
|
|
|
|
|
s << h(block_given? ? yield(project) : project.name)
|
|
|
|
|
unless User.current.member_of?(@project)
|
|
|
|
|
s << "<span style = 'float: right;'>"
|
|
|
|
|
s << watcher_link(@project, User.current)
|
|
|
|
|
s << "</span>"
|
|
|
|
|
end
|
|
|
|
|
if @project.project_type == 1
|
|
|
|
|
unless Course.find_by_extra(@project.identifier).tea_id == User.current.id
|
|
|
|
|
s << "<span style = 'float: right;'>"
|
|
|
|
|
s << join_in_course(@project, User.current)
|
|
|
|
|
s << "</span>"
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
s << (render :partial => 'projects/project', :locals => {:project => project}).to_s
|
|
|
|
|
s << "</div>\n"
|
|
|
|
|
ancestors << project
|
|
|
|
|