cirandas.net

ref: master

plugins/escambo/views/tasks/index.html.erb


<%= stylesheet_link_tag 'tasks' %>

<%= _("%s's pending tasks") % profile.name %>

<% type_collection = [[nil, _('All')]] %> <% type_collection += Task.all_types.sort_by {|klass| klass.constantize.new.title}.map{|s| [s, s.constantize.new.title] } %> <% if !@failed.blank? %>

<% @failed.each do |error, tasks_descriptions|%>

<%= error %>

<%=_("This error happened with the following tasks: ")%>

    <% tasks_descriptions.each do |description| %>
  • <%= description %>
  • <% end %>
<% end %>
<% end %> <% if @tasks.empty? %> <%= _('No pending tasks for %s') % profile.name %> <% else %> <%= form_tag :action => 'close' do%> <% button_bar do %> <%= submit_button :save, _("Apply!") %> <%= button(:edit, _('View processed tasks'), :action => 'processed') %> <% end %> <%= pagination_links(@tasks)%>
    <% @tasks.each do |task| %> <%= render :partial => 'task', :locals => { :task => task } %> <% end %>
<% end %> <% end %>

<%= javascript_include_tag 'tasks' %>