Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
f89fdca1
Commit
f89fdca1
authored
Jan 24, 2007
by
reed%reedloden.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 367679 - "Usability changes to new attachment table" [p=reed r=LpSolit a=LpSolit]
parent
c751a9d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
list.html.tmpl
template/en/default/attachment/list.html.tmpl
+10
-8
filterexceptions.pl
template/en/default/filterexceptions.pl
+1
-0
No files found.
template/en/default/attachment/list.html.tmpl
View file @
f89fdca1
...
...
@@ -59,12 +59,14 @@
</tr>
[% count = 0 %]
[%
has_
obsolete_attachments = 0 %]
[% obsolete_attachments = 0 %]
[% FOREACH attachment = attachments %]
[% count = count + 1 %]
[% IF !attachment.isprivate || user.is_insider || attachment.attacher.id == user.id %]
[% SET has_obsolete_attachments = 1 IF attachment.isobsolete %]
[% IF attachment.isobsolete %]
[% obsolete_attachments = obsolete_attachments + 1 %]
[% END %]
<tr class="[% "bz_private" IF attachment.isprivate %][%-%]
[%+ "bz_tr_obsolete" IF attachment.isobsolete %]">
<td valign="top">
...
...
@@ -72,16 +74,16 @@
<a name="a[% count %]" href="attachment.cgi?id=[% attachment.id %]"
title="View the content of the attachment">
[% END %]
[% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %]
<b>[% attachment.description FILTER html FILTER obsolete(attachment.isobsolete) %]</b>
[% "</a>" IF attachment.datasize %]
<span class="bz_attach_extra_info">
[% IF attachment.datasize %]
([% attachment.datasize FILTER unitconvert %],
[% IF attachment.ispatch %]
<i>patch</i>
)
patch
)
[% ELSIF attachment.isurl %]
<i>url</i>
)
url
)
[% ELSE %]
[%+ attachment.contenttype FILTER html %])
[% END %]
...
...
@@ -104,7 +106,7 @@
[% IF show_attachment_flags %]
<td class="bz_attach_flags" valign="top">
[% IF attachment.flags.size == 0 %]
<i>no flag</i>
<i>no flag
s
</i>
[% ELSE %]
[% FOREACH flag = attachment.flags %]
[% flag.setter.nick FILTER html %]:
...
...
@@ -132,8 +134,8 @@
<td colspan="[% show_attachment_flags ? 3 : 2 %]">
[% IF attachments.size %]
<span class="bz_attach_view_hide">
[% IF
has_
obsolete_attachments %]
<a href="#a0" onClick="return toggle_display(this);">Hide Obsolete</a> |
[% IF obsolete_attachments %]
<a href="#a0" onClick="return toggle_display(this);">Hide Obsolete</a>
([% obsolete_attachments %])
|
[% END %]
<a href="attachment.cgi?bugid=[% bugid %]&action=viewall">View All</a>
</span>
...
...
template/en/default/filterexceptions.pl
View file @
f89fdca1
...
...
@@ -434,6 +434,7 @@
'attachment.id'
,
'flag.status'
,
'bugid'
,
'obsolete_attachments'
,
],
'attachment/show-multiple.html.tmpl'
=>
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment