From 3b007c233ae12e0407f216ae269c63d6179f73b8 Mon Sep 17 00:00:00 2001 From: Moritz Schlarb Date: Mon, 29 Jun 2020 21:58:33 +0200 Subject: [PATCH] Enhance Room OpenGraph Metadata (#1601) --- app/views/layouts/application.html.erb | 7 ++++--- app/views/rooms/components/_room_event.html.erb | 2 ++ app/views/rooms/show.html.erb | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 56266497..0e8419d0 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -14,7 +14,7 @@ %> - + <% if Rails.configuration.google_analytics %> @@ -28,8 +28,9 @@ <% end %> - <%= t("bigbluebutton") %> - " /> + <%= (yield(:page_title) + " - ") if content_for?(:page_title) + t("bigbluebutton") %> + + " /> " /> diff --git a/app/views/rooms/components/_room_event.html.erb b/app/views/rooms/components/_room_event.html.erb index bba7748c..4b97b6ed 100644 --- a/app/views/rooms/components/_room_event.html.erb +++ b/app/views/rooms/components/_room_event.html.erb @@ -13,6 +13,8 @@ # with BigBlueButton; if not, see . %> +<% content_for :page_title do %><%= @room.name %><% end %> +
" join-name="<%= @join_name %>">
diff --git a/app/views/rooms/show.html.erb b/app/views/rooms/show.html.erb index 2887b6f6..505c90e8 100644 --- a/app/views/rooms/show.html.erb +++ b/app/views/rooms/show.html.erb @@ -13,6 +13,8 @@ # with BigBlueButton; if not, see . %> +<% content_for :page_title do %><%= @room.name %><% end %> + <% exceeds_limit = current_room_exceeds_limit(@room)%> <% if exceeds_limit%>