待办任务的所有列表页,首列加上发布人的头像

This commit is contained in:
daiao 2016-12-22 14:49:19 +08:00
parent 884a201953
commit b4d4fa4e28
6 changed files with 23 additions and 1 deletions

View File

@ -3,6 +3,7 @@
<table class="sy_new_table clear" cellpadding="0" cellspacing="0"> <table class="sy_new_table clear" cellpadding="0" cellspacing="0">
<thead> <thead>
<tr> <tr>
<th style="width:40px"></th>
<th><li class="fl ml5">作业标题</li></th> <th><li class="fl ml5">作业标题</li></th>
<th style="width:160px">来源</th> <th style="width:160px">来源</th>
<th style="width:80px">类型</th> <th style="width:80px">类型</th>
@ -12,6 +13,9 @@
<tbody> <tbody>
<% @anonymous_evaluation.each do |ae| %> <% @anonymous_evaluation.each do |ae| %>
<tr> <tr>
<th class="homepageTabAvatar">
<%= link_to image_tag(url_to_avatar(ae.user), :width => "30", :height => "30"), user_path(ae.user), :target => '_blank' %>
</th>
<th> <th>
<li class="homepageTabTitle"> <li class="homepageTabTitle">
<%= link_to ae.name.to_s, student_work_index_url(:homework => ae.id, :tab => 2), :target => "_blank", :class => "homepageTabTitle fl ml5" %> <%= link_to ae.name.to_s, student_work_index_url(:homework => ae.id, :tab => 2), :target => "_blank", :class => "homepageTabTitle fl ml5" %>

View File

@ -3,6 +3,7 @@
<table class="sy_new_table clear" cellpadding="0" cellspacing="0"> <table class="sy_new_table clear" cellpadding="0" cellspacing="0">
<thead> <thead>
<tr> <tr>
<th style="width:40px"></th>
<th><li class="fl ml5">作业标题</li></th> <th><li class="fl ml5">作业标题</li></th>
<th style="width:160px">来源</th> <th style="width:160px">来源</th>
<th style="width:80px">类型</th> <th style="width:80px">类型</th>
@ -12,6 +13,9 @@
<tbody> <tbody>
<% @unfinished_homeworks.each do |uh| %> <% @unfinished_homeworks.each do |uh| %>
<tr> <tr>
<th class="homepageTabAvatar">
<%= link_to image_tag(url_to_avatar(uh.user), :width => "30", :height => "30"), user_path(uh.user), :target => '_blank' %>
</th>
<th> <th>
<li class="homepageTabTitle"> <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}" %> <%= 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}" %>

View File

@ -3,6 +3,7 @@
<table class="sy_new_table clear" cellpadding="0" cellspacing="0"> <table class="sy_new_table clear" cellpadding="0" cellspacing="0">
<thead> <thead>
<tr> <tr>
<th style="width:40px"></th>
<th><li class="fl ml5">问卷标题</li></th> <th><li class="fl ml5">问卷标题</li></th>
<th style="width:160px">来源</th> <th style="width:160px">来源</th>
</tr> </tr>
@ -10,6 +11,9 @@
<tbody> <tbody>
<% @unfinished_poll.each do |up| %> <% @unfinished_poll.each do |up| %>
<tr> <tr>
<th class="homepageTabAvatar">
<%= link_to image_tag(url_to_avatar(up.user), :width => "30", :height => "30"), user_path(up.user), :target => '_blank' %>
</th>
<th> <th>
<li class="homepageTabPollTitle"> <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}" %> <%= link_to up.polls_name.to_s, poll_path(up.id), :target => "_blank", :class => "homepageTabPollTitle fl ml5", :title => "#{up.polls_name.to_s}" %>

View File

@ -3,6 +3,7 @@
<table class="sy_new_table clear" cellpadding="0" cellspacing="0"> <table class="sy_new_table clear" cellpadding="0" cellspacing="0">
<thead> <thead>
<tr> <tr>
<th style="width:40px"></th>
<th><li class="fl ml5">测验标题</li></th> <th><li class="fl ml5">测验标题</li></th>
<th style="width:160px">来源</th> <th style="width:160px">来源</th>
<th style="width:80px">测验时长</th> <th style="width:80px">测验时长</th>
@ -12,6 +13,9 @@
<tbody> <tbody>
<% @unfinished_test.each do |ut| %> <% @unfinished_test.each do |ut| %>
<tr> <tr>
<th class="homepageTabAvatar">
<%= link_to image_tag(url_to_avatar(ut.user), :width => "30", :height => "30"), user_path(ut.user), :target => '_blank' %>
</th>
<th> <th>
<li class="homepageTabTitle"> <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}" %> <%= 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}" %>

View File

@ -3,6 +3,7 @@
<table class="sy_new_table clear" cellpadding="0" cellspacing="0"> <table class="sy_new_table clear" cellpadding="0" cellspacing="0">
<thead> <thead>
<tr> <tr>
<th style="width:40px"></th>
<th><li class="fl ml5">标题</li></th> <th><li class="fl ml5">标题</li></th>
<th style="width:160px">来源</th> <th style="width:160px">来源</th>
<th style="width:80px">发布人</th> <th style="width:80px">发布人</th>
@ -13,6 +14,9 @@
<tbody> <tbody>
<% @unsolved_issues.each do |ui| %> <% @unsolved_issues.each do |ui| %>
<tr> <tr>
<th class="homepageTabAvatar">
<%= link_to image_tag(url_to_avatar(ui.author), :width => "30", :height => "30"), user_path(ui.author), :target => '_blank' %>
</th>
<th> <th>
<li class="homepageTabTitle"> <li class="homepageTabTitle">
<%= link_to ui.subject.to_s, issue_path(ui), :target => "_blank", :class => "homepageTabTitle fl ml5", :title => "#{ui.subject.to_s}" %> <%= link_to ui.subject.to_s, issue_path(ui), :target => "_blank", :class => "homepageTabTitle fl ml5", :title => "#{ui.subject.to_s}" %>

View File

@ -175,4 +175,6 @@ a.user_navmorebox .user_icons_closeclass{display:block;position: absolute;top:5p
.homepageTabProjectName{ max-width:160px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis; } .homepageTabProjectName{ max-width:160px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis; }
.homepageTabAuthor { max-width:80px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis; } .homepageTabAuthor { max-width:80px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis; }
.homepageTabTime { max-width:160px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis; } .homepageTabTime { max-width:160px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis; }
.homepageTabPollTitle { max-width:490px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;} .homepageTabPollTitle { max-width:490px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.homepageTabAvatar img{border: 3px solid #fff;-webkit-border-radius:30px;-moz-border-radius:30px;-o-border-radius:30px;border-radius:30px;}
.homepageTabAvatar img:hover{border: 3px solid #e6e6e6;}