mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 02:27:19 +00:00
2b6c87fb4b
* add a new-line before the log text to increase readability of the test output * make eslint, jslint happy * it shouldn't be there * fremove this file from my PRs * fix 4532. Links should not add unwanted whitespace, since this causes problems with CSS styling * remove whitespace from tiddler title and add a little bit of margin-right to the tiddler icon. * use default parameters for link handling, which results in less code * introduce tc-viewswitcher class to be able to style icon distance to text
28 lines
864 B
Plaintext
28 lines
864 B
Plaintext
created: 20141212105914482
|
|
modified: 20141212110330815
|
|
tags: $:/tags/Macro
|
|
title: $:/core/macros/timeline
|
|
|
|
\define timeline-title()
|
|
\whitespace trim
|
|
<!-- Override this macro with a global macro
|
|
of the same name if you need to change
|
|
how titles are displayed on the timeline
|
|
-->
|
|
<$view field="title"/>
|
|
\end
|
|
\define timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified")
|
|
<div class="tc-timeline">
|
|
<$list filter="[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]">
|
|
<div class="tc-menu-list-item">
|
|
<$view field="$dateField$" format="date" template="$format$"/>
|
|
<$list filter="[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]">
|
|
<div class="tc-menu-list-subitem">
|
|
<$link to={{!!title}}><<timeline-title>></$link>
|
|
</div>
|
|
</$list>
|
|
</div>
|
|
</$list>
|
|
</div>
|
|
\end
|