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
ff9b4b0d
Commit
ff9b4b0d
authored
Apr 20, 2012
by
Frank Becker
Committed by
Dave Lawrence
Apr 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 675502 - show_bug.cgi ctype=xml should include some more comment information
r=dkl, a=LpSolit
parent
b4442247
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
14 deletions
+25
-14
show.xml.tmpl
template/en/default/bug/show.xml.tmpl
+21
-13
bugzilla.dtd.tmpl
template/en/default/pages/bugzilla.dtd.tmpl
+4
-1
No files found.
template/en/default/bug/show.xml.tmpl
View file @
ff9b4b0d
...
...
@@ -53,20 +53,11 @@
[% PROCESS section_flags obj => bug %]
[% IF displayfields.long_desc %]
[% sort_order = user.settings.comment_sort_order.value %]
<comment_sort_order>[% sort_order FILTER xml %]</comment_sort_order>
[% FOREACH c = bug.comments %]
[% NEXT IF c.is_private && !user.is_insider %]
<long_desc isprivate="[% c.is_private FILTER xml %]">
<commentid>[% c.id FILTER xml %]</commentid>
[% IF c.is_about_attachment %]
<attachid>[% c.extra_data FILTER xml %]</attachid>
[% END %]
<who name="[% c.author.name FILTER xml %]">[% c.author.email FILTER email FILTER xml %]</who>
<bug_when>[% c.creation_ts FILTER time("%Y-%m-%d %T %z") FILTER xml %]</bug_when>
[% IF user.is_timetracker && (c.work_time - 0 != 0) %]
<work_time>[% PROCESS formattimeunit time_unit = c.work_time FILTER xml %]</work_time>
[% END %]
<thetext>[% c.body_full FILTER xml %]</thetext>
</long_desc>
[% PROCESS a_comment %]
[% END %]
[% END %]
...
...
@@ -150,3 +141,20 @@
/>
[% END %]
[% END %]
[% BLOCK a_comment %]
[% RETURN IF c.is_private && !user.is_insider %]
<long_desc isprivate="[% c.is_private FILTER xml %]" >
<commentid>[% c.id FILTER xml %]</commentid>
<comment_count>[% c.count FILTER xml %]</comment_count>
[% IF c.is_about_attachment %]
<attachid>[% c.extra_data FILTER xml %]</attachid>
[% END %]
<who name="[% c.author.name FILTER xml %]">[% c.author.email FILTER email FILTER xml %]</who>
<bug_when>[% c.creation_ts FILTER time("%Y-%m-%d %T %z") FILTER xml %]</bug_when>
[% IF user.is_timetracker && (c.work_time - 0 != 0) %]
<work_time>[% PROCESS formattimeunit time_unit = c.work_time FILTER xml %]</work_time>
[% END %]
<thetext>[% c.body_full FILTER xml %]</thetext>
</long_desc>
[% END %]
template/en/default/pages/bugzilla.dtd.tmpl
View file @
ff9b4b0d
...
...
@@ -56,6 +56,7 @@
token?,
group*,
flag*,
comment_sort_order*,
long_desc*,
attachment*)?)>
<!ATTLIST [% "bug" %]
...
...
@@ -116,11 +117,13 @@
[% FOREACH field = Bugzilla.active_custom_fields %]
<!ELEMENT [% field.name FILTER xml %] (#PCDATA)>
[% END %]
<!ELEMENT long_desc (commentid, attachid?, who, bug_when, work_time?, thetext)>
<!ELEMENT comment_sort_order (#PCDATA)>
<!ELEMENT long_desc (commentid, comment_count, attachid?, who, bug_when, work_time?, thetext)>
<!ATTLIST long_desc
isprivate (0|1) #REQUIRED
>
<!ELEMENT commentid (#PCDATA)>
<!ELEMENT comment_count (#PCDATA)>
<!ELEMENT who (#PCDATA)>
<!ATTLIST who
name CDATA #REQUIRED
...
...
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