diff --git a/sourcing/model.py b/sourcing/model.py index b9486a6..3ee0735 100644 --- a/sourcing/model.py +++ b/sourcing/model.py @@ -384,5 +384,13 @@ class SourceDoc(Item): return start + first_line return start + self.hashid + @property + def create_xanapage_url(self): + return self.view_url('create_xanapage_from_sourcedoc') + + @property + def entire_span(self): + return self.external_url + f',start=0,length={len(self.text)}' + configure_mappers() diff --git a/sourcing/templates/view.html b/sourcing/templates/view.html index 65f2817..eaed120 100644 --- a/sourcing/templates/view.html +++ b/sourcing/templates/view.html @@ -36,6 +36,31 @@ +{% if doc.type == "sourcedoc" %} + +{% endif %} + {% if can_delete %}