Events difficult to read (screen and mobile) (#658)

This commit is contained in:
Serge Noiraud 2018-09-23 12:27:55 +02:00 committed by GitHub
parent 04a40c7a50
commit e5c5a210b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -619,18 +619,10 @@ class BasePage: # pylint: disable=C1001
(self._("Event"), "ColumnEvent"), (self._("Event"), "ColumnEvent"),
(self._("Date"), "ColumnDate"), (self._("Date"), "ColumnDate"),
(self._("Place"), "ColumnPlace"), (self._("Place"), "ColumnPlace"),
(self._("Description"), "ColumnDescription")] (self._("Description"), "ColumnDescription"),
(self._("Sources"), "ColumnSources")]
) )
trow += Html("/tr", close=None) trow += Html("/tr", close=None)
trow2 = Html("tr", indent=False)
trow2.extend(
Html("th", trans, class_=colclass, colspan=opt, inline=True)
for trans, colclass, opt in [
("", "ColumnEvent", 1),
(self._("Sources"), "ColumnSources", 1),
(self._("Notes"), "ColumnNotes", 2)]
)
trow.extend(trow2)
return trow return trow
def display_event_row(self, event, event_ref, place_lat_long, def display_event_row(self, event, event_ref, place_lat_long,
@ -681,10 +673,10 @@ class BasePage: # pylint: disable=C1001
) )
trow2 = Html("tr") trow2 = Html("tr")
trow2 += Html("td", "", class_="ColumnSources") trow2 += Html("td", "", class_="ColumnEvent")
# get event source references # get event source references
srcrefs = self.get_citation_links(event.get_citation_list()) or " " srcrefs = self.get_citation_links(event.get_citation_list()) or " "
trow2 += Html("td", srcrefs, class_="ColumnSources") trow += Html("td", srcrefs, class_="ColumnSources")
# get event notes # get event notes
notelist = event.get_note_list() notelist = event.get_note_list()
@ -707,7 +699,7 @@ class BasePage: # pylint: disable=C1001
if notelist: if notelist:
htmllist.extend(self.dump_notes(notelist)) htmllist.extend(self.dump_notes(notelist))
trow2 += Html("td", htmllist, class_="ColumnNotes", colspan=2) trow2 += Html("td", htmllist, class_="ColumnNotes", colspan=3)
trow += trow2 trow += trow2
# return events table row to its callers # return events table row to its callers