个人主页列表变成粗体了
This commit is contained in:
parent
6ea90fb74f
commit
7c0042b70d
|
@ -13,25 +13,25 @@
|
|||
<tbody>
|
||||
<% @unfinished_homeworks.each do |uh| %>
|
||||
<tr>
|
||||
<th class="homepageTabAvatar">
|
||||
<td class="homepageTabAvatar">
|
||||
<%= link_to image_tag(url_to_avatar(uh.user), :width => "30", :height => "30"), user_path(uh.user), :target => '_blank' %>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabTitle">
|
||||
<%= link_to uh.name.to_s, student_work_index_path( :homework => uh.id, :tab => 1), :target => "_blank", :class => "homepageTabTitle fl ml5", :title => "#{uh.name.to_s}" %>
|
||||
</li>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabProjectName ml5">
|
||||
<%= link_to uh.course.try(:name), course_path(uh.course_id), :target => "_blank", :class => "homepageTabTitle ml5", :target => "_blank", :title => "#{uh.course.try(:name)}" %>
|
||||
<li>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabAuthor ml5" >
|
||||
<%= homework_type_tip(uh.homework_type) %>
|
||||
</li>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabTime ml5" >
|
||||
<% end_time = uh.end_time.to_time.to_i + 24*60*60 - 1 %>
|
||||
<% if end_time > Time.now.to_i %>
|
||||
|
@ -42,7 +42,7 @@
|
|||
<span class="c_red">已截止</span>
|
||||
<% end %>
|
||||
</li>
|
||||
</th>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
|
|
@ -11,21 +11,21 @@
|
|||
<tbody>
|
||||
<% @unfinished_poll.each do |up| %>
|
||||
<tr>
|
||||
<th class="homepageTabAvatar">
|
||||
<td class="homepageTabAvatar">
|
||||
<%= link_to image_tag(url_to_avatar(up.user), :width => "30", :height => "30"), user_path(up.user), :target => '_blank' %>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabPollTitle">
|
||||
<%= link_to up.polls_name.to_s, poll_path(up.id), :target => "_blank", :class => "homepageTabPollTitle fl ml5", :title => "#{up.polls_name.to_s}" %>
|
||||
</li>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabProjectName ml5">
|
||||
<% if up.polls_type == "Course" %>
|
||||
<%= link_to Course.find(up.polls_group_id).name, course_path(Course.find(up.polls_group_id)), :target => "_blank", :title => "#{Course.find(up.polls_group_id).name}" %>
|
||||
<% end %>
|
||||
<li>
|
||||
</th>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
|
|
@ -13,20 +13,20 @@
|
|||
<tbody>
|
||||
<% @unfinished_test.each do |ut| %>
|
||||
<tr>
|
||||
<th class="homepageTabAvatar">
|
||||
<td class="homepageTabAvatar">
|
||||
<%= link_to image_tag(url_to_avatar(ut.user), :width => "30", :height => "30"), user_path(ut.user), :target => '_blank' %>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabTitle">
|
||||
<%= link_to ut.exercise_name.to_s, exercise_index_path(:course_id => ut.course_id), :target => "_blank", :class => "homepageTabTitle fl ml5", :title => "#{ut.exercise_name.to_s}" %>
|
||||
</li>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabProjectName ml5">
|
||||
<%= link_to ut.course.try(:name), course_path(ut.course_id), :target => "_blank", :class => "homepageTabTitle ml5", :title => "#{ut.course.try(:name)}" %>
|
||||
<li>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabAuthor ml5" >
|
||||
<% if ut.time.to_i == -1 %>
|
||||
不限时
|
||||
|
@ -34,8 +34,8 @@
|
|||
<%= ut.time %>
|
||||
<% end %>
|
||||
</li>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabTime ml5" >
|
||||
<% if ut.end_time > Time.now %>
|
||||
<span class="c_red"><%= (ut.end_time.to_i - Time.now.to_i) / (24*60*60) %></span> 天
|
||||
|
@ -45,7 +45,7 @@
|
|||
<span class="c_red">已截止</span>
|
||||
<% end %>
|
||||
</li>
|
||||
</th>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
|
|
@ -14,20 +14,20 @@
|
|||
<tbody>
|
||||
<% @unsolved_issues.each do |ui| %>
|
||||
<tr>
|
||||
<th class="homepageTabAvatar">
|
||||
<td class="homepageTabAvatar">
|
||||
<%= link_to image_tag(url_to_avatar(ui.author), :width => "30", :height => "30"), user_path(ui.author), :target => '_blank' %>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabTitle">
|
||||
<%= link_to ui.subject.to_s, issue_path(ui), :target => "_blank", :class => "homepageTabTitle fl ml5", :title => "#{ui.subject.to_s}" %>
|
||||
</li>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabProjectName ml5">
|
||||
<%= link_to ui.project.try(:name), project_path(ui.project_id), :target => "_blank", :title => "#{ui.project.try(:name)}" %>
|
||||
<li>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabAuthor ml5" >
|
||||
<% if ui.author.show_name == ' ' %>
|
||||
<%= link_to ui.try(:author), user_path(ui.author_id), :target => "_blank", :title => "#{ui.try(:author)}" %>
|
||||
|
@ -35,17 +35,17 @@
|
|||
<%= link_to ui.author.show_name, user_path(ui.author_id), :target => "_blank", :title => "#{ui.author.show_name}" %>
|
||||
<% end %>
|
||||
</li>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabAuthor ml5" >
|
||||
<%= ui.priority.name %>
|
||||
</li>
|
||||
</th>
|
||||
<th>
|
||||
</td>
|
||||
<td>
|
||||
<li class="homepageTabAuthor ml5" >
|
||||
<%= ui.status.name %>
|
||||
</li>
|
||||
</th>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in New Issue