Project-Timeline: Introduced timeline on projects

Limited to projects of category assets and film for now.
This commit is contained in:
2018-11-20 16:29:01 +01:00
parent 1d909faf49
commit fc99713732
10 changed files with 94 additions and 17 deletions

View File

@@ -73,3 +73,15 @@ mixin list-asset(name, url, image, type, date)
if block
block
// used together with timeline.js
mixin timeline(projectid, sortdirection)
section.timeline.placeholder(
data-project-id=projectid,
data-sort-dir=sortdirection,
)
// TODO: Make nicer reuseable placeholder
.h1.text-center
i.pi-spin.spin

View File

@@ -40,6 +40,9 @@ section.px-4
| {% endif %}
| {% endfor %}
| {% endif %}
| {% if project.category in ['film', 'assets'] %}
+timeline("{{ project._id }}")
| {% endif %}
include _scripts