- title t('.title') = render 'nav' %section %dl.dl-horizontal %dt= t 'simple_form.labels.task.name' %dd= @task.name - if @task.description.present? %dt= t 'simple_form.labels.defaults.description' %dd= simple_format(@task.description) - if @task.due_date.present? %dt= t '.due_date' %dd= format_date(@task.due_date) %dt= t 'simple_form.labels.task.duration' %dd= t('.hours', count: @task.duration) %dt= t 'simple_form.labels.task.user_list' %dd= task_assignments(@task) %dt= t 'simple_form.labels.task.workgroup' %dd - if @task.workgroup = link_to @task.workgroup.name, workgroup_tasks_path(workgroup_id: @task.workgroup_id) %p - if !@task.is_accepted?(current_user) = link_to t('.accept_task'), accept_task_path(@task), method: :post, class: 'btn btn-success' - if @task.is_assigned?(current_user) = link_to t('.reject_task'), reject_task_path(@task), method: :post, class: 'btn' - unless @task.done? = link_to t('.mark_done'), set_done_task_path(@task), method: :post, class: 'btn' = link_to t('ui.edit'), edit_task_path(@task), class: 'btn' = link_to t('ui.delete'), task_path(@task), :method => :delete, :confirm => "Die Aufgabe wirklich löschen?", class: 'btn btn-danger' - if @task.periodic = link_to t('ui.delete_all'), periodic_task_group_path(@task.periodic_task_group), :method => :delete, :confirm => "Alle Aufgaben dieser wöchentlichen Aufgabe wirklich löschen?", class: 'btn btn-danger'