Refractor primary nav and dashboard, hide projects info if not enabled (#3898)
Also, refractor and allow for importing permission functions from anywhere and not just limit to be imported from the `hypha.users.decorators` module This PR also doesn't display project info on the dashboard if the projects is not enabled For the stats block at the top of the dashboard, if the projects is not abled displays the count of flagged submissions and the count of previously reviewed submissions Simplify the nav generator logic.
Showing
- hypha/apply/dashboard/templates/dashboard/dashboard.html 30 additions, 16 deletionshypha/apply/dashboard/templates/dashboard/dashboard.html
- hypha/apply/utils/templatetags/apply_tags.py 7 additions, 0 deletionshypha/apply/utils/templatetags/apply_tags.py
- hypha/core/navigation.py 63 additions, 18 deletionshypha/core/navigation.py
- hypha/core/templates/core/navigation/primarynav-apply.html 3 additions, 2 deletionshypha/core/templates/core/navigation/primarynav-apply.html
- hypha/core/templatetags/applynav_tags.py 0 additions, 40 deletionshypha/core/templatetags/applynav_tags.py
Loading
Please register or sign in to comment