mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-26 03:58:49 +01:00
Mostly completed transition to full i18n Incorporated german translations by Ulf Klose <ulf.klose@gmail.com>
40 lines
1.6 KiB
Text
40 lines
1.6 KiB
Text
<% project = project_listing
|
|
suppress_drag_handle ||= false
|
|
suppress_edit_button ||= false
|
|
-%>
|
|
<div id="<%= dom_id(project, "container") %>" class="list">
|
|
<div id="<%= dom_id(project) %>" class="project sortable_row" style="display:''">
|
|
<% unless suppress_drag_handle -%>
|
|
<div class="position">
|
|
<span class="handle"><%= t('common.drag_handle') %></span>
|
|
</div>
|
|
<% end -%>
|
|
<div class="data">
|
|
<%= link_to_project( project ) %><%= " (" + count_undone_todos_and_notes_phrase(project,"actions") + ")" %>
|
|
</div>
|
|
<div class="buttons">
|
|
<span class="grey"><%= t('states.' + project.current_state.to_s).upcase %></span>
|
|
<a class="delete_project_button"
|
|
href="<%= project_path(project, :format => 'js') %>"
|
|
title="<%= t('projects.delete_project_title') %> '<%= project.name %>'"><%= image_tag( "blank.png",
|
|
:title => t('projects.delete_project'),
|
|
:class=>"delete_item") %></a>
|
|
|
|
<% unless suppress_edit_button -%>
|
|
<%= link_to_remote(
|
|
image_tag( "blank.png", :title => t('projects.edit_project_title'), :class=>"edit_item"),
|
|
:url => {:controller => 'projects', :action => 'edit', :id => project.id},
|
|
:method => 'get',
|
|
:with => "'_source_view=#{@source_view}'",
|
|
:before => "$('#{dom_id(project)}').block({message:null});",
|
|
:complete => "$('#{dom_id(project)}').unblock();enable_rich_interaction();",
|
|
:html => {:id => "link_edit_#{dom_id(project)}"}
|
|
) %>
|
|
|
|
<% end -%>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="<%= dom_id(project, 'edit') %>" class="edit-form" style="display:none;">
|
|
</div>
|
|
</div>
|