[gimp] app: update/fix the About's authors.xsl.



commit a9551bbb3ce122aa541b2b930ec6c2a811b036b1
Author: Jehan <jehan girinstud io>
Date:   Sat Feb 19 15:46:30 2022 +0100

    app: update/fix the About's authors.xsl.
    
    I realized the "recent-contributor" template was checking
    `last-active >=2 and minor version >= 8`. Because of the second part of
    this test, anyone with a last a last-active value of 3.0 was ironically
    not included as recent contributors!
    
    Meanwhile, I am bumping the definition of recent as 2.10 and over
    (rather than 2.8 and over), for GIMP 3.0 release. Last thing, I am now
    sorting by descending last-active (so contributors in GIMP 3.0 are shown
    first).

 app/dialogs/authors.xsl | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/app/dialogs/authors.xsl b/app/dialogs/authors.xsl
index 02db5c87f6..248ad03a8c 100644
--- a/app/dialogs/authors.xsl
+++ b/app/dialogs/authors.xsl
@@ -11,8 +11,11 @@
   <xsl:template name="recent-contributor">
     <xsl:param name="role" />
     <xsl:apply-templates select="dc:contributor[contains(@role, $role) and
-                                 number(@last-active) >= 2             and
-                                 number(substring-after(@last-active, &quot;.&quot;)) >= 8]" />
+                                 ((number(@last-active) >= 2             and
+                                  number(substring-after(@last-active, &quot;.&quot;)) >= 10) or
+                                  number(@last-active) >= 3)]" >
+      <xsl:sort order="descending" data-type="number" select="@last-active" />
+    </xsl:apply-templates>
   </xsl:template>
 
   <xsl:template match="/dc:gimp-authors">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]