Browse Source

refactor

pull/136/head
Kat 4 years ago
parent
commit
93e9f19839
  1. 2
      app/views/case_logs/edit.html.erb
  2. 2
      app/views/case_logs/index.html.erb
  3. 2
      app/views/devise/sessions/new.html.erb
  4. 2
      app/views/form/check_answers.html.erb
  5. 2
      app/views/form/page.html.erb
  6. 2
      app/views/layouts/application.html.erb
  7. 2
      app/views/organisations/show.html.erb
  8. 2
      app/views/organisations/users.html.erb
  9. 2
      app/views/users/show.html.erb

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

@ -1,4 +1,4 @@
<% content_for :title, browser_title("Case log #{@case_log.id}") %>
<% content_for :title, "Case log #{@case_log.id}" %>
<%= turbo_frame_tag "case_log_form", target: "_top" do %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds-from-desktop">

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

@ -1,4 +1,4 @@
<% content_for :title, browser_title("Case logs") %>
<% content_for :title, "Case logs" %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<h1 class="govuk-heading-l">Your logs</h1>

2
app/views/devise/sessions/new.html.erb

@ -1,4 +1,4 @@
<% content_for :title, browser_title("Sign in") %>
<% content_for :title, "Sign in" %>
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">

2
app/views/form/check_answers.html.erb

@ -1,4 +1,4 @@
<% content_for :title, browser_title("Check answers") %>
<% content_for :title, "Check answers" %>
<%= turbo_frame_tag "case_log_form", target: "_top" do %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-three-quarters-from-desktop">

2
app/views/form/page.html.erb

@ -1,4 +1,4 @@
<% content_for :title, browser_title(subsection) %>
<% content_for :title, subsection %>
<% content_for :before_content do %>
<%= govuk_back_link(

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

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en" class="govuk-template">
<head>
<title><%= yield(:title).present? ? yield(:title) : t('service_name') %></title>
<title><%= yield(:title).present? ? browser_title(yield(:title)) : t('service_name') %></title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= tag :meta, name: 'viewport', content: 'width=device-width, initial-scale=1' %>

2
app/views/organisations/show.html.erb

@ -1,4 +1,4 @@
<% content_for :title, browser_title("Your organisation (Details)") %>
<% content_for :title, "Your organisation (Details)" %>
<% content_for :tab_title do %>
<%= "Details" %>
<% end %>

2
app/views/organisations/users.html.erb

@ -1,4 +1,4 @@
<% content_for :title, browser_title("Your organisation (Users)") %>
<% content_for :title, "Your organisation (Users)" %>
<% content_for :tab_title do %>
<%= "Users" %>
<% end %>

2
app/views/users/show.html.erb

@ -1,4 +1,4 @@
<% content_for :title, browser_title("Your account") %>
<% content_for :title, "Your account" %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">

Loading…
Cancel
Save