Browse Source

Titles prefixed with error

pull/145/head
Matthew Phelan 3 years ago
parent
commit
8095b65497
  1. 4
      app/views/layouts/application.html.erb
  2. 2
      db/schema.rb

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

@ -1,7 +1,11 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" class="govuk-template"> <html lang="en" class="govuk-template">
<head> <head>
<% if @case_log.errors.present? %>
<title><%= browser_title("Error: #{yield(:title)}") %></title>
<% elsif %>
<title><%= browser_title(yield(:title)) %></title> <title><%= browser_title(yield(:title)) %></title>
<% end %>
<%= csrf_meta_tags %> <%= csrf_meta_tags %>
<%= csp_meta_tag %> <%= csp_meta_tag %>
<%= tag :meta, name: 'viewport', content: 'width=device-width, initial-scale=1' %> <%= tag :meta, name: 'viewport', content: 'width=device-width, initial-scale=1' %>

2
db/schema.rb

@ -163,9 +163,9 @@ ActiveRecord::Schema.define(version: 2021_12_02_124802) do
t.string "why_dont_you_know_la" t.string "why_dont_you_know_la"
t.integer "unitletas" t.integer "unitletas"
t.integer "builtype" t.integer "builtype"
t.datetime "property_void_date"
t.bigint "owning_organisation_id" t.bigint "owning_organisation_id"
t.bigint "managing_organisation_id" t.bigint "managing_organisation_id"
t.datetime "property_void_date"
t.integer "renttype" t.integer "renttype"
t.integer "needstype" t.integer "needstype"
t.integer "lettype" t.integer "lettype"

Loading…
Cancel
Save