From b4d4fa4e281f4613de5eef772e278e970bcb441f Mon Sep 17 00:00:00 2001
From: daiao <358551898@qq.com>
Date: Thu, 22 Dec 2016 14:49:19 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E5=8A=9E=E4=BB=BB=E5=8A=A1=E7=9A=84?=
=?UTF-8?q?=E6=89=80=E6=9C=89=E5=88=97=E8=A1=A8=E9=A1=B5=EF=BC=8C=E9=A6=96?=
=?UTF-8?q?=E5=88=97=E5=8A=A0=E4=B8=8A=E5=8F=91=E5=B8=83=E4=BA=BA=E7=9A=84?=
=?UTF-8?q?=E5=A4=B4=E5=83=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/users/_anonymous_evaluation_list.html.erb | 4 ++++
app/views/users/_unfinished_homework_list.html.erb | 4 ++++
app/views/users/_unfinished_poll_list.html.erb | 4 ++++
app/views/users/_unfinished_test_list.html.erb | 4 ++++
app/views/users/_unsolved_issues_list.html.erb | 4 ++++
public/stylesheets/css/user.css | 4 +++-
6 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/app/views/users/_anonymous_evaluation_list.html.erb b/app/views/users/_anonymous_evaluation_list.html.erb
index 507bf00e3..049f97f49 100644
--- a/app/views/users/_anonymous_evaluation_list.html.erb
+++ b/app/views/users/_anonymous_evaluation_list.html.erb
@@ -3,6 +3,7 @@
+ |
作业标题 |
来源 |
类型 |
@@ -12,6 +13,9 @@
<% @anonymous_evaluation.each do |ae| %>
+
+ <%= link_to image_tag(url_to_avatar(ae.user), :width => "30", :height => "30"), user_path(ae.user), :target => '_blank' %>
+ |
<%= link_to ae.name.to_s, student_work_index_url(:homework => ae.id, :tab => 2), :target => "_blank", :class => "homepageTabTitle fl ml5" %>
diff --git a/app/views/users/_unfinished_homework_list.html.erb b/app/views/users/_unfinished_homework_list.html.erb
index a802436d2..f153f9f03 100644
--- a/app/views/users/_unfinished_homework_list.html.erb
+++ b/app/views/users/_unfinished_homework_list.html.erb
@@ -3,6 +3,7 @@
+ |
作业标题 |
来源 |
类型 |
@@ -12,6 +13,9 @@
<% @unfinished_homeworks.each do |uh| %>
+
+ <%= link_to image_tag(url_to_avatar(uh.user), :width => "30", :height => "30"), user_path(uh.user), :target => '_blank' %>
+ |
<%= 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}" %>
diff --git a/app/views/users/_unfinished_poll_list.html.erb b/app/views/users/_unfinished_poll_list.html.erb
index e35b53e71..704909a8e 100644
--- a/app/views/users/_unfinished_poll_list.html.erb
+++ b/app/views/users/_unfinished_poll_list.html.erb
@@ -3,6 +3,7 @@
+ |
问卷标题 |
来源 |
@@ -10,6 +11,9 @@
<% @unfinished_poll.each do |up| %>
+
+ <%= link_to image_tag(url_to_avatar(up.user), :width => "30", :height => "30"), user_path(up.user), :target => '_blank' %>
+ |
<%= link_to up.polls_name.to_s, poll_path(up.id), :target => "_blank", :class => "homepageTabPollTitle fl ml5", :title => "#{up.polls_name.to_s}" %>
diff --git a/app/views/users/_unfinished_test_list.html.erb b/app/views/users/_unfinished_test_list.html.erb
index 8d95d1a02..c6d38d26a 100644
--- a/app/views/users/_unfinished_test_list.html.erb
+++ b/app/views/users/_unfinished_test_list.html.erb
@@ -3,6 +3,7 @@
+ |
测验标题 |
来源 |
测验时长 |
@@ -12,6 +13,9 @@
<% @unfinished_test.each do |ut| %>
+
+ <%= link_to image_tag(url_to_avatar(ut.user), :width => "30", :height => "30"), user_path(ut.user), :target => '_blank' %>
+ |
<%= 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}" %>
diff --git a/app/views/users/_unsolved_issues_list.html.erb b/app/views/users/_unsolved_issues_list.html.erb
index 7eca88f56..09835cad6 100644
--- a/app/views/users/_unsolved_issues_list.html.erb
+++ b/app/views/users/_unsolved_issues_list.html.erb
@@ -3,6 +3,7 @@
+ |
标题 |
来源 |
发布人 |
@@ -13,6 +14,9 @@
<% @unsolved_issues.each do |ui| %>
+
+ <%= link_to image_tag(url_to_avatar(ui.author), :width => "30", :height => "30"), user_path(ui.author), :target => '_blank' %>
+ |
<%= link_to ui.subject.to_s, issue_path(ui), :target => "_blank", :class => "homepageTabTitle fl ml5", :title => "#{ui.subject.to_s}" %>
diff --git a/public/stylesheets/css/user.css b/public/stylesheets/css/user.css
index 8957de38f..abff72629 100644
--- a/public/stylesheets/css/user.css
+++ b/public/stylesheets/css/user.css
@@ -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; }
.homepageTabAuthor { max-width:80px;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;}
\ No newline at end of file
+.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;}
\ No newline at end of file
| | | | |