Workflow tags
hypha.apply.funds.templatetags.workflow_tags
¶
check_permission
¶
has_edit_perm
¶
Source code in hypha/apply/funds/templatetags/workflow_tags.py
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
get_author_display
¶
Creates a formatted author string based on the submission and viewer role.
Parameters:
-
context(dict) โdict of template context
-
type(Literal['submitted', 'updated']) โA string literal of either "submitted" (retrieves author of first revision), or "updated" (retrieves author of live revision)
Returns:
-
strโA string with the formatted author depending on the user role (ie. an edit from
-
strโstaff viewed by an applicant will return the org name).