Bug 365365: Fix various HTML and CSS validation errors when viewing attachments - Patch by Frédéric Buclin <LpSolit@gmail.com> r=justdave a=LpSolit
git-svn-id: svn://10.0.0.236/trunk@248053 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
fc5e6542f9
commit
3d6090dbdc
@ -334,6 +334,22 @@ dl dl > dt {
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
table.attachment_info th {
|
||||
text-align: right;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
table.attachment_info td {
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Text displayed when the attachment is not viewable by the web browser */
|
||||
#noview {
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* For bug fields */
|
||||
.uneditable_textarea {
|
||||
width: 30em;
|
||||
|
||||
@ -36,11 +36,6 @@
|
||||
header = header
|
||||
subheader = subheader
|
||||
doc_section = "attachments.html"
|
||||
style = "
|
||||
table.attachment_info th { text-align: right; vertical-align: top; }
|
||||
table.attachment_info td { text-align: left; vertical-align: top; }
|
||||
#noview { text-align: left; vertical-align: middle; }
|
||||
"
|
||||
%]
|
||||
|
||||
<script type="text/javascript">
|
||||
@ -253,6 +248,7 @@
|
||||
<label for="isprivate">private</label><br>
|
||||
[% END %]
|
||||
<br>
|
||||
</small>
|
||||
|
||||
[% IF flag_types.size > 0 %]
|
||||
[% PROCESS "flag/list.html.tmpl" bug_id = attachment.bug_id
|
||||
@ -260,8 +256,8 @@
|
||||
[% END %]
|
||||
|
||||
<div id="smallCommentFrame">
|
||||
<b><label for="comment">Comment</label> (on the
|
||||
[%+ terms.bug %]):</b><br>
|
||||
<b><small><label for="comment">Comment</label> (on the
|
||||
[%+ terms.bug %]):</small></b><br>
|
||||
[% INCLUDE global/textarea.html.tmpl
|
||||
id = 'comment'
|
||||
name = 'comment'
|
||||
@ -282,7 +278,6 @@
|
||||
&& attachment.datasize > 0 %]
|
||||
| <a href="attachment.cgi?id=[% attachment.id %]&action=delete">Delete</a>
|
||||
[% END %]
|
||||
</small>
|
||||
</td>
|
||||
|
||||
[% IF !attachment.datasize %]
|
||||
@ -317,15 +312,15 @@
|
||||
<!--
|
||||
if (typeof document.getElementById == "function") {
|
||||
[% IF patchviewerinstalled %]
|
||||
document.write('<iframe id="viewDiffFrame" style="height: 400px; width: 100%; display: none;"></iframe>');
|
||||
document.write('<iframe id="viewDiffFrame" style="height: 400px; width: 100%; display: none;"><\/iframe>');
|
||||
[% END %]
|
||||
document.write('<button type="button" id="editButton" onclick="editAsComment();">Edit Attachment As Comment</button>');
|
||||
document.write('<button type="button" id="undoEditButton" onclick="undoEditAsComment();" style="display: none;">Undo Edit As Comment</button>');
|
||||
document.write('<button type="button" id="redoEditButton" onclick="redoEditAsComment();" style="display: none;">Redo Edit As Comment</button>');
|
||||
document.write('<button type="button" id="editButton" onclick="editAsComment();">Edit Attachment As Comment<\/button>');
|
||||
document.write('<button type="button" id="undoEditButton" onclick="undoEditAsComment();" style="display: none;">Undo Edit As Comment<\/button>');
|
||||
document.write('<button type="button" id="redoEditButton" onclick="redoEditAsComment();" style="display: none;">Redo Edit As Comment<\/button>');
|
||||
[% IF patchviewerinstalled %]
|
||||
document.write('<button type="button" id="viewDiffButton" onclick="viewDiff();">View Attachment As Diff</button>');
|
||||
document.write('<button type="button" id="viewDiffButton" onclick="viewDiff();">View Attachment As Diff<\/button>');
|
||||
[% END %]
|
||||
document.write('<button type="button" id="viewRawButton" onclick="viewRaw();" style="display: none;">View Attachment As Raw</button>');
|
||||
document.write('<button type="button" id="viewRawButton" onclick="viewRaw();" style="display: none;">View Attachment As Raw<\/button>');
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
@ -31,10 +31,6 @@
|
||||
title = title
|
||||
header = header
|
||||
subheader = filtered_summary
|
||||
style = "
|
||||
table.attachment_info th { text-align: right; vertical-align: top; }
|
||||
table.attachment_info td { text-align: left; vertical-align: top; }
|
||||
"
|
||||
%]
|
||||
|
||||
<br>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user