#267 closed enhancement (fixed)
Make external references visually distinct
Reported by: | daniel | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | low | Milestone: | 0.8 |
Component: | wiki system | Version: | 0.6.1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Links referencing outside trac should be visually distinct, like i other wikis.
This should be done in CSS only.
Attachments (0)
Change History (8)
comment:1 by , 21 years ago
Summary: | Make external references visuall distinct → Make external references visually distinct |
---|
comment:2 by , 21 years ago
Milestone: | → 0.8 |
---|---|
Priority: | normal → lowest |
Severity: | normal → enhancement |
comment:3 by , 20 years ago
Milestone: | 0.8 → 0.9 |
---|
comment:5 by , 20 years ago
Priority: | lowest → low |
---|
… the relevant part being:
-
htdocs/css/trac.css
=== htdocs/css/trac.css ==================================================================
240 240 a.missing:link,a.missing:visited { background: #fafaf0; color: #998 } 241 241 a.missing:hover { color: #000; } 242 242 243 a.external:link,a.external:visited { color: #00b } 244 243 245 #content.wiki { line-height: 140% } 244 246 .wikitoolbar { 245 247 border: solid #d7d7d7; -
trac/WikiFormatter.py
=== trac/WikiFormatter.py ==================================================================
304 304 return '<a href="%s">%s</a>' % (self._href.wiki(match), match) 305 305 306 306 def _url_formatter(self, match, fullmatch): 307 return '<a href="%s">%s</a>' % (match, match)307 return '<a class="external" href="%s">%s</a>' % (match, match) 308 308 309 309 def _fancylink_formatter(self, match, fullmatch): 310 310 link = fullmatch.group('fancyurl') … … 319 319 elif module_link: 320 320 return '<a href="%s">%s</a>' % (module_link, name) 321 321 else: 322 return '<a href="%s">%s</a>' % (link, name)322 return '<a class="external" href="%s">%s</a>' % (link, name) 323 323 324 324 def _intertrac_link(self, intertrac): 325 325 href = self.env.get_config('intertrac', intertrac.upper() + '.href')
comment:6 by , 20 years ago
Description: | modified (diff) |
---|---|
Milestone: | 0.9 → 0.8 |
Resolution: | → fixed |
Status: | new → closed |
Daniel has implemented this in [1068].
comment:7 by , 20 years ago
Am I the only one who finds the new external link style a bit heavy-handed? Perhaps a simple color change would have sufficed (yes, I know I can customize to my heart's content, but still… :)
And, if definitely using an icon, wouldn't be better to have it *after* the link, à la MediaWiki?
comment:8 by , 20 years ago
I like the new style, and didn't hesitate a split second
to drop my "color-only" change…
Moving to 0.9.