Name: opal-timeline
Owner: Open Health Care
Description: A pluggable timeline for the opal framework
Created: 2017-07-06 14:27:24.0
Updated: 2017-10-15 10:54:20.0
Pushed: 2018-01-25 16:37:03.0
Homepage: null
Size: 31
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is timeline - an Opal plugin.
Defining a timeline should be as simple as
from timeline.timelines import Timeline, TimelineElement from elcid.models import MicrobiologyInput
s SampleTimeline(Timeline):
slug = "sample"
elements = (
TimelineElement(subrecord=MicrobiologyInput, group_by="when"),
)
Then you can put them in a template with
{% load timelines %} {% timeline “sample” %}