]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1441897 - Improve opengraph metadata for bug pages
authorIsrael Madueme <purelogiq@gmail.com>
Thu, 29 Mar 2018 21:36:38 +0000 (17:36 -0400)
committerDylan William Hardison <dylan@hardison.net>
Thu, 29 Mar 2018 21:36:38 +0000 (17:36 -0400)
extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl

index 9b8e0e0cc7d45e82cc0a004723bc959fbb39293b..2d7c3379f053a13522cf6c3518d00bcf530ef2c5 100644 (file)
@@ -8,6 +8,11 @@
 
 [% USE Bugzilla %]
 <meta property="og:type" content="website">
-<meta property="og:image" content="[% urlbase FILTER none %]extensions/OpenGraph/web/moz-social-bw-rgb-1200x1200.png">
 <meta property="og:title" content="[% title FILTER none %]">
 <meta property="og:url" content="[% Bugzilla.cgi.self_url FILTER html %]">
+[% IF bug %]
+<meta property="og:description"
+      content="[% bug.bug_status FILTER html %] ([% bug.assigned_to.login FILTER email FILTER html %]) in [% bug.product FILTER html %] - [% bug.component FILTER html %]. Last updated [% bug.delta_ts FILTER time('%Y-%m-%d') %].">
+[% ELSE %]
+<meta property="og:image" content="[% urlbase FILTER none %]extensions/OpenGraph/web/moz-social-bw-rgb-1200x1200.png">
+[% END %]