From fbb19480f5802848cb02aa73a5ae915445148286 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Thu, 28 Aug 2014 17:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=81=AB=E7=8B=90=E4=B8=8D?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E8=87=AA=E5=8A=A8=E6=8D=A2=E8=A1=8C=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/attachments/autocomplete.js.erb | 2 +- app/views/boards/_project_show.html.erb | 2 +- app/views/contests/show_contest.html.erb | 2 +- app/views/courses/show.html.erb | 2 +- app/views/issues/_list.html.erb | 2 +- app/views/journals/diff.html.erb | 2 +- app/views/layouts/base_courses.html.erb | 2 +- app/views/layouts/base_projects.html.erb | 2 +- app/views/layouts/base_users.html.erb | 2 +- app/views/memos/show.html.erb | 2 +- app/views/messages/_course_show.html.erb | 2 +- app/views/messages/_form.html.erb | 2 +- app/views/messages/_project_show.html.erb | 5 +++-- app/views/messages/edit.html.erb | 2 +- app/views/projects/show.html.erb | 4 ++-- app/views/users/_course_form.html.erb | 2 +- app/views/users/user_projects.html.erb | 2 +- app/views/welcome/contest.html.erb | 4 ++-- app/views/welcome/index.html.erb | 2 +- app/views/wiki/diff.html.erb | 2 +- 20 files changed, 24 insertions(+), 23 deletions(-) diff --git a/app/views/attachments/autocomplete.js.erb b/app/views/attachments/autocomplete.js.erb index abe2c3757..691454feb 100644 --- a/app/views/attachments/autocomplete.js.erb +++ b/app/views/attachments/autocomplete.js.erb @@ -4,5 +4,5 @@ $('#relation_file').html('<%=render_attachments_for_new_project(@project, nil)%> <% elsif @course%> $('#relation_file').html('<%=render_attachments_for_new_course(@course, nil)%>'); <% end%> -$('#attachments').children().css("width","100%").css("word-break","break-all"); +$('#attachments').children().css("width","100%").css("word-break","break-all").css("word-wrap", "break-word"); diff --git a/app/views/boards/_project_show.html.erb b/app/views/boards/_project_show.html.erb index 8cd46c35b..a14e32d6d 100644 --- a/app/views/boards/_project_show.html.erb +++ b/app/views/boards/_project_show.html.erb @@ -53,7 +53,7 @@ <% end %> -
+
<% if @topics.any? %> -
  • +
  • <%= image_tag(get_project_avatar(project), :class => "avatar-4") %>
    diff --git a/app/views/wiki/diff.html.erb b/app/views/wiki/diff.html.erb index ef26c570c..c50051d20 100644 --- a/app/views/wiki/diff.html.erb +++ b/app/views/wiki/diff.html.erb @@ -22,6 +22,6 @@ %>, <%= format_time(@diff.content_to.updated_on) %>)

    -
    +
    <%= simple_format_without_paragraph @diff.to_html %>