summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-12-14 00:15:24 +0100
committerByron Jones <bjones@mozilla.com>2012-12-14 00:15:24 +0100
commit51541b9d82089f1beb1e2dbe2c4bf42041d62759 (patch)
tree8a4bcdffab24a002bea89d06e894c5c922064192 /extensions
parent2a17ed5b4269a7e42d46f18b204fef8e7fbd9346 (diff)
downloadbugzilla-51541b9d82089f1beb1e2dbe2c4bf42041d62759.tar.gz
bugzilla-51541b9d82089f1beb1e2dbe2c4bf42041d62759.tar.xz
Bug 819508: Add OpenGraph support
Diffstat (limited to 'extensions')
-rw-r--r--extensions/OpenGraph/Config.pm16
-rw-r--r--extensions/OpenGraph/Extension.pm16
-rw-r--r--extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl13
-rw-r--r--extensions/OpenGraph/web/bugzilla.pngbin0 -> 17036 bytes
4 files changed, 45 insertions, 0 deletions
diff --git a/extensions/OpenGraph/Config.pm b/extensions/OpenGraph/Config.pm
new file mode 100644
index 000000000..9204db234
--- /dev/null
+++ b/extensions/OpenGraph/Config.pm
@@ -0,0 +1,16 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::OpenGraph;
+
+use strict;
+
+use constant NAME => 'OpenGraph';
+use constant REQUIRED_MODULES => [ ];
+use constant OPTIONAL_MODULES => [ ];
+
+__PACKAGE__->NAME;
diff --git a/extensions/OpenGraph/Extension.pm b/extensions/OpenGraph/Extension.pm
new file mode 100644
index 000000000..f278a8958
--- /dev/null
+++ b/extensions/OpenGraph/Extension.pm
@@ -0,0 +1,16 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This Source Code Form is "Incompatible With Secondary Licenses", as
+# defined by the Mozilla Public License, v. 2.0.
+
+package Bugzilla::Extension::OpenGraph;
+
+use strict;
+
+use base qw(Bugzilla::Extension);
+
+our $VERSION = '1';
+
+__PACKAGE__->NAME;
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
new file mode 100644
index 000000000..8503343df
--- /dev/null
+++ b/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl
@@ -0,0 +1,13 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[% USE Bugzilla %]
+<meta property="og:type" content="website">
+<meta property="og:image" content="[% urlbase FILTER none %]extensions/OpenGraph/web/bugzilla.png">
+<meta property="og:title" content="[% title FILTER html %]">
+<meta property="og:url" content="[% Bugzilla.cgi.self_url FILTER none %]">
diff --git a/extensions/OpenGraph/web/bugzilla.png b/extensions/OpenGraph/web/bugzilla.png
new file mode 100644
index 000000000..55ee01210
--- /dev/null
+++ b/extensions/OpenGraph/web/bugzilla.png
Binary files differ