Bug 46053
Configurable links from Bugzilla to Plantime / other system git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@106 6955db30-a419-402b-8a0d-67ecbb4d7f56custis
parent
8ac35e625a
commit
a21d4857da
|
@ -42,7 +42,7 @@ sub check_credentials {
|
|||
|
||||
my $username = $login_data->{username};
|
||||
my $user_id = login_to_id($username);
|
||||
|
||||
|
||||
return { failure => AUTH_NO_SUCH_USER } unless $user_id;
|
||||
|
||||
$login_data->{bz_username} = $username;
|
||||
|
|
|
@ -46,6 +46,12 @@ sub get_param_list
|
|||
type => 't',
|
||||
default => 'http://radey.office.custis.ru/rdwiki/index.php/',
|
||||
},
|
||||
|
||||
{
|
||||
name => 'user_mailto',
|
||||
type => 't',
|
||||
default => 'mailto:',
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<td>[% evt.bug_id %]</td><td>[% evt.product %]/[% evt.component %]</td><td>[% evt.bug_severity %]</td><td>[% evt.bug_status %]</td>
|
||||
</tr></table>
|
||||
[% END %]
|
||||
<div class="item-signature"><a href="mailto:[% evt.login_name %]">[% evt.realname FILTER html %]</a></div>
|
||||
<div class="item-signature"><a href="[% Param("user_mailto") %][% evt.login_name %]">[% evt.realname FILTER html %]</a></div>
|
||||
<pre>
|
||||
[% evt.thetext FILTER wrap_comment FILTER quoteUrls FILTER absolute_uris %]
|
||||
</pre>
|
||||
|
@ -39,7 +39,7 @@
|
|||
<td>[% evt.bug_id %]</td><td>[% evt.product %]/[% evt.component %]</td><td>[% evt.bug_severity %]</td><td>[% evt.bug_status %]</td>
|
||||
</tr></table>
|
||||
[% END %]
|
||||
<div class="item-signature"><a href="mailto:[% evt.login_name %]">[% evt.realname FILTER html %]</a></div>
|
||||
<div class="item-signature"><a href="[% Param("user_mailto") %][% evt.login_name %]">[% evt.realname FILTER html %]</a></div>
|
||||
<pre>
|
||||
[% evt.thetext FILTER wrap_comment FILTER quoteUrls FILTER absolute_uris %]
|
||||
</pre>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
account. <b>You will not be able to log in until you receive the email.</b>
|
||||
If it doesn't arrive within a reasonable amount of time, you may contact
|
||||
the maintainer of this [% terms.Bugzilla %] installation
|
||||
at <a href="mailto:[% Param("maintainer") %]">[% Param("maintainer") %]</a>.
|
||||
at <a href="[% Param("user_mailto") %][% Param("maintainer") %]">[% Param("maintainer") %]</a>.
|
||||
</p>
|
||||
|
||||
[% IF Param('createemailregexp') == '.*' && Param('emailsuffix') == '' %]
|
||||
|
|
|
@ -105,7 +105,7 @@ document.write('<input type="button" value="Disable All Mail" onclick="SetCheckb
|
|||
<td>
|
||||
You are watching all [% terms.bugs %]. To be removed from this role,
|
||||
contact
|
||||
<a href="mailto:[% Param("maintainer") %]">[% Param("maintainer") %]</a>.
|
||||
<a href="[% Param("user_mailto") %][% Param("maintainer") %]">[% Param("maintainer") %]</a>.
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
[% UNLESS has_settings_enabled %]
|
||||
<p class="criticalmessages">
|
||||
All user preferences have been disabled by the
|
||||
<a href="mailto:[% Param("maintainer") %]">maintainer</a>
|
||||
<a href="[% Param("user_mailto") %][% Param("maintainer") %]">maintainer</a>
|
||||
of this installation, and so you cannot customize any.
|
||||
</p>
|
||||
[% END %]
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
title="Go to the comment associated with the attachment">
|
||||
[%- attachment.attached FILTER time %]</a>,
|
||||
|
||||
<a href="mailto:[% attachment.attacher.email FILTER html %]"
|
||||
<a href="[% Param("user_mailto") %][% attachment.attacher.email FILTER html %]"
|
||||
title="Write an email to the creator of the attachment">
|
||||
[% attachment.attacher.name || attachment.attacher.login FILTER html %]
|
||||
</a>
|
||||
|
|
|
@ -167,7 +167,7 @@
|
|||
<a name="c[% count %]" href="show_bug.cgi?id=[% bug.bug_id %]#c[% count %]">
|
||||
[% comment_link FILTER html %]</a> From
|
||||
<span class="vcard">
|
||||
<a class="fn email" href="mailto:[% comment.author.email FILTER html %]">
|
||||
<a class="fn email" href="[% Param("user_mailto") %][% comment.author.email FILTER html %]">
|
||||
[% (comment.author.name || comment.author.login) FILTER html %]</a>
|
||||
</span>
|
||||
[% FOREACH group = comment.author.direct_group_membership %]
|
||||
|
|
|
@ -1177,12 +1177,12 @@
|
|||
<span class="vcard">
|
||||
[% FILTER collapse %]
|
||||
[% IF user.name %]
|
||||
<a class="email" href="mailto:[% user.email FILTER html %]"
|
||||
<a class="email" href="[% Param("user_mailto") %][% user.email FILTER html %]"
|
||||
title="[% user.email FILTER html %]"
|
||||
><span class="fn">[% user.name FILTER html %]</span
|
||||
></a>
|
||||
[% ELSE %]
|
||||
<a class="fn email" href="mailto:[% user.email FILTER html %]">
|
||||
<a class="fn email" href="[% Param("user_mailto") %][% user.email FILTER html %]">
|
||||
[% user.email FILTER html %]</a>
|
||||
[% END %]
|
||||
[% END %]</span>
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
[% END %]
|
||||
Please wait a day and try again.
|
||||
If you're seeing this message after a day, then you should contact
|
||||
<a href="mailto:[% Param('maintainer') %]">[% Param('maintainer') %]</a>
|
||||
<a href="[% Param("user_mailto") %][% Param('maintainer') %]">[% Param('maintainer') %]</a>
|
||||
and reference this error.
|
||||
|
||||
[% ELSIF error == "chart_datafile_corrupt" %]
|
||||
|
|
|
@ -196,7 +196,7 @@
|
|||
[% END %]
|
||||
|
||||
[% IF bugowners %]
|
||||
<a href="mailto:
|
||||
<a href="[% Param("user_mailto") %]
|
||||
[% bugowners FILTER html %]">Send Mail to [% terms.Bug %] Assignees</a> |
|
||||
[% END %]
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ doing the impersonating has the appropriate privileges.
|
|||
includes all administrators by default. Other users, and members of other
|
||||
groups, can be given access to this feature on a case-by-case basis. To
|
||||
request access, contact the maintainer of this installation:
|
||||
<a href="mailto:[% Param("maintainer") %]">
|
||||
<a href="[% Param("user_mailto") %][% Param("maintainer") %]">
|
||||
[%- Param("maintainer") %]</a>.
|
||||
</p>
|
||||
|
||||
|
|
|
@ -74,12 +74,12 @@
|
|||
<a name="[% comp.name FILTER html %]">[% comp.name FILTER html %]</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="mailto:[% comp.default_assignee.email FILTER html %]">
|
||||
<a href="[% Param("user_mailto") %][% comp.default_assignee.email FILTER html %]">
|
||||
[% comp.default_assignee.login FILTER html %]</a>
|
||||
</td>
|
||||
[% IF Param("useqacontact") %]
|
||||
<td>
|
||||
<a href="mailto:[% comp.default_qa_contact.email FILTER html %]">
|
||||
<a href="[% Param("user_mailto") %][% comp.default_qa_contact.email FILTER html %]">
|
||||
[% comp.default_qa_contact.login FILTER html %]</a>
|
||||
</td>
|
||||
[% END %]
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
<p>
|
||||
<b>Creator</b>:
|
||||
[% IF creator.email %]
|
||||
<a href="mailto:[% creator.email FILTER html %]">
|
||||
<a href="[% Param("user_mailto") %][% creator.email FILTER html %]">
|
||||
[% creator.email FILTER html %]</a>
|
||||
[% ELSE %]
|
||||
(automatically created by [% terms.Bugzilla %])
|
||||
|
|
Loading…
Reference in New Issue