Bug 40933

Time anchors for comments, flag links


git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@296 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2009-08-25 18:05:37 +00:00
parent 0100a2e4e9
commit 26183de72f
4 changed files with 9 additions and 1 deletions

View File

@ -77,6 +77,7 @@ use constant DB_COLUMNS => qw(
flags.requestee_id
flags.setter_id
flags.status
flags.creation_date
);
use constant DB_TABLE => 'flags';

View File

@ -776,6 +776,12 @@ sub create {
$_[0];
},
timestamp =>
sub {
$_[0] =~ s/\D+//gso;
$_[0];
},
# We force filtering of every variable in key security-critical
# places; we have a none filter for people to use when they
# really, really don't want a variable to be changed.

View File

@ -181,6 +181,7 @@
[% END %]
<span class="bz_comment_number">
<a name="[% comment.time FILTER timestamp %]"></a>
<a name="c[% count %]"
href="show_bug.cgi?id=[% bug.bug_id %]#c[% count %]">
[%- comment_label FILTER html %]</a>

View File

@ -146,7 +146,7 @@
[% FOREACH flag = type.flags %]
<tr>
<td>
[% flag.setter.nick FILTER html %]:
<a href="#[% flag.creation_date FILTER timestamp %]">[% flag.setter.nick FILTER html %]</a>:
<label title="[% type.description FILTER html %]"
for="flag-[% flag.id %]">
[%- type.name FILTER html FILTER no_break -%]</label>