Skip to content

Commit

Permalink
Merge pull request #2975 from alphagov/auditing-fixes
Browse files Browse the repository at this point in the history
Auditing fixes
  • Loading branch information
andysellick authored Nov 13, 2023
2 parents 69a7c29 + a846908 commit 761afbf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//= require govuk_publishing_components/components/details
//= require govuk_publishing_components/components/error-summary
//= require govuk_publishing_components/components/govspeak
//= require govuk_publishing_components/components/image-card
//= require govuk_publishing_components/components/intervention
//= require govuk_publishing_components/components/metadata
//= require govuk_publishing_components/components/print-link
//= require govuk_publishing_components/components/radio
Expand Down
9 changes: 0 additions & 9 deletions app/assets/stylesheets/views/_manual.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@
&.hmrc {
background: govuk-organisation-colour("hm-revenue-customs");
}

.gem-c-metadata--inverse {
background: none;
padding: 0;

.gem-c-metadata__list {
margin: 0;
}
}
}

.section-list {
Expand Down
1 change: 1 addition & 0 deletions app/presenters/content_item/manual.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def manual_metadata
first_published: published,
other: other_metadata,
inverse: true,
inverse_compress: true,
}
end

Expand Down
3 changes: 2 additions & 1 deletion test/presenters/content_item/manual_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ def initialize(schema_name = "manual")
expected_metadata = {
from: ["<a class=\"govuk-link\" href=\"/blah\">blah</a>"],
first_published: "23 March 2022",
inverse: true,
other: {
I18n.t("manuals.updated") => "23 March 2022, <a href=\"/a/base/path/updates\">#{I18n.t('manuals.see_all_updates')}</a>",
},
inverse: true,
inverse_compress: true,
}
assert_equal expected_metadata, item.manual_metadata
end
Expand Down

0 comments on commit 761afbf

Please sign in to comment.