<% unless suppress_drag_handle -%>
<%= t('common.drag_handle') %>
<% end -%>
<%= link_to_context( context ) %> <%= " (" + count_undone_todos_phrase(context,"actions") + ")" %>
<% if context.hide? %>
<%= t('states.hidden') %>
<% else %>
<%= t('states.visible') %>
<% end %>
<%= link_to_remote(
image_tag( "blank.png", :title => t('contexts.delete_context'), :class=>"delete_item"),
:url => {:controller => 'contexts', :action => 'destroy', :id => context.id},
:method => 'delete',
:with => "'_source_view=#{@source_view}'",
:before => "$('#{dom_id(context)}').block({message:null});",
:complete => "$('#{dom_id(context)}').unblock();",
:confirm => t('contexts.delete_context_confirmation', :name => context.name),
:html => { :id => dom_id(context, 'delete') }
) %>
<%= link_to_remote(
image_tag( "blank.png", :title => t('contexts.edit_context'), :class=>"edit_item"),
:url => {:controller => 'contexts', :action => 'edit', :id => context.id},
:method => 'get',
:with => "'_source_view=#{@source_view}'",
:before => "$('#{dom_id(context)}').block({message:null});",
:complete => "$('#{dom_id(context)}').unblock();",
:html => {:id => "edit_context_#{context.id}_link"}
) %>