aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/Mageia/template/en/default/hook
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@netscape.net>2016-02-24 00:43:00 +0100
committerFrédéric Buclin <LpSolit@netscape.net>2016-02-24 00:43:00 +0100
commit9f4329cfd4ccf1e3030e131299a028df4a6c30df (patch)
treedbf70060cd59dbe33685bb18e597ef0e23f7dca6 /extensions/Mageia/template/en/default/hook
parentbb909eae7218de25805d80a442c6c59e89760df9 (diff)
downloadbugs-9f4329cfd4ccf1e3030e131299a028df4a6c30df.tar
bugs-9f4329cfd4ccf1e3030e131299a028df4a6c30df.tar.gz
bugs-9f4329cfd4ccf1e3030e131299a028df4a6c30df.tar.bz2
bugs-9f4329cfd4ccf1e3030e131299a028df4a6c30df.tar.xz
bugs-9f4329cfd4ccf1e3030e131299a028df4a6c30df.zip
Import Mageia extension - version 5.0
Diffstat (limited to 'extensions/Mageia/template/en/default/hook')
-rw-r--r--extensions/Mageia/template/en/default/hook/README5
-rw-r--r--extensions/Mageia/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl23
-rw-r--r--extensions/Mageia/template/en/default/hook/global/header-start.html.tmpl10
-rw-r--r--extensions/Mageia/template/en/default/hook/global/variables-end.none.tmpl9
-rw-r--r--extensions/Mageia/template/en/default/hook/index-additional_links.html.tmpl14
5 files changed, 61 insertions, 0 deletions
diff --git a/extensions/Mageia/template/en/default/hook/README b/extensions/Mageia/template/en/default/hook/README
new file mode 100644
index 000000000..e6c4add58
--- /dev/null
+++ b/extensions/Mageia/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/extensions/Mageia/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl b/extensions/Mageia/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl
new file mode 100644
index 000000000..675af49f1
--- /dev/null
+++ b/extensions/Mageia/template/en/default/hook/account/auth/login-small-additional_methods.html.tmpl
@@ -0,0 +1,23 @@
+[%# 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 %]
+ [% UNLESS Param('createemailregexp') AND user.authorizer.user_can_create_account %]
+ <li id="new_account_container[% qs_suffix FILTER html %]">
+ <span class="separator">| </span>
+ <a href="https://identity.mageia.org/register">New&nbsp;Account</a>
+ </li>
+ [% END %]
+
+ [% UNLESS user.authorizer.can_change_password %]
+ <li id="forgot_container[% qs_suffix FILTER html %]">
+ <span class="separator">| </span>
+ <a href="https://identity.mageia.org/forgot_password">Forgot Password</a>
+ </li>
+ [% END %]
+[% END %]
diff --git a/extensions/Mageia/template/en/default/hook/global/header-start.html.tmpl b/extensions/Mageia/template/en/default/hook/global/header-start.html.tmpl
new file mode 100644
index 000000000..01fab7fab
--- /dev/null
+++ b/extensions/Mageia/template/en/default/hook/global/header-start.html.tmpl
@@ -0,0 +1,10 @@
+[%# 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.
+ #%]
+
+[% favicon_url = "https://www.mageia.org/g/favicon.png" %]
+[% style_urls.push("extensions/Mageia/web/style.css") %]
diff --git a/extensions/Mageia/template/en/default/hook/global/variables-end.none.tmpl b/extensions/Mageia/template/en/default/hook/global/variables-end.none.tmpl
new file mode 100644
index 000000000..4f651a5ae
--- /dev/null
+++ b/extensions/Mageia/template/en/default/hook/global/variables-end.none.tmpl
@@ -0,0 +1,9 @@
+[%# 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.
+ #%]
+
+[% terms.Bugzilla = "Mageia Bugzilla" %]
diff --git a/extensions/Mageia/template/en/default/hook/index-additional_links.html.tmpl b/extensions/Mageia/template/en/default/hook/index-additional_links.html.tmpl
new file mode 100644
index 000000000..3c2585887
--- /dev/null
+++ b/extensions/Mageia/template/en/default/hook/index-additional_links.html.tmpl
@@ -0,0 +1,14 @@
+[%# 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 id="create_account">
+ Don't have an account on [% terms.Bugzilla %]?
+ <a href="https://identity.mageia.org/register">Create one</a>.
+ </p>
+[% END %]