Commit d8b3cd09 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 365365: Fix various HTML and CSS validation errors when viewing attachments…

Bug 365365: Fix various HTML and CSS validation errors when viewing attachments - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=justdave a=LpSolit
parent 84c50389
...@@ -334,6 +334,22 @@ dl dl > dt { ...@@ -334,6 +334,22 @@ dl dl > dt {
padding-left: 1em; 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 */ /* For bug fields */
.uneditable_textarea { .uneditable_textarea {
width: 30em; width: 30em;
......
...@@ -36,11 +36,6 @@ ...@@ -36,11 +36,6 @@
header = header header = header
subheader = subheader subheader = subheader
doc_section = "attachments.html" 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"> <script type="text/javascript">
...@@ -253,6 +248,7 @@ ...@@ -253,6 +248,7 @@
<label for="isprivate">private</label><br> <label for="isprivate">private</label><br>
[% END %] [% END %]
<br> <br>
</small>
[% IF flag_types.size > 0 %] [% IF flag_types.size > 0 %]
[% PROCESS "flag/list.html.tmpl" bug_id = attachment.bug_id [% PROCESS "flag/list.html.tmpl" bug_id = attachment.bug_id
...@@ -260,8 +256,8 @@ ...@@ -260,8 +256,8 @@
[% END %] [% END %]
<div id="smallCommentFrame"> <div id="smallCommentFrame">
<b><label for="comment">Comment</label> (on the <b><small><label for="comment">Comment</label> (on the
[%+ terms.bug %]):</b><br> [%+ terms.bug %]):</small></b><br>
[% INCLUDE global/textarea.html.tmpl [% INCLUDE global/textarea.html.tmpl
id = 'comment' id = 'comment'
name = 'comment' name = 'comment'
...@@ -282,7 +278,6 @@ ...@@ -282,7 +278,6 @@
&& attachment.datasize > 0 %] && attachment.datasize > 0 %]
| <a href="attachment.cgi?id=[% attachment.id %]&amp;action=delete">Delete</a> | <a href="attachment.cgi?id=[% attachment.id %]&amp;action=delete">Delete</a>
[% END %] [% END %]
</small>
</td> </td>
[% IF !attachment.datasize %] [% IF !attachment.datasize %]
...@@ -317,15 +312,15 @@ ...@@ -317,15 +312,15 @@
<!-- <!--
if (typeof document.getElementById == "function") { if (typeof document.getElementById == "function") {
[% IF patchviewerinstalled %] [% 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 %] [% END %]
document.write('<button type="button" id="editButton" onclick="editAsComment();">Edit Attachment 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="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="redoEditButton" onclick="redoEditAsComment();" style="display: none;">Redo Edit As Comment<\/button>');
[% IF patchviewerinstalled %] [% 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 %] [% 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> </script>
......
...@@ -31,10 +31,6 @@ ...@@ -31,10 +31,6 @@
title = title title = title
header = header header = header
subheader = filtered_summary 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> <br>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment