mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-01 18:40:15 +01:00
fix #1181. The project listing now had the small drag handle and all the controls to the left.
This commit is contained in:
parent
8b13ee88ab
commit
e935066c18
6 changed files with 18 additions and 28 deletions
|
|
@ -6,27 +6,17 @@ suppress_delete_button ||= false
|
|||
-%>
|
||||
<div id="<%= dom_id(project, "container") %>" class="list">
|
||||
<div id="<%= dom_id(project) %>" class="project sortable_row" style="display:block">
|
||||
|
||||
<% unless suppress_drag_handle -%>
|
||||
<div class="position">
|
||||
<span class="handle"><%= t('common.drag_handle') %></span>
|
||||
</div>
|
||||
<% end -%>
|
||||
|
||||
|
||||
<div class="data">
|
||||
<%= suppress_delete_button ? "" : link_to_delete_project(project, image_tag( "blank.png", :title => t('projects.delete_project_title'), :class=>"delete_item")) %>
|
||||
<%= suppress_edit_button ? "" : link_to_edit_project(project, image_tag( "blank.png", :title => t('projects.edit_project_title'), :class=>"edit_item")) %>
|
||||
<%= image_tag('grip.png',
|
||||
:width => '7', :height => '16', :border => '0',
|
||||
:title => t('common.drag_handle'), :class => 'grip') unless suppress_drag_handle -%>
|
||||
<div class="project_description">
|
||||
<span class="<%= needsreview_class( project ) %>">
|
||||
<%= link_to_project( project ) %>
|
||||
<%= " (" + count_undone_todos_and_notes_phrase(project,"actions") + ")" %>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="buttons">
|
||||
<span class="grey"><%= project.aasm_current_state.to_s.upcase %></span>
|
||||
<%= suppress_delete_button ? "" : link_to_delete_project(project, image_tag( "blank.png", :title => t('projects.delete_project_title'), :class=>"delete_item")) %>
|
||||
<%= suppress_edit_button ? "" : link_to_edit_project(project, image_tag( "blank.png", :title => t('projects.edit_project_title'), :class=>"edit_item")) %>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="<%= dom_id(project, 'edit') %>" class="edit-form" style="display:none;"></div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue