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.name %>

-

+

<%= 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 %>

diff --git a/app/views/subjects/show.html.erb b/app/views/subjects/show.html.erb index f236b2518..92fd2c233 100644 --- a/app/views/subjects/show.html.erb +++ b/app/views/subjects/show.html.erb @@ -9,7 +9,7 @@ <% end %>

-
<%= @subject.description.blank? ? "暂未填写" : (@subject.description) %>
+
<%= @subject.description.blank? ? "暂未填写" : (@subject.description) %>
<% end %> @@ -122,7 +122,7 @@ <% end %>

-

<%= @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;}