Mercurial > hg > soundsoftware-site
annotate 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 |
rev | line source |
---|---|
chris@1086 | 1 <% @user_projects = User.current.projects.all(:order => :name) %> |
chris@1086 | 2 |
chris@1164 | 3 <% if @user_projects.empty? %> |
chris@1164 | 4 <h3><%=l(:label_my_projects)%></h3> |
chris@1164 | 5 <div class="box"> |
chris@1203 | 6 <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> |
chris@1164 | 7 </div> |
chris@1164 | 8 <% else %> |
chris@1086 | 9 <h3><%=l(:label_my_projects)%> (<%= @user_projects.count %>)</h3> |
chris@1086 | 10 <div class="box"> |
chris@1086 | 11 <%= |
chris@1086 | 12 render :partial => 'projects/my', :locals => { :user => User.current } |
chris@1086 | 13 %> |
chris@1086 | 14 </div> |
chris@1164 | 15 <% end %> |
chris@1086 | 16 |