Skip to content

Commit

Permalink
Edits
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdavidhamilton committed Jul 11, 2024
1 parent 99cb8b9 commit 9040a6d
Show file tree
Hide file tree
Showing 11 changed files with 1,103 additions and 20,583 deletions.
2 changes: 1 addition & 1 deletion app/components/header_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def call
tag.li(**html_attributes) do
if link?
link_to(href, class: 'dfe-header__navigation-link', **options) do
text.concat(chevron).html_safe
(text + chevron).html_safe
end
else
text
Expand Down
10 changes: 6 additions & 4 deletions app/javascript/application.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { initAll } from 'govuk-frontend';
initAll();

import '@hotwired/turbo-rails';

import './controllers';

import $ from 'jquery';
import { initAll } from 'govuk-frontend';

document.addEventListener('turbo:load', function() {
initAll();
})
7 changes: 6 additions & 1 deletion app/javascript/controllers/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Application } from '@hotwired/stimulus'
import Reveal from 'stimulus-reveal-controller'
import Reveal from '@stimulus-components/reveal'

const application = Application.start()

application.register('reveal', Reveal)

application.debug = true
window.Stimulus = application
export { application }
9 changes: 6 additions & 3 deletions app/views/pages/_card.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
a href=card.path
.hf-card-container
= image_tag(card.thumbnail.url, class: 'full-width-image', alt: card.thumbnail.description, title: card.thumbnail.title)
.hf-card-details
h3.govuk-heading-m=card&.title
p.govuk-body=card&.meta_description || card&.hero_description

.hf-card-details
h3.govuk-heading-m
= card.title
p.govuk-body
= card.meta_description || card.hero_description
70 changes: 0 additions & 70 deletions babel.config.js

This file was deleted.

1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#
#
---
version: '3.8'
services:
app:
container_name: reform_prod
Expand Down
Loading

0 comments on commit 9040a6d

Please sign in to comment.