parent
13e7280245
commit
8335c111c7
|
@ -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
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
|
||||
<!-- added by bai 单位-->
|
||||
<% unless @user.user_extensions.nil?%>
|
||||
<p style="width:400px;padding-left: 26px;"><%= l(:field_occupation)%><%= text_field_tag "occupation", @user.user_extensions.occupation, :class => 'occupation'%>
|
||||
<p style="width:400px;padding-left: 26px;"><%= l(:field_occupation)%> <%= text_field_tag "occupation", @user.user_extensions.occupation, :class => 'occupation'%>
|
||||
</p>
|
||||
<%else%>
|
||||
<p style="width:400px;padding-left: 26px;"><%= l(:field_occupation)%><%= text_field_tag "occupation", nil, :class => 'occupation'%>
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
</div>
|
||||
<div class="add-info">
|
||||
<div class="main-language">
|
||||
<!-- add by huang -->
|
||||
<!-- added by huang -->
|
||||
<% if(@project.project_type==1)%>
|
||||
<%= content_tag('span', "#{l(:field_tea_name)}: ") %>
|
||||
<% else %>
|
||||
|
@ -86,8 +86,8 @@
|
|||
<%= content_tag('span', "#{l(:label_create_time)}: ") %><%= content_tag('span', format_time(@project.created_on)) %>
|
||||
</div>
|
||||
<!-- added by liuping -->
|
||||
<% unless User.current.member_of?(@project) %>
|
||||
<!-- del by nyan -->
|
||||
<!-- <% unless User.current.member_of?(@project) %>
|
||||
|
||||
<%= watcher_link(@project, User.current) %>
|
||||
<% end %>
|
||||
<span style="float: right; margin-right: 100px">
|
||||
|
@ -95,7 +95,7 @@
|
|||
<% unless Course.find_by_extra(@project.identifier).tea_id == User.current.id %>
|
||||
<%= join_in_course(@project, User.current)%>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %> -->
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue