-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable italicisation of portion #2312
Conversation
references requires laws-africa/docpipe#19 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
I realised on friday that another aspect which can change is the expression date, but none of our server-side components care about that (and it is complicated if they do), so for now I think it's fine to leave it out.
indigo_app/static/javascript/indigo/views/document_references.js
Outdated
Show resolved
Hide resolved
indigo_app/static/javascript/indigo/views/document_defined_terms.js
Outdated
Show resolved
Hide resolved
indigo_app/static/javascript/indigo/views/document_italics_terms.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Greg Kempe <greg@kempe.net>
Co-authored-by: Greg Kempe <greg@kempe.net>
indigo/analysis/terms/base.py
Outdated
def fix_terms_in_document(self, document): | ||
""" Do everything other than guessing at defined terms in a Document. | ||
Run this before saving an updated document when a portion was edited separately. | ||
def link_terms_in_provision(self, document): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: this method name doesn't make senses in this context, because there's no provision information. link_terms_in_document
or find_term_usages_in_document
or something would make more sense to me.
@@ -109,7 +109,7 @@ <h5 class="main-header-title"> | |||
</div> | |||
|
|||
{% include "indigo_api/document/_revisions.html" %} | |||
{% include "indigo_api/document/_defined_terms.html" %} | |||
{% include "indigo_api/document/_defined_terms.html" with provision_eid=provision_eid %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the with is unnecessary, the context always passed to the included template
Co-authored-by: Greg Kempe <greg@kempe.net>
Co-authored-by: Greg Kempe <greg@kempe.net>
if we're happy with this approach here, we can attempt to follow it for the sentence caser and more importantly the pit differ