tracks/app/views/projects/_project.rhtml
Matt Rogers cf62c91ee0 Wrap the project name in a div tag inside the h2 tag
When using inline editing of the project name, the extra stuff that's in
the template for a collapsible project adds a bunch of spaces to the
beginning of the project name due to how the editable plugin is getting
the text for the selector it's being asked to edit.

Using the div tag inside the header tag, and adjusting the javascript to
use the div#project_name selector fixes this behavior and fixes #1204
2011-10-21 12:07:42 -05:00

21 lines
1 KiB
Text

<div class="container">
<h2 id="project_name_container">
<% if collapsible -%>
<a href="#" class="container_toggle" id="toggle_p<%= project.id %>"><%= image_tag("collapse.png") %></a>
<% end -%>
<div id="project_name" style="width: 100%;"><%= project.name -%></div>
</h2>
<div id="<%= dom_id(project, "container")%>" class="list"><%-# list needs to be here for edit form to work -%>
<%= render :partial => "projects/project_settings", :object => project, :locals => { :collapsible => collapsible } %>
</div>
</div>
<div class="container">
<h2><%= t('projects.actions_in_project_title') %></h2>
<div id="p<%= project.id %>items" class="items toggle_target">
<div id="p<%= project.id %>empty-nd" style="display:<%= @not_done.empty? ? 'block' : 'none'%>;">
<div class="message"><p><%= t('projects.no_actions_in_project') %></p></div>
</div>
<%= render :partial => "todos/todo", :collection => @not_done, :locals => { :parent_container_type => "project" } %>
</div>
</div>