mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix series index always 1 in header/footer in the viewer
This commit is contained in:
parent
6d2d0d8201
commit
370ed05c57
@ -140,7 +140,7 @@ def render_head_foot(div, which, region, progress_frac, metadata, current_toc_no
|
|||||||
text = ' & '.join(metadata.authors or v'[]')
|
text = ' & '.join(metadata.authors or v'[]')
|
||||||
elif field is 'series':
|
elif field is 'series':
|
||||||
if metadata.series:
|
if metadata.series:
|
||||||
ival = fmt_sidx(ival, use_roman=interface_data.use_roman_numerals_for_series_number)
|
ival = fmt_sidx(metadata.series_index, use_roman=interface_data.use_roman_numerals_for_series_number)
|
||||||
text = _('{0} of {1}').format(ival, metadata.series)
|
text = _('{0} of {1}').format(ival, metadata.series)
|
||||||
elif field is 'clock':
|
elif field is 'clock':
|
||||||
text = time_formatter.format(Date())
|
text = time_formatter.format(Date())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user