Fixed broken links in tasks-module. Translated some views into german.

This commit is contained in:
Benjamin Meichsner 2009-02-06 20:51:14 +01:00
parent 85eb27079f
commit 96442477d1
24 changed files with 141 additions and 274 deletions

View file

@ -1,12 +1,13 @@
%table
%tr
%th= _('Due date')
%th= _('Subject')
%th Fälligkeit
%th Betreff
%th{:colspan => '2'}
= _('Who will make it?')
%small= "(" + _("How many are still required?") + ")"
Wer machts?
%small (Wie viele werden noch benötigt?)
- for task in @tasks
%tr{:class => cycle('even','odd', :name => "tasks") + (task.done ? " done" : "") }
- done = task.done ? " done" : ""
%tr{:class => cycle('even','odd', :name => "tasks") + done }
%td= format_date(task.due_date) unless task.due_date.nil?
%td= link_to task.name, :controller => "tasks", :action => "show", :id => task
%td
@ -22,11 +23,11 @@
= highlighted_required_users task
%td
- unless task.is_accepted?(@current_user)
%span{:style => "float:left"}= button_to _('Accept task'), :controller => "tasks", :action => "accept", :id => task
= button_to _("Reject task"), :controller => "tasks", :action => "reject", :id => task if task.is_assigned?(@current_user)
%span{:style => "float:left"}= button_to "Aufgabe übernehmen", :controller => "tasks", :action => "accept", :id => task
= button_to "Aufgabe ablehnen", :controller => "tasks", :action => "reject", :id => task if task.is_assigned?(@current_user)
- else
- form_for :task, :url => {:action => "update_status", :id => task} do |f|
= _("Done") + "?"
= f.check_box :done, {:onchange => "submit()"}
= _("Done") if task.done
Erledigt?
= f.check_box :done, {:onchange => "submit()", :title => "Die Aufgabe wandert in das Archiv"}
= "Erledigt" if task.done
- reset_cycle("tasks")