summaryrefslogtreecommitdiffstats
path: root/extensions/OpenGraph/template/en/default
diff options
context:
space:
mode:
authorIsrael Madueme <purelogiq@gmail.com>2018-03-29 23:36:38 +0200
committerDylan William Hardison <dylan@hardison.net>2018-03-29 23:36:38 +0200
commit69bbc12dbb685210d83e6d83d2967b156517cf7a (patch)
treeddd58a9c9b282f4e8c37fd1a0ed67cb1f8a2d509 /extensions/OpenGraph/template/en/default
parentf58deda411a1f9c260b293ecd58e37843c2debca (diff)
downloadbugzilla-69bbc12dbb685210d83e6d83d2967b156517cf7a.tar.gz
bugzilla-69bbc12dbb685210d83e6d83d2967b156517cf7a.tar.xz
Bug 1441897 - Improve opengraph metadata for bug pages
Diffstat (limited to 'extensions/OpenGraph/template/en/default')
-rw-r--r--extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl7
1 files changed, 6 insertions, 1 deletions
diff --git a/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl b/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl
index 9b8e0e0cc..2d7c3379f 100644
--- a/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl
+++ b/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl
@@ -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 %]