Workflow tags
hypha.apply.funds.templatetags.workflow_tags
¶
check_permission
¶
has_edit_perm
¶
has_review_perm
¶
show_applicant_identity
¶
Determine whether or not to display the applicant's identity.
Parameters:
-
submission
(ApplicationSubmission
) โthe submission submitted by applicant
-
user
(User
) โthe user viewing the submission
Returns:
-
bool
(bool
) โTrue = show the applicant's identity
Source code in hypha/apply/funds/templatetags/workflow_tags.py
display_submission_author
¶
Creates a formatted author string based on the submission and viewer role.
Parameters:
-
context
(dict
) โdict of template context
-
revision_author
(bool
, default:False
) โif True, gets revision author. False (default) gets submission author
Returns:
-
str
โA string with the formatted author depending on the user role (ie. a
-
str
โcomment from staff viewed by an applicant will return the org name).