Skip to content

Commit

Permalink
Merge pull request #7191 from DFE-Digital/saved-jobs-tag
Browse files Browse the repository at this point in the history
Add tag to deadline passed on saved jobs
  • Loading branch information
KyleMacPherson authored Oct 22, 2024
2 parents 482072a + 21565aa commit 6278337
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/jobseekers/saved_jobs/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ h1.govuk-heading-l = t(".page_title")
- card.with_body do
= tag.div(card.labelled_item(t(".added"), format_date(saved_job.created_at, :date_only)))
- if saved_job.vacancy.expired?
= tag.div(t(".deadline_passed"), class: "govuk-!-font-weight-bold text-red")
.status-tag
= govuk_tag(text: "Deadline passed", colour: "red", classes: "govuk-!-margin-bottom-2")
= tag.div(card.labelled_item(t(".application_deadline"), format_time_to_datetime_at(saved_job.vacancy.expires_at)))

- if saved_job.vacancy.enable_job_applications? && Vacancy.live.exists?(saved_job.vacancy.id) && current_jobseeker.job_applications.after_submission.find_by(vacancy_id: saved_job.vacancy.id).present?
Expand Down

0 comments on commit 6278337

Please sign in to comment.