Skip to content

Commit

Permalink
Slim linter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleMacPherson committed Nov 29, 2024
1 parent 63fbb39 commit f8b0321
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
div.govuk-summary-card
div.govuk-summary-card__title-wrapper
.govuk-summary-card
.govuk-summary-card__title-wrapper
h2.govuk-summary-card__title = employment.job_title
ul.govuk-summary-card__actions
= govuk_link_to t("buttons.change_hidden_text_html", hidden_text: employment.job_title), edit_jobseekers_job_application_employment_path(job_application, employment), class: "govuk-link--no-visited-state"
= govuk_link_to t("buttons.delete_hidden_text_html", hidden_text: employment.job_title), jobseekers_job_application_employment_path(job_application, employment), method: :delete
div.govuk-summary-card__content
.govuk-summary-card__content
dl.govuk-summary-list
div.govuk-summary-list__row
.govuk-summary-list__row
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.organisation")
dd.govuk-summary-list__value = employment.organisation.presence
div.govuk-summary-list__row
.govuk-summary-list__row
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.started_on")
dd.govuk-summary-list__value = employment.started_on.to_formatted_s(:month_year)
- case employment.current_role
- when "yes"
div.govuk-summary-list__row
.govuk-summary-list__row
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.ended_on")
dd.govuk-summary-list__value = t("jobseekers.job_applications.employments.current_role")
- when "no"
div.govuk-summary-list__row
.govuk-summary-list__row
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.ended_on")
dd.govuk-summary-list__value = employment.ended_on.to_formatted_s(:month_year)
= govuk_details summary_text: "Additional information" do
div.govuk-summary-list__row

= govuk_details summary_text: "Additional information" do
.govuk-summary-list__row
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.subjects")
dd.govuk-summary-list__value = employment.subjects.presence || t("jobseekers.job_applications.not_defined")
div.govuk-summary-list__row
.govuk-summary-list__row
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.main_duties")
dd.govuk-summary-list__value = simple_format(employment.main_duties)
div.govuk-summary-list__row
.govuk-summary-list__row
dt.govuk-summary-list__key = t("jobseekers.job_applications.employments.reason_for_leaving")
dd.govuk-summary-list__value = employment.reason_for_leaving
dd.govuk-summary-list__value = employment.reason_for_leaving
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
= govuk_button_link_to t("buttons.add_work_history"), new_jobseekers_job_application_employment_path(job_application), class: "govuk-button--secondary govuk-!-margin-bottom-10 employment-gap-buttons"
= govuk_button_link_to t("buttons.add_gap"), new_jobseekers_job_application_break_path(job_application), class: "govuk-button--secondary govuk-!-margin-bottom-10 employment-gap-buttons"
hr.govuk-section-break.govuk-section-break--visible

- if employments.any?
- employments.reverse_each do |employment|
- if employment.job?
Expand Down

0 comments on commit f8b0321

Please sign in to comment.