parent
13e7280245
commit
8335c111c7
|
@ -248,6 +248,18 @@ module ApplicationHelper
|
||||||
classes = (ancestors.empty? ? 'root' : 'child')
|
classes = (ancestors.empty? ? 'root' : 'child')
|
||||||
s << "<li class='project-table'><div class='#{classes}'>"
|
s << "<li class='project-table'><div class='#{classes}'>"
|
||||||
s << h(block_given? ? yield(project) : project.name)
|
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 << (render :partial => 'projects/project', :locals => {:project => project}).to_s
|
||||||
s << "</div>\n"
|
s << "</div>\n"
|
||||||
ancestors << project
|
ancestors << project
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
|
|
||||||
<!-- added by bai 单位-->
|
<!-- added by bai 单位-->
|
||||||
<% unless @user.user_extensions.nil?%>
|
<% 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>
|
</p>
|
||||||
<%else%>
|
<%else%>
|
||||||
<p style="width:400px;padding-left: 26px;"><%= l(:field_occupation)%><%= text_field_tag "occupation", nil, :class => 'occupation'%>
|
<p style="width:400px;padding-left: 26px;"><%= l(:field_occupation)%><%= text_field_tag "occupation", nil, :class => 'occupation'%>
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="add-info">
|
<div class="add-info">
|
||||||
<div class="main-language">
|
<div class="main-language">
|
||||||
<!-- add by huang -->
|
<!-- added by huang -->
|
||||||
<% if(@project.project_type==1)%>
|
<% if(@project.project_type==1)%>
|
||||||
<%= content_tag('span', "#{l(:field_tea_name)}: ") %>
|
<%= content_tag('span', "#{l(:field_tea_name)}: ") %>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
@ -86,16 +86,16 @@
|
||||||
<%= content_tag('span', "#{l(:label_create_time)}: ") %><%= content_tag('span', format_time(@project.created_on)) %>
|
<%= content_tag('span', "#{l(:label_create_time)}: ") %><%= content_tag('span', format_time(@project.created_on)) %>
|
||||||
</div>
|
</div>
|
||||||
<!-- added by liuping -->
|
<!-- added by liuping -->
|
||||||
<% unless User.current.member_of?(@project) %>
|
<!-- <% unless User.current.member_of?(@project) %>
|
||||||
<!-- del by nyan -->
|
|
||||||
<%= watcher_link(@project, User.current) %>
|
<%= watcher_link(@project, User.current) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<span style="float: right; margin-right: 100px">
|
<span style="float: right; margin-right: 100px">
|
||||||
<% if @project.project_type == 1 %>
|
<% if @project.project_type == 1 %>
|
||||||
<% unless Course.find_by_extra(@project.identifier).tea_id == User.current.id%>
|
<% unless Course.find_by_extra(@project.identifier).tea_id == User.current.id %>
|
||||||
<%= join_in_course(@project, User.current)%>
|
<%= join_in_course(@project, User.current)%>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %> -->
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue