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;