From d4551c73631a24ec71e17a5de1adfca8b48afcb1 Mon Sep 17 00:00:00 2001 From: Artemiy Solopov Date: Tue, 21 Oct 2025 20:36:31 +0300 Subject: [PATCH] Minor restyling --- app/assets/stylesheets/application.css | 11 +++++++++++ app/helpers/tasks_helper.rb | 9 +++++++++ app/views/tasks/index.html.slim | 2 ++ 3 files changed, 22 insertions(+) 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)