mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 11:10:12 +01:00
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
21 lines
1 KiB
Text
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>
|