<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2013 the OpenProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. See doc/COPYRIGHT.rdoc for more details. ++#%> <% html_title l("timelines.project_menu.timelines") %> <% content_for :action_menu_main do %> <%= li_unless_nil(link_to_if_authorized(l('timelines.new_timeline'), {:controller => '/timelines', :action => 'new', :project_id => @project}, :title => l('timelines.new_timeline'), :class => 'icon icon-add')) %> <%= li_unless_nil(link_to_if_authorized({:controller => '/timelines', :action => 'edit', :project_id => @project, :id => @timeline}, :class => 'icon icon-edit') do %> <%= l(:button_edit) %><%= h(@timeline.name) %> <% end) %> <%= li_unless_nil(link_to_if_authorized({:controller => '/timelines', :action => 'confirm_destroy', :project_id => @project, :id => @timeline}, :class => 'icon icon-del') do %> <%= l(:button_delete) %><%= h(@timeline.name) %> <% end) %> <% end %>

<%= @timeline.name %>

<% form_tag :id => "specialForm" do %> <%= label_tag 'timeline_select', l("timelines.timeline") %> <%= collection_select(:timeline, :id, @visible_timelines, :id, :name, {}, {:id => 'timeline_select'}) %> <% end %> <%= render :partial => "timeline", :locals => {:timeline => @timeline} %>