From 6ecfae25e07876ef92a64fa195a7abb505d28ad0 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 17 Jan 2017 15:25:52 +0100 Subject: [PATCH] Added a mention to workflow_has_marked_place() Twig function --- workflow/usage.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/workflow/usage.rst b/workflow/usage.rst index 76af75c1c21..d03d45fcd3c 100644 --- a/workflow/usage.rst +++ b/workflow/usage.rst @@ -148,7 +148,7 @@ like this: The marking store type could be "multiple_state" or "single_state". A single state marking store does not support a model being on multiple places at the same time. - + .. tip:: The ``type`` (default value ``single_state``) and ``arguments`` (default value ``marking``) @@ -248,3 +248,8 @@ The links below will only be displayed when the action is allowed: {% else %} No actions available. {% endfor %} + + {# Check if the object is in some specific place #} + {% if workflow_has_marked_place(post, 'to_review') %} +

This post is ready for review.

+ {% endif %}