Koha/koha-tmpl/intranet-tmpl/prog/en/includes/about-team.inc
Martin Renvoize 0666b644be
Bug 24402: About template corrections
With the 20.05 team we introduced and expanded some roles.  This patch
adds support for:

* removal of the release maintainer for development releases
* a list of documentation managers
* a list of packaging manager

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-16 11:01:35 +00:00

232 lines
8.1 KiB
HTML

[%- BLOCK role -%]
[%- SWITCH role.key -%]
[%- CASE 'manager' -%]Release manager
[%- CASE 'manager_assistant' -%]Release manager assistant
[%- CASE 'manager_mentor' -%]Release manager mentor
[%- CASE 'qa_manager' -%]Quality assurance manager
[%- CASE 'qa' -%]Quality assurance team
[%- CASE 'documentation' -%]Documentation manager
[%- CASE 'documentation_team' -%]Documentation team
[%- CASE 'translation' -%]Translation manager
[%- CASE 'translation_assistant' -%]Translation manager assistant
[%- CASE 'te' -%]Topic expert
[%- CASE 'bugwrangler' -%]Bug wrangler
[%- CASE 'maintainer' -%]Release maintainer
[%- CASE 'maintainer_assistant' -%]Release maintainer assistant
[%- CASE 'maintainer_mentor' -%]Release maintainer mentor
[%- CASE 'wiki' -%]Wiki curator
[%- CASE 'ci' -%]Continuous integration manager
[%- CASE 'packaging' -%]Packaging manager
[%- CASE 'packaging_assistant' -%]Packaging manager assistant
[%- CASE 'chairperson' -%]Meetings chairperson
[%- CASE 'newsletter' -%]Newsletter editor
[%- CASE 'mm' -%]Module maintainer
[%- CASE 'vm' -%]Virtual machine maintainer
[%- CASE 'database' -%]Documentation specialist
[%- CASE 'live_cd' -%]Live CD maintainer
[%- END -%]
[%- END -%]
[%- BLOCK person -%]
[% IF p.openhub %]<a href="[% p.openhub | url %]">[% p.name | html %]</a>[% ELSE %][% p.name | html %][% END %]
[%- END -%]
[%- BLOCK contributions -%]
[%- IF p.roles || p.notes -%]
<ul>
[% FOREACH r IN p.roles %]<li>[% INCLUDE role role=r %] ([% r.value.join(', ') | html %])</li>[% END %]
[% IF p.notes %]<li>[% p.notes | html %]</li>[% END %]
</ul>
[%- END -%]
[%- END -%]
[%- BLOCK team -%]
<ul>
[% IF v == 'release' %]
<p>This is the team who were responsible for the initial release of your currently installed Koha version.</p>
<li><strong>Release manager:</strong>
[% INCLUDE person p=t.manager %]
</li>
[% IF t.manager_assistants %]
<li><strong>Release manager assistants:</strong>
<ul>
[% FOREACH a IN t.manager_assistants %]
<li>[% INCLUDE person p=a %]</li>
[% END %]
</ul>
</li>
[% ELSIF t.manager_assistant %]
<li><strong>Release manager assistant:</strong>
[% INCLUDE person p=t.manager_assistant %]
</li>
[% END %]
[% ELSE %]
<p>This is the team who are responsible for the next release of Koha and the ongoing maintenance of your
currently installed Koha version. They will be in these roles up until <strong>[% t.release_date | $KohaDates %]</strong>, when the next
team will be elected.</p>
[% FOREACH m IN t.maintainer %]
[% IF m.version == ( v ) %]
<li><strong>Release maintainer:</strong>
[% INCLUDE person p=m %]
</li>
[% END %]
[% END %]
[% IF t.maintainer_assistants %]
[% FOREACH m IN t.maintainer_assistants %]
[% IF m.version == ( v ) %]
<ul><li><strong>Assistant:</strong> [% INCLUDE person p=m %]</li></ul>
[% END %]
[% END %]
[% END %]
[% IF t.maintainer_mentors %]
[% FOREACH m IN t.maintainer_mentors %]
[% IF m.version == ( v ) %]
<ul><li><strong>Mentor:</strong> [% INCLUDE person p=m %]</li></ul>
[% END %]
[% END %]
[% END %]
[% END %]
[% IF t.qa_manager %]
<li><strong>Quality assurance manager:</strong>
[% INCLUDE person p=t.qa_manager %]
</li>
[% END %]
[% IF t.qa %]
<li><strong>Quality assurance team:</strong>
<ul>
[% FOREACH qa IN t.qa %]
<li>[% INCLUDE person p=qa %]</li>
[% END %]
</ul>
</li>
[% END %]
[% IF t.documentation %]
[%- IF t.documentation.list.size == 1 %]
<li><strong>Documentation manager:</strong>
[% INCLUDE person p=t.documentation %]
</li>
[% ELSE %]
<li><strong>Documentation managers:</strong>
<ul>
[% FOREACH doc_manager IN t.documentation %]
<li>[% INCLUDE person p=doc_manager %]</li>
[% END %]
</ul>
</li>
[% END %]
[% END %]
[% IF t.documentation_team %]
<li><strong>Documentation team:</strong>
<ul>
[% FOREACH doc_member IN t.documentation_team %]
<li>[% INCLUDE person p=doc_member %]</li>
[% END %]
</ul>
</li>
[% END %]
[% IF t.translation %]
<li><strong>Translation manager:</strong>
[% INCLUDE person p=t.translation %]
</li>
[% END %]
[% IF t.packaging %]
[%- IF t.packaging.list.size == 1 %]
<li><strong>Packaging manager:</strong>
[% INCLUDE person p=t.packaging %]
</li>
[% ELSE %]
<li><strong>Packaging managers:</strong>
<ul>
[% FOREACH packaging_manager IN t.packaging %]
<li>[% INCLUDE person p=packaging_manager %]</li>
[% END %]
</ul>
</li>
[% END %]
[% END %]
[% IF t.ci %]
[% IF t.ci.size == 1 %]
<li><strong>Jenkins maintainer:</strong>
[% INCLUDE person p=t.ci.0 %]
</li>
[% ELSE %]
<li><strong>Jenkins maintainers:</strong>
<ul>
[% FOREACH j IN t.ci %]
<li>[% INCLUDE person p=j %]
[% END %]
</ul>
</li>
[% END %]
[% END %]
[% IF t.bugwrangler %]
<li><strong>Bug wranglers:</strong>
<ul>
[% FOREACH bugwrangler IN t.bugwrangler %]
<li>[% INCLUDE person p=bugwrangler %]</li>
[% END %]
</ul>
</li>
[% END %]
[% IF v != 'release' %]
<li><strong>Release manager:</strong>
[% INCLUDE person p=t.manager %]
</li>
[% IF t.manager_assistants %]
<li><strong>Release manager assistants:</strong>
<ul>
[% FOREACH a IN t.manager_assistants %]
<li>[% INCLUDE person p=a %]</li>
[% END %]
</ul>
</li>
[% ELSIF t.manager_assistant %]
<li><strong>Release manager assistant:</strong>
[% INCLUDE person p=t.manager_assistant %]
</li>
[% END %]
[% ELSE %]
<li><strong>Release maintainers:</strong>
<ul>
[% FOREACH m IN t.maintainer %]
<li>[% m.version | html %] - [% INCLUDE person p=m %]</li>
[% IF t.maintainer_assistants %]
[% FOREACH ma IN t.maintainer_assistants %]
[% IF ma.version == ( m.version ) %]
<ul><li><strong>Assistant:</strong> [% INCLUDE person p=ma %]</li></ul>
[% END %]
[% END %]
[% END %]
[% IF t.maintainer_mentors %]
[% FOREACH mm IN t.maintainer_mentors %]
[% IF m.version == ( mm.version ) %]
<ul><li><strong>Mentor:</strong> [% INCLUDE person p=mm %]</li></ul>
[% END %]
[% END %]
[% END %]
[% END %]
</ul>
</li>
[% END %]
</ul>
[%- END -%]