Merge branch 'Homework' of http://repository.trustie.net/xianbo/trustie2 into Homework
This commit is contained in:
commit
b65fe236ef
|
@ -1,10 +1,16 @@
|
||||||
<li class="pic_head">
|
<li class="pic_head">
|
||||||
<%= link_to image_tag(url_to_avatar(homework.user), :width => "40", :height => "40"), user_path(homework.user) %>
|
<% if is_student_batch_homework %>
|
||||||
<span>
|
<!-- 学生匿评 不现实姓名、头像,以及相关的连接 -->
|
||||||
<% user_realname = homework.user.lastname.to_s + homework.user.firstname.to_s %>
|
<a><%= image_tag(url_to_avatar("匿名"), :width => "40", :height => "40")%></a>
|
||||||
<% user_name = is_teacher ? (user_realname.empty? ? homework.user.login : user_realname) : homework.user.login %>
|
<a>匿名</a>
|
||||||
<%= link_to user_name, user_path(homework.user), :title => user_name %>
|
<% else %>
|
||||||
</span>
|
<%= link_to image_tag(url_to_avatar(homework.user), :width => "40", :height => "40"), user_path(homework.user) %>
|
||||||
|
<span>
|
||||||
|
<% user_realname = homework.user.lastname.to_s + homework.user.firstname.to_s %>
|
||||||
|
<% user_name = is_teacher ? (user_realname.empty? ? homework.user.login : user_realname) : homework.user.login %>
|
||||||
|
<%= link_to user_name, user_path(homework.user), :title => user_name %>
|
||||||
|
</span>
|
||||||
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<li class="wname">
|
<li class="wname">
|
||||||
<% if homework.name == nil || homework.name == "" %>
|
<% if homework.name == nil || homework.name == "" %>
|
||||||
|
|
|
@ -154,43 +154,6 @@
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<!--homework-->
|
|
||||||
<div class="user_fans">
|
|
||||||
|
|
||||||
<div class="user_underline"></div>
|
|
||||||
<div class="font_title_left">
|
|
||||||
<strong><%= l(:label_commit_homework) %></strong>
|
|
||||||
</div>
|
|
||||||
<div class="left_wf">
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td style="padding-top: 5px">
|
|
||||||
<% if @bid.homework_type == 1 %>
|
|
||||||
<% if @bid.homeworks.size>0 %>
|
|
||||||
<% for homework in @bid.homeworks.eager_load(:user) %>
|
|
||||||
<%= link_to image_tag(url_to_avatar(homework.user), :class => "avatar", :title => homework.user.name), user_path(homework.user), :class => "avatar" %>
|
|
||||||
<% end %>
|
|
||||||
<% else %>
|
|
||||||
<p class="font_lighter">
|
|
||||||
<%= l(:label_no_course_project) %>
|
|
||||||
</p>
|
|
||||||
<% end %>
|
|
||||||
<% else %>
|
|
||||||
<% if @bid.courses.size>0 %>
|
|
||||||
<% for course in @bid.courses %>
|
|
||||||
<%= link_to image_tag(url_to_avatar(course), :class => "avatar", :title => course.name), course_path(course), :class => "avatar" %>
|
|
||||||
<% end %>
|
|
||||||
<% else %>
|
|
||||||
<p class="font_lighter">
|
|
||||||
<%= l(:label_no_course_project) %>
|
|
||||||
</p>
|
|
||||||
<% end %>
|
|
||||||
<% end %> </td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="user_underline"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
|
|
Loading…
Reference in New Issue