Browse Source

Remove ‘your’ when mentioning logs

pull/355/head
Paul Robert Lloyd 3 years ago
parent
commit
461eb0fe42
  1. 2
      app/views/case_logs/index.html.erb
  2. 2
      app/views/layouts/application.html.erb
  3. 4
      config/forms/2021_2022.json
  4. 4
      spec/features/start_page_spec.rb
  5. 2
      spec/fixtures/forms/2021_2022.json
  6. 2
      spec/fixtures/forms/2022_2023.json

2
app/views/case_logs/index.html.erb

@ -1,4 +1,4 @@
<% content_for :title, "Your logs" %> <% content_for :title, "Logs" %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds-from-desktop"> <div class="govuk-grid-column-two-thirds-from-desktop">

2
app/views/layouts/application.html.erb

@ -43,7 +43,7 @@
if current_user.nil? if current_user.nil?
component.navigation_item(text: 'Sign in', href: user_session_path) component.navigation_item(text: 'Sign in', href: user_session_path)
elsif elsif
component.navigation_item(text: 'Your logs', href: case_logs_path) component.navigation_item(text: 'Logs', href: case_logs_path)
component.navigation_item(text: 'Your organisation', href: "/organisations/#{current_user.organisation.id}") component.navigation_item(text: 'Your organisation', href: "/organisations/#{current_user.organisation.id}")
component.navigation_item(text: 'Your account', href: user_path(current_user)) component.navigation_item(text: 'Your account', href: user_path(current_user))
component.navigation_item(text: 'Sign out', href: destroy_user_session_path, options: { data: {turbo_method: :delete}, method: :delete }) component.navigation_item(text: 'Sign out', href: destroy_user_session_path, options: { data: {turbo_method: :delete}, method: :delete })

4
config/forms/2021_2022.json

@ -7,7 +7,7 @@
"label": "Before you start", "label": "Before you start",
"subsections": { "subsections": {
"setup": { "setup": {
"label": "Set up your lettings log", "label": "Set up this lettings log",
"pages": { "pages": {
"organisation_details": { "organisation_details": {
"header": "Organisation details", "header": "Organisation details",
@ -5640,7 +5640,7 @@
"questions": { "questions": {
"declaration": { "declaration": {
"check_answer_label": "", "check_answer_label": "",
"header": "Submit your lettings log ", "header": "Submit this lettings log ",
"hint_text": "", "hint_text": "",
"type": "checkbox", "type": "checkbox",
"answer_options": { "answer_options": {

4
spec/features/start_page_spec.rb

@ -10,14 +10,14 @@ RSpec.describe "Start Page Features" do
sign_in user sign_in user
end end
it "takes you to your logs" do it "takes you to logs" do
visit("/") visit("/")
expect(page).to have_current_path("/logs") expect(page).to have_current_path("/logs")
end end
end end
context "when the user is not signed in" do context "when the user is not signed in" do
it "takes you to sign in and then to your logs" do it "takes you to sign in and then to logs" do
visit("/") visit("/")
click_link("Start now") click_link("Start now")
expect(page).to have_current_path("/users/sign-in?start=true") expect(page).to have_current_path("/users/sign-in?start=true")

2
spec/fixtures/forms/2021_2022.json vendored

@ -814,7 +814,7 @@
"questions": { "questions": {
"declaration": { "declaration": {
"check_answer_label": "", "check_answer_label": "",
"header": "Submit your lettings log ", "header": "Submit this lettings log ",
"type": "checkbox", "type": "checkbox",
"answer_options": { "answer_options": {
"declaration": { "declaration": {

2
spec/fixtures/forms/2022_2023.json vendored

@ -7,7 +7,7 @@
"label": "Before you start", "label": "Before you start",
"subsections": { "subsections": {
"setup": { "setup": {
"label": "Set up your lettings log", "label": "Set up this lettings log",
"pages": { "pages": {
"renewal": { "renewal": {
"header": "", "header": "",

Loading…
Cancel
Save