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).