mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Change page title based on current page (#269)
This commit is contained in:
committed by
GitHub
parent
a7d67652bf
commit
fadd577db8
7
app/views/layouts/_page_title.html.erb
Normal file
7
app/views/layouts/_page_title.html.erb
Normal file
@@ -0,0 +1,7 @@
|
||||
<%= @page_title %>
|
||||
<% if @tenant %>
|
||||
<% if @page_title %>
|
||||
<%= " | " %>
|
||||
<% end %>
|
||||
<%= @tenant.site_name %>
|
||||
<% end %>
|
||||
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= @tenant ? @tenant.site_name : @page_title %></title>
|
||||
<title><%= render 'layouts/page_title' %></title>
|
||||
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
|
||||
Reference in New Issue
Block a user