Skip to content

Commit

Permalink
Link timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed May 9, 2019
1 parent 249e11b commit 4f336a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/macrogen/report.py
Expand Up @@ -883,6 +883,7 @@ def report_index(graphs):
'Graph aller für die Sortierung berücksichtigter Aussagen (einzoomen!)'),
('tred', 'transitive Reduktion',
'<a href="https://de.wikipedia.org/w/index.php?title=Transitive_Reduktion">Transitive Reduktion</a> des Gesamtgraphen'),
('timeline', 'Zeitstrahl', 'Zeitstrahl datierter Zeugen'),
('help', 'Legende', 'Legende zu den Graphen'),
('downloads', 'Downloads', 'Graphen zum Download'),
('stats', 'Statistik', 'Der Graph in Zahlen')]
Expand Down Expand Up @@ -1218,7 +1219,7 @@ def rel_scenes(ref: Reference) -> List[str]:
return []

refs = graphs.order_refs()
data = [dict(start=ref.earliest.isoformat(), end=ref.latest.isoformat(),
data = [dict(start=ref.earliest.isoformat(), end=(ref.latest+DAY).isoformat(),
content=_fmt_node(ref), id=ref.filename.stem, scenes=rel_scenes(ref),
index=graphs.index[ref])
for ref in refs
Expand Down
2 changes: 1 addition & 1 deletion src/macrogen/timeline.html
Expand Up @@ -44,7 +44,7 @@
</nav>
</header>
<main>
<div id="timeline" style="height:calc(100vh - 3.5em);border:1px solid red;">
<div id="timeline" style="height:calc(100vh - 3.5em)">
<div id="loading-spinner" class="background-container">
<div class="pure-center pure-fade-50">
<i class="fa fa-spinner fa-pulse fa-5x"></i><br/>
Expand Down

0 comments on commit 4f336a1

Please sign in to comment.