From 6fe4f200f23b8afc0049b780ac4e042c4e8a5436 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Mon, 28 Aug 2017 09:19:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=8D=A2=E8=A1=8C=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E4=B8=A4=E7=AB=AF=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/subjects/_subject_list.html.erb | 4 ++-- app/views/subjects/show.html.erb | 6 +++--- public/stylesheets/css/edu-common.css | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/subjects/_subject_list.html.erb b/app/views/subjects/_subject_list.html.erb index f5d199aa6..13f58fb55 100644 --- a/app/views/subjects/_subject_list.html.erb +++ b/app/views/subjects/_subject_list.html.erb @@ -30,7 +30,7 @@
-+
<%= subject.description.blank? ? "轻松学习#{subject.name}~" : subject.description %>
@@ -43,7 +43,7 @@ <%= image_tag(url_to_avatar(subject.user), :width =>"40", :height => "40", :class => "bor-radius-all mr10 fl mt8", :alt=>"头像") %>
<%= subject.user.try(:show_name) %>
-<%= subject.user.school_name + subject.user.identity %>
+<%= subject.user.school_name %>
<%= @subject.description.blank? ? "暂未填写" : (@subject.description) %>+
<%= @subject.description.blank? ? "暂未填写" : (@subject.description) %>
<%= @subject.learning_notes.blank? ? "暂未填写" : @subject.learning_notes %>+
<%= @subject.learning_notes.blank? ? "暂未填写" : @subject.learning_notes %>
教学团队 @@ -135,7 +135,7 @@
<%= @subject.user.try(:show_name) %>
<%= @subject.user.school_name + @subject.user.identity %>
<%= @subject.user.user_extensions.brief_introduction.blank? ? "暂未填写" : @subject.user.user_extensions.brief_introduction %>+
<%= @subject.user.user_extensions.brief_introduction.blank? ? "暂未填写" : @subject.user.user_extensions.brief_introduction %>diff --git a/public/stylesheets/css/edu-common.css b/public/stylesheets/css/edu-common.css index be2c1a9d7..169188d77 100644 --- a/public/stylesheets/css/edu-common.css +++ b/public/stylesheets/css/edu-common.css @@ -177,6 +177,7 @@ a.course-bth-blue{cursor: pointer;background-color:#199ed8 ;color: #ffffff !impo /*pre标签换行*/ .break_word{word-break: break-all;word-wrap: break-word;} .break_word_firefox{white-space: pre-wrap !important;word-break: break-all;} +.pre_word{white-space: pre-wrap;word-wrap: break-word;} .pr {position:relative;} .df {display:flex;} .w100{width: 100px;}