Hack some citations into the review form
This commit is contained in:
parent
e63be96dac
commit
b8a604e61b
@ -172,7 +172,9 @@ def review(name):
|
||||
return redirect(url_for('session.session', name=name))
|
||||
|
||||
parsed_draft = parse_raw_markdown(draft.contents)
|
||||
rendered_html = parsed_draft.render(PreviewHtmlRenderer(g.lexicon))
|
||||
preview = parsed_draft.render(PreviewHtmlRenderer(g.lexicon))
|
||||
rendered_html = preview.contents
|
||||
citations = preview.citations
|
||||
|
||||
# If the article is ready and awaiting review
|
||||
if not draft.status.approved:
|
||||
@ -197,7 +199,8 @@ def review(name):
|
||||
return render_template(
|
||||
"session.review.jinja",
|
||||
form=form,
|
||||
article_html=Markup(rendered_html))
|
||||
article_html=Markup(rendered_html),
|
||||
citations=citations)
|
||||
|
||||
|
||||
@bp_session.route('/editor/', methods=['GET'])
|
||||
|
@ -17,8 +17,14 @@
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
{% block citationblock %}
|
||||
{% for citation in citations %}
|
||||
{{ citation }}<br>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
{% if form %}
|
||||
{% set template_content_blocks = [self.article(), self.evaluation()] %}
|
||||
{% set template_content_blocks = [self.article(), self.citationblock(), self.evaluation()] %}
|
||||
{% else %}
|
||||
{% set template_content_blocks = [self.article()] %}
|
||||
{% set template_content_blocks = [self.article(), self.citationblock()] %}
|
||||
{% endif %}
|
Loading…
Reference in New Issue
Block a user