Commit 0065fca7 authored by Romain Courteaud's avatar Romain Courteaud

Underline read only relation field links.

parent 9bfae28b
......@@ -476,6 +476,10 @@ a, a:visited, a:focus {\n
text-decoration: none;\n
}\n
\n
.relationfieldlink {\n
text-decoration: underline;\n
}\n
\n
a:hover {\n
background-color: inherit;\n
color: <dtml-var link_hover_color>;\n
......
1072
\ No newline at end of file
1073
\ No newline at end of file
......@@ -338,7 +338,7 @@ class MultiRelationStringFieldWidget(Widget.LinesTextAreaWidget,
if not isinstance(value, (list, tuple)):
value = value,
for jump_reference, display_value in zip(jump_reference_list, value):
string_list.append('<a href="%s">%s</a>' % \
string_list.append('<a class="relationfieldlink" href="%s">%s</a>' % \
(jump_reference.absolute_url(),
display_value))
html_string = '<br />'.join(string_list)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment