view app/views/my/blocks/_myprojects.html.erb @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents 74ad60b807ae
children
line wrap: on
line source
<%  @user_projects = User.current.projects.all(:order => :name) %>

<% if @user_projects.empty? %>
<h3><%=l(:label_my_projects)%></h3>
<div class="box">
  <div class="tip"><%= l(:label_have_no_projects)%> <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}) if User.current.allowed_to?(:add_project, nil, :global => true) %></div>
</div>
<% else %>
<h3><%=l(:label_my_projects)%> (<%= @user_projects.count %>)</h3>
<div class="box">
<%=
   render :partial => 'projects/my', :locals => { :user => User.current }
 %>
</div>
<% end %>