- if @task_list.nil?
  - if project.editable?(current_user)
    = task_list_link(project)
  - else
    %p= t('.cant_create')

- case location_name
  - when 'show_tasks'
    = task_overview_box(@task)

    %h2= @task_list
    = sidebar_tasks(@task_list.tasks.unarchived)

  - when 'show_task_lists'
    = task_list_overview_box(@task_list)

    %h2= @task_list
    = sidebar_tasks(@task_list.tasks.unarchived)

  - when 'index_task_lists'
    = filter_task_lists(project)

= banner(@events,@chart)

%h2= t('.other_views')
= subscribe_to_calendar_link(project)
= print_task_lists_link(project)
- if @task_list.nil?
  - if project.editable?(current_user)
    = task_list_link(project)
  - else
    %p= t('.cant_create')

- case location_name
  - when 'show_tasks'
    = task_overview_box(@task)

    %h2= link_to @task_list, [@task_list.project, @task_list]
    = sidebar_tasks(@task_list.tasks.unarchived)

  - when 'show_task_lists'
    = task_list_overview_box(@task_list)

    %h2= @task_list
    = sidebar_tasks(@task_list.tasks.unarchived)

  - when 'index_task_lists'
    = filter_task_lists(project)

= banner(@events,@chart)

%h2= t('.other_views')
= subscribe_to_calendar_link(project)
= print_task_lists_link(project)
Add link to the TaskList on the sidebar when showing a Task
Add link to the TaskList on the sidebar when showing a Task
