From f549645dce1f4c6f6fe481d0403bcbc379c3509f Mon Sep 17 00:00:00 2001 From: yanxd Date: Fri, 24 Jan 2014 15:32:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E7=AC=A6=E8=B6=85=E5=87=BA=E8=BE=B9?= =?UTF-8?q?=E7=95=8C=E9=97=AE=E9=A2=98=EF=BC=8C=20=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B404=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/projects/course.html.erb | 2 +- public/stylesheets/nyan.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/projects/course.html.erb b/app/views/projects/course.html.erb index 4a72b2268..fd23cab20 100644 --- a/app/views/projects/course.html.erb +++ b/app/views/projects/course.html.erb @@ -11,7 +11,7 @@ <% if User.current.logged?%> <% if User.current.user_extensions.identity == 0 %> - <%= link_to(l(:label_course_new), {:controller => 'projects', :action => 'new', :course => 1, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %> + <%= link_to(l(:label_course_new), {:controller => 'projects', :action => 'new', :course => 1, :project_type => 1}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %> <% end %> <% end %> diff --git a/public/stylesheets/nyan.css b/public/stylesheets/nyan.css index 1b0582097..a40943462 100644 --- a/public/stylesheets/nyan.css +++ b/public/stylesheets/nyan.css @@ -14,6 +14,10 @@ .clear_both{ clear: both; } +pre{ + white-space: normal; + word-wrap: break-word; +} .highlight { background-color: #fff34d; -moz-border-radius: 3px;