diff options
author | Dexter Morgan <dmorgan@mageia.org> | 2013-02-21 08:36:33 +0000 |
---|---|---|
committer | Dexter Morgan <dmorgan@mageia.org> | 2013-02-21 08:36:33 +0000 |
commit | 549bd6b0e3fa182d3eff47e67d4f1ab2729dd21d (patch) | |
tree | 4d8248e158f2f38a3b78758caae40b93a750656e /template | |
download | bugzilla-549bd6b0e3fa182d3eff47e67d4f1ab2729dd21d.tar bugzilla-549bd6b0e3fa182d3eff47e67d4f1ab2729dd21d.tar.gz bugzilla-549bd6b0e3fa182d3eff47e67d4f1ab2729dd21d.tar.bz2 bugzilla-549bd6b0e3fa182d3eff47e67d4f1ab2729dd21d.tar.xz bugzilla-549bd6b0e3fa182d3eff47e67d4f1ab2729dd21d.zip |
Add mageia extension, from Frederic Buclin
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/global/banner.html.tmpl | 18 | ||||
-rw-r--r-- | template/en/default/hook/README | 5 | ||||
-rw-r--r-- | template/en/default/hook/index-additional_links.html.tmpl | 13 | ||||
-rw-r--r-- | template/en/default/mageia/README | 16 |
4 files changed, 52 insertions, 0 deletions
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. + #%] + +<script src="//nav.mageia.org/js/"></script> +<style> +body { margin: 0; padding-top: 0; background-color: #fff; } +div#wrap { background-color: #fff; } +#header, +#bugzilla-body { + margin: 0 1em 1em 1em; +} +</style> +<br> 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 %] + <p style="border: solid 1px; background-color: #ffd386; color: #9b1a1a; padding: 1em;"> + Don't have an account on [% terms.Bugzilla %]? Click <a href="http://identity.mageia.org/register">here</a> to create one. + </p> +[% 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 |