fix links

This commit is contained in:
xianbo 2013-11-14 20:15:08 +08:00
parent b22077033a
commit 6279041361
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
</p>
<% end %>
<% else %>
<p><%= link_to"#{l(:label_course_new)}",{:controller=>'projects',:action=>'new', :course => 1}, :class => 'icon icon-add' %></p>
<p><%= link_to"#{l(:label_course_new)}",{:controller=>'projects',:action=>'new', :course => 1, :project_type => 1}, :class => 'icon icon-add' %></p>
<%= render :partial => 'course_form' %>
<% end %>
</div>

View File

@ -2,7 +2,7 @@
<p>温馨提示:项目可以是一次作业,也可以是别人或者自己创建的一项小工程~</p>
<div class="content-title-top-project">
<% if @user == User.current %>
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => 0}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
<% end %>
</div>
<%= watch_projects @state %>

View File

@ -1,6 +1,6 @@
<p>温馨提示:项目可以是一次作业,也可以是别人或者自己创建的一项小工程~</p>
<% if @user == User.current %>
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => @project_type}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new', :course => 0, :project_type => 0}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
<% end %>
<%= watch_projects @state%>
<% if @watch_projects.nil?&&watch_projects.project.nil? %>