From 549bd6b0e3fa182d3eff47e67d4f1ab2729dd21d Mon Sep 17 00:00:00 2001 From: Dexter Morgan Date: Thu, 21 Feb 2013 08:36:33 +0000 Subject: Add mageia extension, from Frederic Buclin --- template/en/default/global/banner.html.tmpl | 18 ++++++++++++++++++ template/en/default/hook/README | 5 +++++ .../en/default/hook/index-additional_links.html.tmpl | 13 +++++++++++++ template/en/default/mageia/README | 16 ++++++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 template/en/default/global/banner.html.tmpl create mode 100644 template/en/default/hook/README create mode 100644 template/en/default/hook/index-additional_links.html.tmpl create mode 100644 template/en/default/mageia/README (limited to 'template') diff --git a/template/en/default/global/banner.html.tmpl b/template/en/default/global/banner.html.tmpl new file mode 100644 index 0000000..d06f794 --- /dev/null +++ b/template/en/default/global/banner.html.tmpl @@ -0,0 +1,18 @@ +[%# 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. + #%] + + + +
diff --git a/template/en/default/hook/README b/template/en/default/hook/README new file mode 100644 index 0000000..e6c4add --- /dev/null +++ b/template/en/default/hook/README @@ -0,0 +1,5 @@ +Template hooks go in this directory. Template hooks are called in normal +Bugzilla templates like [% Hook.process('some-hook') %]. +More information about them can be found in the documentation of +Bugzilla::Extension. (Do "perldoc Bugzilla::Extension" from the main +Bugzilla directory to see that documentation.) \ No newline at end of file diff --git a/template/en/default/hook/index-additional_links.html.tmpl b/template/en/default/hook/index-additional_links.html.tmpl new file mode 100644 index 0000000..695cd1f --- /dev/null +++ b/template/en/default/hook/index-additional_links.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. + #%] + +[% UNLESS user.id %] +

+ Don't have an account on [% terms.Bugzilla %]? Click here to create one. +

+[% END %] \ No newline at end of file diff --git a/template/en/default/mageia/README b/template/en/default/mageia/README new file mode 100644 index 0000000..099d1a4 --- /dev/null +++ b/template/en/default/mageia/README @@ -0,0 +1,16 @@ +Normal templates go in this directory. You can load them in your +code like this: + +use Bugzilla::Error; +my $template = Bugzilla->template; +$template->process('mageia/some-template.html.tmpl') + or ThrowTemplateError($template->error()); + +That would be how to load a file called some-template.html.tmpl that +was in this directory. + +Note that you have to be careful that the full path of your template +never conflicts with a template that exists in Bugzilla or in +another extension, or your template might override that template. That's why +we created this directory called 'mageia' for you, so you +can put your templates in here to help avoid conflicts. \ No newline at end of file -- cgit v1.2.1