Content server; Fix regression that caused series name in book details view not not be blue to indicate it is clickable

This commit is contained in:
Kovid Goyal 2019-10-08 08:24:12 +05:30
parent 77f240a4d3
commit fd2eb6b6d8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 1 deletions

View File

@ -282,6 +282,7 @@ def render_metadata(mi, table, book_id): # {{{
a = a[0] a = a[0]
a.setAttribute('href', href_for_search(field, val)) a.setAttribute('href', href_for_search(field, val))
a.setAttribute('title', _('Click to see books with {0}: {1}').format(name, val)) a.setAttribute('title', _('Click to see books with {0}: {1}').format(name, val))
a.setAttribute('class', 'blue-link')
else: else:
print("WARNING: Translation of series template is incorrect as it does not have an <a> tag") print("WARNING: Translation of series template is incorrect as it does not have an <a> tag")
table.lastChild.lastChild.appendChild(s) table.lastChild.lastChild.appendChild(s)

View File

@ -206,7 +206,7 @@ def scroll_tree_item_into_view(item):
add_extra_css(def(): add_extra_css(def():
ans = 'a, button:focus { outline: none }; a, button::-moz-focus-inner { border: 0 }\n' ans = 'a, button:focus { outline: none }; a, button::-moz-focus-inner { border: 0 }\n'
ans += '.simple-link { cursor: pointer } .simple-link:hover { color: HC } .simple-link:active { transform: scale(1.5) }\n'.replace('HC', get_color('window-hover-foreground')) ans += '.simple-link { cursor: pointer } .simple-link:hover { color: HC } .simple-link:active { transform: scale(1.5) }\n'.replace('HC', get_color('window-hover-foreground'))
ans += '.blue-link { cursor: pointer; color: COL } .blue-link:hover { color: HC } .blue-link:active { transform: scale(1.5) }\n'.replace('HC', get_color('window-hover-foreground')).replace('COL', get_color('link-foreground')) ans += '.blue-link { cursor: pointer; color: COL } .blue-link:visited { color: COL} .blue-link:hover { color: HC } .blue-link:active { transform: scale(1.5) }\n'.replace('HC', get_color('window-hover-foreground')).replace(/COL/g, get_color('link-foreground'))
ans += create_button.style + '\n' ans += create_button.style + '\n'
ans += create_button.style + '\n' ans += create_button.style + '\n'
ans += create_spinner.style + '\n' ans += create_spinner.style + '\n'