Alert for archived groups and their content
Problem
Users need to be aware that a group has been archived when accessing a group.
Proposal
In groups/projects that are archived or children of archived groups add/modify a non-dismisable alert on all pages as follows:
-
Add alert to groups that were archived -
Add alert to projects that are children of archived groups -
Modify archived projects that were archived and are now children of archived groups -
Add alert to groups that are children of archived groups -
Ensure that the group that is referred to in the message is the highest archived group in this particular hierarchy chain so that the user can easily navigate there and unarchive the content from there, if needed (and assuming the user has the appropriate permissions). -
Ensure that the listed group name in the alert is masked as Private groupin case the user does not have access to that group, for instance because they are only a direct member of a child group or project.
Implementation guide
- Create a
app/views/shared/groups_projects/_self_or_ancestor_archived_notice.html.hamlHAML partial- Call
self_or_ancestor_archived?added in #533658 (closed)
- Call
- Merge
app/views/shared/projects/_archived_alert.html.hamlinto the above partial logic - Add the
app/views/shared/groups_projects/_self_or_ancestor_archived_notice.html.hamlpartial toapp/views/layouts/_page.html.hamland remove rendering ofshared/projects/archived_alert
Edited by Peter Hegman
