[Trac-tickets] Re: [The Trac Project] #267: Make external
references visually distinct
The Trac Project
noreply at edgewall.com
Fri Nov 5 12:19:40 EST 2004
#267: Make external references visually distinct
-------------------------+--------------------------------------------------
Id: 267 | Status: new
Component: wiki | Modified: Fri Nov 5 12:19:40 2004
Severity: enhancement | Milestone: 0.9
Priority: low | Version: 0.6.1
Owner: jonas | Reporter: daniel
-------------------------+--------------------------------------------------
Changes (by cboos at bct-technology.com):
* priority: lowest => low
Comment:
... the relevant part being:
{{{
#!text/x-diff
=== htdocs/css/trac.css
==================================================================
--- htdocs/css/trac.css (revision 1030)
+++ htdocs/css/trac.css (local)
@@ -240,6 +240,8 @@
a.missing:link,a.missing:visited { background: #fafaf0; color: #998 }
a.missing:hover { color: #000; }
+a.external:link,a.external:visited { color: #00b }
+
#content.wiki { line-height: 140% }
.wikitoolbar {
border: solid #d7d7d7;
=== trac/WikiFormatter.py
==================================================================
--- trac/WikiFormatter.py (revision 1049)
+++ trac/WikiFormatter.py (local)
@@ -304,7 +304,7 @@
return '<a href="%s">%s</a>' % (self._href.wiki(match),
match)
def _url_formatter(self, match, fullmatch):
- return '<a href="%s">%s</a>' % (match, match)
+ return '<a class="external" href="%s">%s</a>' % (match, match)
def _fancylink_formatter(self, match, fullmatch):
link = fullmatch.group('fancyurl')
@@ -319,7 +319,7 @@
elif module_link:
return '<a href="%s">%s</a>' % (module_link, name)
else:
- return '<a href="%s">%s</a>' % (link, name)
+ return '<a class="external" href="%s">%s</a>' % (link, name)
def _intertrac_link(self, intertrac):
href = self.env.get_config('intertrac', intertrac.upper() +
'.href')
}}}
--
Ticket URL: <http://projects2.edgewall.com/trac/ticket/267>
The Trac Project <>
More information about the Trac-Tickets
mailing list