1 |
neysx 07/10/29 16:35:33 |
2 |
|
3 |
Modified: mail.xsl |
4 |
Log: |
5 |
Use lower case nicks in comparisons |
6 |
|
7 |
Revision Changes Path |
8 |
1.3 xml/htdocs/xsl/mail.xsl |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/mail.xsl?rev=1.3&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/mail.xsl?rev=1.3&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/mail.xsl?r1=1.2&r2=1.3 |
13 |
|
14 |
Index: mail.xsl |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/xsl/mail.xsl,v |
17 |
retrieving revision 1.2 |
18 |
retrieving revision 1.3 |
19 |
diff -u -r1.2 -r1.3 |
20 |
--- mail.xsl 12 Oct 2007 12:07:18 -0000 1.2 |
21 |
+++ mail.xsl 29 Oct 2007 16:35:32 -0000 1.3 |
22 |
@@ -54,7 +54,7 @@ |
23 |
<xsl:param name="roll-call"/> |
24 |
<devs> |
25 |
<xsl:for-each select="$roll-call/userlist/user"> |
26 |
- <user username="{@username}"> |
27 |
+ <user username="{translate(@username,'QWERTYUIOPLKJHGFDSAZXCVBNM','qwertyuioplkjhgfdsazxcvbnm')}"> |
28 |
<xsl:if test="translate(status,'TIRED','tired')='retired'"> |
29 |
<xsl:attribute name="retired"/> |
30 |
</xsl:if> |
31 |
@@ -71,25 +71,25 @@ |
32 |
--> |
33 |
<xsl:template name="smart-mail" xmlns=""> |
34 |
<xsl:param name="mail"/> |
35 |
- |
36 |
<xsl:if test="string-length($mail/@link)>0 or string-length($mail/text())>0"> |
37 |
+ |
38 |
<xsl:variable name="gnick"> |
39 |
<xsl:choose> |
40 |
<xsl:when test="string-length($mail/@link)=0 and not(contains($mail/text(),'@'))"> |
41 |
<!-- <mail>nick</mail> --> |
42 |
- <xsl:value-of select="$mail/text()"/> |
43 |
+ <xsl:value-of select="translate($mail/text(),'QWERTYUIOPLKJHGFDSAZXCVBNM','qwertyuioplkjhgfdsazxcvbnm')"/> |
44 |
</xsl:when> |
45 |
<xsl:when test="string-length($mail/@link)=0 and contains($mail/text(),'@gentoo.org')"> |
46 |
<!-- <mail>nick@g.o</mail> --> |
47 |
- <xsl:value-of select="substring-before($mail/text(), '@')"/> |
48 |
+ <xsl:value-of select="translate(substring-before($mail/text(), '@'),'QWERTYUIOPLKJHGFDSAZXCVBNM','qwertyuioplkjhgfdsazxcvbnm')"/> |
49 |
</xsl:when> |
50 |
<xsl:when test="string-length($mail/@link)>0 and not(contains($mail/@link,'@'))"> |
51 |
<!-- <mail link="nick">blah blah</mail> --> |
52 |
- <xsl:value-of select="$mail/@link"/> |
53 |
+ <xsl:value-of select="translate($mail/@link,'QWERTYUIOPLKJHGFDSAZXCVBNM','qwertyuioplkjhgfdsazxcvbnm')"/> |
54 |
</xsl:when> |
55 |
<xsl:when test="contains($mail/@link,'@gentoo.org')"> |
56 |
<!-- <mail link="nick@g.o">blah blah</mail> --> |
57 |
- <xsl:value-of select="substring-before($mail/@link, '@gentoo.org')"/> |
58 |
+ <xsl:value-of select="translate(substring-before($mail/@link, '@gentoo.org'),'QWERTYUIOPLKJHGFDSAZXCVBNM','qwertyuioplkjhgfdsazxcvbnm')"/> |
59 |
</xsl:when> |
60 |
</xsl:choose> |
61 |
</xsl:variable> |
62 |
|
63 |
|
64 |
|
65 |
-- |
66 |
gentoo-commits@g.o mailing list |