From b0ff7f0ee23c943c444f9d79cf1256b467a4f258 Mon Sep 17 00:00:00 2001 From: suntao <719450423@qq.com> Date: Mon, 31 Aug 2015 14:52:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=97=B4=E8=B7=9D=E8=B0=83?= =?UTF-8?q?=E6=95=B4=EF=BC=8C=E5=A4=B4=E5=83=8F=E5=A4=A7=E5=B0=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/new_base_user.html.erb | 6 ++-- app/views/users/_course_attachment.html.erb | 8 ++--- app/views/users/_course_create.html.erb | 8 ++--- app/views/users/_course_homework.html.erb | 8 ++--- .../users/_course_journalsformessage.html.erb | 8 ++--- app/views/users/_course_message.html.erb | 12 ++++---- app/views/users/_course_news.html.erb | 12 ++++---- app/views/users/_course_poll.html.erb | 10 +++---- app/views/users/_project_attachment.html.erb | 8 ++--- app/views/users/_project_create.html.erb | 8 ++--- app/views/users/_project_document.html.erb | 8 ++--- app/views/users/_project_issue.html.erb | 8 ++--- app/views/users/_project_journal.html.erb | 8 ++--- app/views/users/_project_message.html.erb | 12 ++++---- app/views/users/_project_news.html.erb | 8 ++--- app/views/users/_user_homework_list.html.erb | 2 +- app/views/users/show_chen.erb | 28 +++++++++--------- public/stylesheets/courses.css | 14 ++++----- public/stylesheets/new_user.css | 29 ++++++++++--------- 19 files changed, 103 insertions(+), 102 deletions(-) diff --git a/app/views/layouts/new_base_user.html.erb b/app/views/layouts/new_base_user.html.erb index 32813b58d..890fadbed 100644 --- a/app/views/layouts/new_base_user.html.erb +++ b/app/views/layouts/new_base_user.html.erb @@ -31,7 +31,7 @@
- <%= image_tag(url_to_avatar(@user),width:"90", height: "90", :id=>'nh_user_tx') %> + <%= image_tag(url_to_avatar(@user),width:"78", height: "78", :id=>'nh_user_tx') %> <% if User.current.logged?%> <% if is_current_user%>
@@ -43,14 +43,14 @@ <% end%>
- <% if (@user.user_extensions && (@user.user_extensions.identity != 2) ) %> <% end %>
-

+

<%= get_technical_title @user %>

diff --git a/app/views/users/_course_attachment.html.erb b/app/views/users/_course_attachment.html.erb index e0d04548b..41961f05b 100644 --- a/app/views/users/_course_attachment.html.erb +++ b/app/views/users/_course_attachment.html.erb @@ -1,11 +1,11 @@
-
+
- <%= link_to image_tag(url_to_avatar(activity.author), :width => "90", :height => "90"), user_path(activity.author_id), :alt => "用户头像" %> + <%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %>
-
+
<% if activity.try(:author).try(:realname) == ' ' %> <%= link_to activity.try(:author), user_path(activity.author_id), :class => "newsBlue mr15" %> <% else %> @@ -15,7 +15,7 @@ <%= link_to activity.course.name.to_s+"(课程名称)", course_path(activity.container_id), :class => "newsBlue ml15", :style=>"word-break:break-all" %>
-
+
diff --git a/app/views/users/_course_create.html.erb b/app/views/users/_course_create.html.erb index b86f55385..b69e6ee86 100644 --- a/app/views/users/_course_create.html.erb +++ b/app/views/users/_course_create.html.erb @@ -1,11 +1,11 @@
-
+
- 用户头像
+ 用户头像
-
尹教授 TO + -
+
diff --git a/app/views/users/_course_homework.html.erb b/app/views/users/_course_homework.html.erb index a3d4992c5..accf285ed 100644 --- a/app/views/users/_course_homework.html.erb +++ b/app/views/users/_course_homework.html.erb @@ -1,10 +1,10 @@
-
+
- <%= link_to image_tag(url_to_avatar(activity.user), :width => "90", :height => "90"), user_path(activity.user_id), :alt => "用户头像" %> + <%= link_to image_tag(url_to_avatar(activity.user), :width => "50", :height => "50"), user_path(activity.user_id), :alt => "用户头像" %>
-
+
<% if activity.try(:user).try(:realname) == ' ' %> <%= link_to activity.try(:user), user_path(activity.user_id), :class => "newsBlue mr15" %> <% else %> @@ -12,7 +12,7 @@ <% end %> TO <%= link_to activity.course.name.to_s+" | 课程作业", course_path(activity.course_id), :class => "newsBlue ml15", :style=>"word-break:break-all" %>
-
+
<%= link_to activity.name.to_s, student_work_index_path(:homework => activity.id), :class => "postGrey", :style=>"word-break:break-all" %>
diff --git a/app/views/users/_course_journalsformessage.html.erb b/app/views/users/_course_journalsformessage.html.erb index 90d5d05ee..12c082dfa 100644 --- a/app/views/users/_course_journalsformessage.html.erb +++ b/app/views/users/_course_journalsformessage.html.erb @@ -1,11 +1,11 @@
-
+
- 用户头像
+ 用户头像
-
尹教授 TO + -
+
diff --git a/app/views/users/_course_message.html.erb b/app/views/users/_course_message.html.erb index 05caa1f91..814d94af5 100644 --- a/app/views/users/_course_message.html.erb +++ b/app/views/users/_course_message.html.erb @@ -1,10 +1,10 @@
-
+
- <%= link_to image_tag(url_to_avatar(activity.author), :width => "90", :height => "90"), user_path(activity.author_id), :alt => "用户头像" %> + <%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %>
-
+
<% if activity.try(:author).try(:realname) == ' ' %> <%= link_to activity.try(:author), user_path(activity.author_id), :class => "newsBlue mr15" %> <% else %> @@ -14,15 +14,15 @@ <%= link_to activity.course.name.to_s+" | 课程讨论区", course_path(activity.course), :class => "newsBlue ml15 mr5", :style=>"word-break:break-all"%> <%#= link_to activity.course.name.to_s+"(课程讨论区)", course_path(activity.course), :class => "newsBlue ml15 mr5", :style=>"word-break:break-all"%>
-
+
<% if activity.parent_id.nil? %> <%= link_to activity.subject.to_s.html_safe, course_boards_path(activity.course,:parent_id =>activity.id, :topic_id => activity.id), :class=> "postGrey", :style=>"word-break:break-all" %> <% else %> <%= link_to activity.parent.subject.to_s.html_safe, course_boards_path(activity.course,:parent_id =>activity.parent_id, :topic_id => activity.id), :class=> "postGrey", :style=>"word-break:break-all"%> <% end %>
-
-
发帖时间:<%= format_date(activity.created_on) %>
+
+ 发帖时间:<%= format_date(activity.created_on) %>
diff --git a/app/views/users/_course_news.html.erb b/app/views/users/_course_news.html.erb index dbeb8d450..d6c32def6 100644 --- a/app/views/users/_course_news.html.erb +++ b/app/views/users/_course_news.html.erb @@ -1,10 +1,10 @@
-
+
- <%= link_to image_tag(url_to_avatar(activity.author), :width => "90", :height => "90"), user_path(activity.author_id), :alt => "用户头像" %> + <%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %>
-
+
<% if @ctivity.try(:author).try(:realname) == ' ' %> <%= link_to activity.try(:author), user_path(activity.author_id), :class => "newsBlue mr15" %> <% else %> @@ -12,11 +12,11 @@ <% end %> TO <%= link_to activity.course.name.to_s+" | 课程通知", course_path(activity.course), :class => "newsBlue ml15", :style => "word-break:break-all" %>
-
+
<%= link_to activity.title.to_s, news_path(activity), :class => "postGrey", :style => "word-break:break-all" %>
-
-
发布时间:<%= format_date(activity.created_on) %>
+
+ 发布时间:<%= format_date(activity.created_on) %>
通知描述:<%= activity.description.html_safe %>
diff --git a/app/views/users/_course_poll.html.erb b/app/views/users/_course_poll.html.erb index 97b3b759d..7aafb5451 100644 --- a/app/views/users/_course_poll.html.erb +++ b/app/views/users/_course_poll.html.erb @@ -1,13 +1,13 @@ <% has_commit = has_commit_poll?(activity.id ,User.current)%> <% poll_name = activity.polls_name.empty? ? l(:label_poll_new) : activity.polls_name%>
-
+
- <%= link_to image_tag(url_to_avatar(activity.user), :width => "90", :height => "90"), user_path(activity.user_id), :alt => "用户头像" %> + <%= link_to image_tag(url_to_avatar(activity.user), :width => "50", :height => "50"), user_path(activity.user_id), :alt => "用户头像" %>
-
+
<% if activity.try(:user).try(:realname) == ' ' %> <%= link_to activity.try(:user), user_path(activity.user_id), :class => "newsBlue mr15" %> <% else %> @@ -25,8 +25,8 @@ <%= link_to poll_name, poll_path(activity.id), :class => "postGrey"%> <% end %>
-
-
发布时间:<%= format_date(activity.published_at) %>
+
+ 发布时间:<%= format_date(activity.published_at) %>
问卷描述:<%=activity.polls_description.html_safe.to_s%>