]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1451960 - Improve opengraph metadata for access-denied bugs
authorGijs <gijskruitbosch@gmail.com>
Wed, 11 Apr 2018 17:17:23 +0000 (18:17 +0100)
committerDylan William Hardison <dylan@hardison.net>
Wed, 11 Apr 2018 17:17:23 +0000 (13:17 -0400)
extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl
template/en/default/index.html.tmpl

index 2d7c3379f053a13522cf6c3518d00bcf530ef2c5..dc0dc1ad9b24724410ae551333f1200ad109fc3d 100644 (file)
@@ -13,6 +13,9 @@
 [% 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">
+[% ELSIF error_message %]
+<meta property="og:description" content="[% error_message FILTER txt %]">
+[% END %]
+[% IF og_image %]
+<meta property="og:image" content="[% urlbase FILTER none %][% og_image FILTER html %]">
 [% END %]
index 97659e6a85895e27b9a897a38af5b4333158bfce..e63bf0e87aa52a50f63f3d203bfc67775fb4190e 100644 (file)
@@ -30,6 +30,7 @@
    header = "Main Page" 
    style_urls = [ 'skins/standard/index.css' ]
    no_yui = 1
+   og_image = "extensions/OpenGraph/web/moz-social-bw-rgb-1200x1200.png"
 %]
 
 <div id="page-index">