From 9d17c1d8382ab2518d9d1606c9f228c1011028dd Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Fri, 18 Aug 2023 19:36:24 +0100 Subject: [PATCH] Make title a link --- app/assets/stylesheets/main.css | 4 ++++ app/controllers/users_controller.rb | 3 +-- app/views/layouts/application.html.erb | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/main.css b/app/assets/stylesheets/main.css index b8902aa..c0b2665 100644 --- a/app/assets/stylesheets/main.css +++ b/app/assets/stylesheets/main.css @@ -70,6 +70,10 @@ a:hover { text-decoration: none; } + +a:link:has(h1), a:visited:has(h1) { + text-decoration: none; +} main { padding: 1em; } diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index bf6900f..5201e3c 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -33,8 +33,7 @@ class UsersController < ApplicationController end end - def show - end + def show; end private diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index bd975fd..52bf50e 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -12,7 +12,9 @@
-

Summon Player

+ <%= link_to root_path do %> +

Summon Player

+ <% end %>