summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-03-18 14:31:50 +0100
committerlpsolit%gmail.com <>2008-03-18 14:31:50 +0100
commitd8b3cd09363fbd7387eccf2a78ca90dc2d053763 (patch)
tree28a6ec83ef00f9e88c75109edc7cadb1f271fdae /template/en/default/attachment
parent84c503892397b64020047cffe4fc32bae6bd8a85 (diff)
downloadbugzilla-d8b3cd09363fbd7387eccf2a78ca90dc2d053763.tar.gz
bugzilla-d8b3cd09363fbd7387eccf2a78ca90dc2d053763.tar.xz
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
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r--template/en/default/attachment/edit.html.tmpl23
-rw-r--r--template/en/default/attachment/show-multiple.html.tmpl4
2 files changed, 9 insertions, 18 deletions
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index 3796b5650..a2c60ac25 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -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 %]&amp;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>
diff --git a/template/en/default/attachment/show-multiple.html.tmpl b/template/en/default/attachment/show-multiple.html.tmpl
index 632a86271..36088c96c 100644
--- a/template/en/default/attachment/show-multiple.html.tmpl
+++ b/template/en/default/attachment/show-multiple.html.tmpl
@@ -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>