Skip to content

Commit

Permalink
Merge branch 'main' into use-govuk-service-navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwhatley authored Dec 19, 2024
2 parents ca40fb4 + e9d239f commit d6f5b37
Show file tree
Hide file tree
Showing 53 changed files with 610 additions and 1,112 deletions.
1 change: 1 addition & 0 deletions app/assets/sass/_helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ body:not(.js-enabled) .app-js-only {
.app-destructive-link {
&.govuk-link, &.govuk-link:visited {
color: govuk-colour("red");
font-weight: normal;
}
}
8 changes: 2 additions & 6 deletions app/assets/sass/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@ $govuk-assets-path: "/dist/govuk/assets/";
@import "node_modules/@ministryofjustice/frontend/moj/all";

// Patterns that aren't in Frontend
@import "components/autocomplete";
@import "components/footer";
@import "components/summary-card";
@import "components/task-list";
@import "patterns/related-items";
@import "patterns/start-page";
@import "patterns/task-list";

// Misc
@import "helpers";
Expand All @@ -36,9 +31,11 @@ $govuk-assets-path: "/dist/govuk/assets/";
@import "components/all-records-header";
@import "components/all-records-search";
@import "components/application-card";
@import "components/autocomplete";
@import "components/banner";
@import "components/button-as-link";
@import "components/cookie-banner";
@import "components/footer";
@import "components/invalid-answer";
@import "components/markdown";
@import "components/organisation-switcher";
Expand All @@ -63,7 +60,6 @@ $govuk-assets-path: "/dist/govuk/assets/";
@import "overrides/moj-filter";
@import "overrides/moj-pagination";
@import "overrides/status-grid";
@import "overrides/summary-card";
@import "overrides/tabs";

// Add extra styles here, or re-organise the Sass files in whichever way makes most sense to you
Expand Down
109 changes: 0 additions & 109 deletions app/assets/sass/components/_summary-card.scss

This file was deleted.

55 changes: 0 additions & 55 deletions app/assets/sass/components/_task-list.scss

This file was deleted.

26 changes: 0 additions & 26 deletions app/assets/sass/overrides/_moj-pagination.scss

This file was deleted.

7 changes: 0 additions & 7 deletions app/assets/sass/overrides/_summary-card.scss

This file was deleted.

71 changes: 0 additions & 71 deletions app/assets/sass/patterns/_task-list.scss

This file was deleted.

6 changes: 6 additions & 0 deletions app/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ router.all('*', (req, res, next) => {
res.locals.referrer = req.query.referrer.split(',')
}

if (req.query?.page) {
res.locals.page = req.query.page
res.locals.nextPage = parseInt(req.query.page) + 1
res.locals.prevPage = parseInt(req.query.page) - 1
}

// Only search by the query if there is one
// (and get "undefined" instead of "{}" if there is no query)
const hasQuery = !_.isEmpty(req.query)
Expand Down
3 changes: 0 additions & 3 deletions app/views/_components/summary-card/macro.njk

This file was deleted.

47 changes: 0 additions & 47 deletions app/views/_components/summary-card/template.njk

This file was deleted.

Loading

0 comments on commit d6f5b37

Please sign in to comment.