diff --git a/src/components/listing-parts/last-updated.astro b/src/components/listing-parts/last-updated.astro index ccfbeb5..b1fca75 100644 --- a/src/components/listing-parts/last-updated.astro +++ b/src/components/listing-parts/last-updated.astro @@ -1,12 +1,20 @@ --- +import { ensureListingDetails } from '~/helpers/listing-page.js' import { makeLastUpdatedFriendly } from '~/helpers/parse-date.js' const { - listing + listing } = Astro.props +const details = ensureListingDetails( listing ) + const lastUpdatedFriendly = makeLastUpdatedFriendly( listing.lastUpdated ) +const gameReportUrl = 'https://forms.gle/29GWt85i1G1L7Ttj8' +const defaultReportUrl = `https://github.com/ThatGuySam/doesitarm/issues?q=is%3Aissue+${ listing.name }` + +const reportUrl = details.isGame ? gameReportUrl : defaultReportUrl + ---