Skip to content

Commit

Permalink
Added page-specific titles
Browse files Browse the repository at this point in the history
  • Loading branch information
sdflem committed Oct 9, 2018
1 parent 300b2df commit 923b482
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Wapp</title>
<title><%= yield(:title) %></title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
Expand Down
1 change: 1 addition & 0 deletions app/views/multiple_choice_questions/ask.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<% provide(:title, 'Answer This Question') %>

<main role="main" class="container">

Expand Down
1 change: 1 addition & 0 deletions app/views/multiple_choice_questions/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<% provide(:title, 'Edit Multiple Choice Question') %>

<main role="main" class="container">

Expand Down
1 change: 1 addition & 0 deletions app/views/multiple_choice_questions/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<% provide(:title, 'Multiple Choice Questions') %>

<main role="main" class="container">

Expand Down
1 change: 1 addition & 0 deletions app/views/multiple_choice_questions/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<% provide(:title, 'New Multiple Choice Question') %>

<main role="main" class="container">

Expand Down
1 change: 1 addition & 0 deletions app/views/multiple_choice_questions/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<% provide(:title, 'Show Multiple Choice Question') %>

<main role="main" class="container">

Expand Down
1 change: 1 addition & 0 deletions app/views/pages/about.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<% provide(:title, 'About') %>

<main role="main" class="container">

Expand Down
2 changes: 2 additions & 0 deletions app/views/pages/home.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<% provide(:title, 'Wapp') %>

<main role="main" class="container">

<h1>Welcome to Wapp, the Quizzing App!</h1>
Expand Down
2 changes: 2 additions & 0 deletions app/views/pages/sdflming.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<% provide(:title, 'Scott Fleming') %>

<h1>Scott Fleming</h1>

<p>
Expand Down

0 comments on commit 923b482

Please sign in to comment.