UX: Add title suffix to shared AI pages (#531)

This commit is contained in:
David Taylor 2024-03-15 10:31:58 +00:00 committed by GitHub
parent 8b0e9984cf
commit dfc13fc631
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -1,13 +1,13 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title><%= @shared_conversation.title %></title> <title><%= I18n.t("discourse_ai.share_ai.title", title: @shared_conversation.title, site_name: SiteSetting.title) %></title>
<meta property="og:title" content="<%= @shared_conversation.title %>"> <meta property="og:title" content="<%= I18n.t("discourse_ai.share_ai.title", title: @shared_conversation.title, site_name: SiteSetting.title) %>">
<meta property="og:description" content="<%= @shared_conversation.formatted_excerpt %>"> <meta property="og:description" content="<%= @shared_conversation.formatted_excerpt %>">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta property="og:url" content="<%= request.original_url %>"> <meta property="og:url" content="<%= request.original_url %>">
<meta name="twitter:card" content="summary"> <meta name="twitter:card" content="summary">
<meta name="twitter:title" content="<%= @shared_conversation.title %>"> <meta name="twitter:title" content="<%= I18n.t("discourse_ai.share_ai.title", title: @shared_conversation.title, site_name: SiteSetting.title) %>">
<meta name="twitter:description" content="<%= @shared_conversation.formatted_excerpt %>"> <meta name="twitter:description" content="<%= @shared_conversation.formatted_excerpt %>">
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="<%= ::UrlHelper.local_cdn_url("/plugins/discourse-ai/ai-share/share.css") %>"> <link rel="stylesheet" href="<%= ::UrlHelper.local_cdn_url("/plugins/discourse-ai/ai-share/share.css") %>">

View File

@ -159,6 +159,7 @@ en:
read_more: "Read full transcript" read_more: "Read full transcript"
onebox_title: "AI Conversation with %{llm_name}" onebox_title: "AI Conversation with %{llm_name}"
formatted_excerpt: "AI Conversation with %{llm_name}:\n %{excerpt}" formatted_excerpt: "AI Conversation with %{llm_name}:\n %{excerpt}"
title: "%{title} - AI Conversation - %{site_name}"
errors: errors:
not_allowed: "You are not allowed to share this topic" not_allowed: "You are not allowed to share this topic"
other_people_in_pm: "Personal messages with other humans cannot be shared publicly" other_people_in_pm: "Personal messages with other humans cannot be shared publicly"