Add links to the YouTube channel for past MeetBSD and NYCBSDCon
events. Tempoarily hard code these two conferences in the stylesheets until we have a more general method of indicating which conferences were video recorded, or until we get more of the old content uploaded.
This commit is contained in:
parent
b3b5569e8e
commit
e741c9efb1
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=33550
2 changed files with 25 additions and 4 deletions
|
@ -9,7 +9,7 @@
|
|||
<!ENTITY % header.rss "INCLUDE">
|
||||
]>
|
||||
|
||||
<!-- $FreeBSD: www/share/sgml/templates.events.xsl,v 1.10 2008/06/23 07:08:02 murray Exp $ -->
|
||||
<!-- $FreeBSD: www/share/sgml/templates.events.xsl,v 1.11 2008/06/29 19:25:35 murray Exp $ -->
|
||||
|
||||
<!-- Copyright (c) 2003 Simon L. Nielsen <simon@FreeBSD.org>
|
||||
Copyright (c) 2008 Murray M Stokely <murray@FreeBSD.org>
|
||||
|
@ -301,12 +301,26 @@
|
|||
|
||||
<!-- Template: event -->
|
||||
<xsl:template match="event">
|
||||
<xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable>
|
||||
<xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
|
||||
<xsl:variable name="name" select="name" />
|
||||
<xsl:variable name="lcname" select="translate($name, $upper, $lower)" />
|
||||
|
||||
<!-- Note that only MeetBSD and NYCBSDCon have a significant number of
|
||||
videos on YouTube so we hard code them for now. When we have a
|
||||
better track record of getting videos from our conferences posted
|
||||
to YouTube then we can implement a more generic solution here,
|
||||
but for now we don't want to add the link to youtube when we know
|
||||
in most cases there is no content there. -->
|
||||
|
||||
<li>
|
||||
<xsl:call-template name="eventbody"/>
|
||||
<p>Social links: <a rel="nofollow">
|
||||
<xsl:attribute name="href">http://www.flickr.com/search/?w=all&q=<xsl:value-of select="name" />&m=text</xsl:attribute>
|
||||
Flickr</a>, <a rel="nofollow">
|
||||
<xsl:attribute name="href">http://blogsearch.google.com/blogsearch?q=<xsl:value-of select="name" /></xsl:attribute>Blog Search</a>.</p>
|
||||
<xsl:attribute name="href">http://blogsearch.google.com/blogsearch?q=<xsl:value-of select="name" /></xsl:attribute>Blog Search</a><xsl:if test="contains($lcname, 'meetbsd') or contains($lcname, 'nycbsdcon')">,
|
||||
<a rel="nofollow">
|
||||
<xsl:attribute name="href">http://www.youtube.com/results?search_query=bsdconferences+<xsl:value-of select="name" /></xsl:attribute>YouTube</a></xsl:if>.</p>
|
||||
</li>
|
||||
</xsl:template>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<!ENTITY % header.rss "INCLUDE">
|
||||
]>
|
||||
|
||||
<!-- $FreeBSD: www/share/sgml/templates.pastevents.xsl,v 1.2 2008/06/23 07:08:02 murray Exp $ -->
|
||||
<!-- $FreeBSD: www/share/sgml/templates.pastevents.xsl,v 1.3 2008/12/15 02:50:38 murray Exp $ -->
|
||||
|
||||
<!-- Copyright (c) 2003 Simon L. Nielsen <simon@FreeBSD.org>
|
||||
Copyright (c) 2008 Murray M Stokely <murray@FreeBSD.org>
|
||||
|
@ -254,12 +254,19 @@ upcoming</a></p>
|
|||
|
||||
<!-- Template: event -->
|
||||
<xsl:template match="event">
|
||||
<xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable>
|
||||
<xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
|
||||
<xsl:variable name="name" select="name" />
|
||||
<xsl:variable name="lcname" select="translate($name, $upper, $lower)" />
|
||||
|
||||
<li>
|
||||
<xsl:call-template name="eventbody"/>
|
||||
<p>Social links: <a rel="nofollow">
|
||||
<xsl:attribute name="href">http://www.flickr.com/search/?w=all&q=<xsl:value-of select="name" />&m=text</xsl:attribute>
|
||||
Flickr</a>, <a rel="nofollow">
|
||||
<xsl:attribute name="href">http://blogsearch.google.com/blogsearch?q=<xsl:value-of select="name" /></xsl:attribute>Blog Search</a>.</p>
|
||||
<xsl:attribute name="href">http://blogsearch.google.com/blogsearch?q=<xsl:value-of select="name" /></xsl:attribute>Blog Search</a><xsl:if test="contains($lcname, 'meetbsd') or contains($lcname, 'nycbsdcon')">,
|
||||
<a rel="nofollow">
|
||||
<xsl:attribute name="href">http://www.youtube.com/results?search_query=bsdconferences+<xsl:value-of select="name" /></xsl:attribute>YouTube</a></xsl:if>.</p>
|
||||
</li>
|
||||
</xsl:template>
|
||||
|
||||
|
|
Loading…
Reference in a new issue