@@ -493,77 +493,40 @@ <h2 class="mx-auto">New Libraries</h2>
493493 {% endif %}
494494 {% with "img/release_report/bg1.png,img/release_report/bg4-rev.png,img/release_report/bg3-rev.png,img/release_report/bg1-rev.png,img/release_report/bg2.png,img/release_report/bg6-rev.png,img/release_report/bg3.png,img/release_report/bg4.png,img/release_report/bg5.png,img/release_report/bg6.png,img/release_report/bg2-rev.png" as bg_list_str %}
495495 {% with bg_list=bg_list_str|split:"," %}
496- {% for batch in batched_library_data %}
496+ {# Flagship Library handling #}
497+ {% for library in flagship_libraries %}
497498 {% with current_bg=bg_list|get_modulo_item:forloop.counter0 %}
498499 < div class ="pdf-page flex flex-col {{ bg_color }} " style ="background-image: url('{% static current_bg %}') ">
499- {% for item in batch %}
500- < div class ="grid grid-cols-3 gap-x-8 w-full p-4 h-1/2 " id ="library-{{ item.library.display_name }} ">
501- < div class ="col-span-2 flex flex-col gap-y-4 ">
502- < div class ="flex flex-col gap-y-4 ">
503- < h2 class ="text-orange mb-1 mt-0 "> {{ item.library.display_name }}</ h2 >
504- < div > {{ item.library.description }}</ div >
505- </ div >
506- < div class ="flex gap-x-8 items-center ">
507- {% if item.library.graphic %}
508- < div class ="max-w-[10rem] ">
509- < img src ="{{ item.library.graphic.url }} " alt ="" />
510- </ div >
511- {% endif %}
512- < div class ="flex flex-col gap-y-1 ">
513- < div >
514- There
515- {{ item.version_count.commit_count|pluralize:"was,were" }}
516- < span class ="font-bold "> {{ item.version_count.commit_count }}</ span >
517- commit{{ item.version_count.commit_count|pluralize }}
518- in release {{ report_configuration.display_name }}
519- </ div >
520- {% with insertions=item.library_version.insertions deletions=item.library_version.deletions %}
521- < div >
522- < span class ="font-bold "> {{ insertions|intcomma }}</ span > line{{ insertions|pluralize }} added, < span class ="font-bold "> {{ deletions|intcomma }}</ span > line{{ deletions|pluralize }} removed
523- </ div >
524- {% endwith %}
525- {% with count=item.new_contributors_count.count %}
526- {% if count > = 1 %}
527- < div >
528- There {{ count|pluralize:"was,were" }} < span class ="font-bold "> {{ count }}</ span > new contributor{{ count|pluralize }} for this release!
529- </ div >
530- {% endif %}
531- {% endwith %}
532- < div >
533- There {{ item.issues.opened|pluralize:"was,were" }} < span class ="font-bold "> {{ item.issues.opened }}</ span > issue{{ item.issues.opened|pluralize }} opened
534- and {{ item.issues.closed|pluralize:"was,were" }} < span class ="font-bold "> {{ item.issues.closed }}</ span > issue{{ item.issues.closed|pluralize }} closed
535- </ div >
536- {% if item.deps.added or item.deps.removed %}
537- < div >
538- There {{ item.deps.added|length|pluralize:"was,were" }} < span class ="font-bold "> {{ item.deps.added|length }}</ span > dependenc{{ item.deps.added|length|pluralize:"y,ies" }} added
539- and
540- < span class ="font-bold "> {{ item.deps.removed|length }}</ span > dependenc{{ item.deps.removed|length|pluralize:"y,ies" }} removed
541- </ div >
542- {% endif %}
543- </ div >
544- </ div >
545- </ div >
546- < div class ="px-4 ">
547- < div class ="mx-auto mb-6 "> Top Contributors</ div >
548- < div class ="m-auto grid grid-cols-1 gap-2 ">
549- {% for author in item.top_contributors_release %}
550- < div class ="flex flex-row gap-y-2 w-40 items-center ">
551- {% avatar commitauthor=author %}
552- < div class ="w-full flex flex-col ml-2 ">
553- < div class ="text-[0.8rem] font-semibold overflow-ellipsis overflow-hidden whitespace-nowrap w-full ">
554- {{ author.display_name }}
555- </ div >
556- < div class ="text-[0.7rem] "> < span class ="font-bold "> {{ author.commit_count }}</ span > commit{{ author.commit_count|pluralize }}</ div >
557- </ div >
558- </ div >
559- {% endfor %}
560- </ div >
561- </ div >
562- </ div >
500+ {% include "./release_report_library_flagship.html" %}
501+ </ div >
502+ {% endwith %}
503+ {% endfor %}
504+
505+ {# Core Library handling #}
506+ {% for library_batch in batched_core_libraries %}
507+ {% with current_bg=bg_list|get_modulo_item:forloop.counter0 %}
508+ < div class ="pdf-page {{ bg_color }} " style ="background-image: url('{% static current_bg %}') ">
509+ {% for library in library_batch %}
510+ < div class ="flex flex-col h-1/2 ">
511+ {% include "./release_report_library_core.html" %}
512+ </ div >
563513 {% endfor %}
564514 </ div >
565515 {% endwith %}
566516 {% endfor %}
517+ {# Remaining Library handling #}
518+ {% for library_batch in batched_deprecated_legacy_libraries %}
519+ {% with current_bg=bg_list|get_modulo_item:forloop.counter0 %}
520+ < div class ="pdf-page {{ bg_color }} " style ="background-image: url('{% static current_bg %}') ">
521+ < table >
522+ {% for library in library_batch %}
523+ {% include "./release_report_library_deprecated_legacy.html" %}
524+ {% endfor %}
525+ </ table >
526+ </ div >
527+ {% endwith %}
528+ {% endfor %}
529+
567530 {% endwith %}
568531 {% endwith %}
569532 </ div>
0 commit comments