diff --git a/Rakefile b/Rakefile index 9141382..18f6ad1 100644 --- a/Rakefile +++ b/Rakefile @@ -21,7 +21,8 @@ namespace :blog do repo.create({ title: title, year: activity.year, - url: activity.film_link + url: activity.film_link, + watched_at: activity.watched_at }) end end diff --git a/app/templates/trips/index.html.slim b/app/templates/trips/index.html.slim index 4b67875..90c9ff5 100644 --- a/app/templates/trips/index.html.slim +++ b/app/templates/trips/index.html.slim @@ -5,7 +5,7 @@ div class="mb-4 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:t table class="prose dark:prose-invert table-auto" - trip_years.each do |year, trips| thead - tr colspan=5 + tr colspan=3 td class="text-xl" = year - trips.each do |trip| tr @@ -14,7 +14,7 @@ div class="mb-4 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:t = trip.name td = trip.subtitle - td colspan=2 class="text-right text-gray-400 dark:text-gray-600 break-normal" + td class="text-right text-gray-400 dark:text-gray-600 break-normal" = "#{trip.start_date.strftime("%m %b")}" == " → " = "#{trip.end_date.strftime("%m %b")}" diff --git a/db/migrate/20230510105852_add_added_at_to_movies.rb b/db/migrate/20230510105852_add_added_at_to_movies.rb new file mode 100644 index 0000000..6a4327c --- /dev/null +++ b/db/migrate/20230510105852_add_added_at_to_movies.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +ROM::SQL.migration do + change do + alter_table :movies do + add_column :watched_at, :date + end + end +end