diff --git a/cdhweb/static_src/global/pages/project-page.scss b/cdhweb/static_src/global/pages/project-page.scss index 7b7281f2..c5ee4a5a 100644 --- a/cdhweb/static_src/global/pages/project-page.scss +++ b/cdhweb/static_src/global/pages/project-page.scss @@ -86,3 +86,15 @@ the right of the content (when unstacked). margin-block-start: 24px; } } + +.project-page__side-content-item--same-role { + & + .project-page__side-content-item { + margin-block-start: 24px; + } +} + +.project-page__side-content-item { + & + .project-page__side-content-item--same-role { + margin-block-start: 0; + } +} \ No newline at end of file diff --git a/templates/projects/project_page.html b/templates/projects/project_page.html index 18c3d9d7..bb45a74c 100644 --- a/templates/projects/project_page.html +++ b/templates/projects/project_page.html @@ -40,8 +40,12 @@

Links

Team

{% for membership in page.current_memberships %} -
-

{{ membership.role }}

+ {% ifchanged membership.role %} +
+ {% else %} +
+ {% endifchanged %} + {% ifchanged %}

{{ membership.role }}

{% endifchanged %}
{% include 'includes/project_membership.html' with member=membership.person %}