diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index e1fe015..1732bbe 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -22,3 +22,14 @@ site-sidebar { color: var(--color); } } + +.links, .buttons { + display: flex; + flex-flow: row wrap; + gap: 1em; + padding: 0; + + li { + list-style: none; + } +} diff --git a/app/helpers/tasks_helper.rb b/app/helpers/tasks_helper.rb index ce894d0..9c43d7e 100644 --- a/app/helpers/tasks_helper.rb +++ b/app/helpers/tasks_helper.rb @@ -1,2 +1,11 @@ +# frozen_string_literal: true + module TasksHelper + def tasks_index_title + return "Tasks for #{current_project.name}" if current_project + + # TODO: add conditions for filters, etc + + 'Tasks' + end end diff --git a/app/views/tasks/index.html.slim b/app/views/tasks/index.html.slim index 6b0972d..60d40dc 100644 --- a/app/views/tasks/index.html.slim +++ b/app/views/tasks/index.html.slim @@ -1,3 +1,5 @@ +h1= tasks_index_title + .row = link_to 'New', new_task_path(project: current_project&.code)