#2703: Number Comments
---------------------------+------------------------------------------------
Reporter: Schaatser | Owner: cboos
Type: enhancement | Status: new
Priority: normal | Milestone: 0.10
Component: ticket system | Version: 0.9.3
Severity: minor | Resolution:
Keywords: |
---------------------------+------------------------------------------------
Changes (by cboos):
* severity: normal => minor
* owner: jonas => cboos
* milestone: => 0.10
Comment:
I elaborated a bit on the above:
{{{
Index: htdocs/css/trac.css
===================================================================
--- htdocs/css/trac.css (revision 2873)
+++ htdocs/css/trac.css (working copy)
@@ -42,6 +42,19 @@
color: inherit;
}
+/* Heading anchors */
+.anchor:link, .anchor:visited {
+ border: none;
+ color: #d7d7d7;
+ font-size: .8em;
+ vertical-align: text-top;
+ visibility: hidden;
+}
+h1:hover .anchor, h2:hover .anchor, h3:hover .anchor,
+h4:hover .anchor, h5:hover .anchor, h6:hover .anchor {
+ visibility: visible;
+}
+
@media screen {
a.ext-link .icon {
background: url(../extlink.gif) left center no-repeat;
Index: htdocs/css/wiki.css
===================================================================
--- htdocs/css/wiki.css (revision 2873)
+++ htdocs/css/wiki.css (working copy)
@@ -22,19 +22,6 @@
#overview .ipnr { color: #999; font-size: 80% }
#overview .comment { padding: 1em 0 0 }
-/* Heading anchors */
-.anchor:link, .anchor:visited {
- border: none;
- color: #d7d7d7;
- font-size: .8em;
- vertical-align: text-top;
- visibility: hidden;
-}
-h1:hover .anchor, h2:hover .anchor, h3:hover .anchor,
-h4:hover .anchor, h5:hover .anchor, h6:hover .anchor {
- visibility: visible;
-}
-
/* Styles for the page history table
(extends the styles for "table.listing") */
#wikihist td { padding: 0 .5em }
Index: templates/ticket.cs
===================================================================
--- templates/ticket.cs (revision 2873)
+++ templates/ticket.cs (working copy)
@@ -101,7 +101,10 @@
<div id="changelog"><?cs
each:change = ticket.changes ?>
<h3 id="change_<?cs var:name(change) ?>" class="change"><?cs
- var:change.date ?>: Modified by <?cs var:change.author ?></h3><?cs
+ var:change.date ?>: Modified by <?cs var:change.author ?>
+ <a href="#change_<?cs var:name(change) ?>" class="anchor"
+ title="Permalink to change comment:<?cs var:name(change) ?>">
+ ¶</a></h3><?cs
if:len(change.fields) ?>
<ul class="changes"><?cs
each:field = change.fields ?>
}}}
This matches the visual used for Wiki headings
(btw, what is the reason for adding those anchors
using JavaScript, instead of directly having it in
the template?)
The ''title'' also suggests the Wiki syntax I'd like
to use for refering to comments:
{{{
Your comment:0 above.
}}}
That link resolver will of course be able to refer
to comments of other tickets: `comment:ticket:234:0`.
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2703>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets