Enhance Room OpenGraph Metadata (#1601)

This commit is contained in:
Moritz Schlarb 2020-06-29 21:58:33 +02:00 committed by GitHub
parent 2e4010aed8
commit 3b007c233a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -14,7 +14,7 @@
%>
<!DOCTYPE html>
<html>
<html prefix="og: http://ogp.me/ns#">
<head>
<% if Rails.configuration.google_analytics %>
<!-- Global site tag (gtag.js) - Google Analytics -->
@ -28,8 +28,9 @@
</script>
<% end %>
<title><%= t("bigbluebutton") %></title>
<meta property="og:title" content="<%= t("bigbluebutton", locale: :en) %>" />
<title><%= (yield(:page_title) + " - ") if content_for?(:page_title) + t("bigbluebutton") %></title>
<meta property="og:title" content="<%= (yield(:page_title) + " - ") if content_for?(:page_title) + t("bigbluebutton", locale: :en) %>" />
<meta property="og:type" content="website" />
<meta property="og:description" content="<%= t("landing.about", href: "Greenlight", locale: :en) %>" />
<meta property="og:url" content="<%= request.base_url %>" />

View File

@ -13,6 +13,8 @@
# with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
%>
<% content_for :page_title do %><%= @room.name %><% end %>
<div class="background pb-9" room="<%= @room.uid %>" user="<%= current_user ? current_user.uid : "anonymous" %>" join-name="<%= @join_name %>">
<div class="container">
<div class="row pt-9">

View File

@ -13,6 +13,8 @@
# with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
%>
<% content_for :page_title do %><%= @room.name %><% end %>
<% exceeds_limit = current_room_exceeds_limit(@room)%>
<% if exceeds_limit%>
<div class="alert alert-danger alert-dismissible text-center mb-0">