analysis is boring

git-svn-id: http://yolanda.mister-muffin.de/svn@190 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2007-11-30 08:35:25 +00:00
parent 9150a3cfc8
commit 91ee099c00
5 changed files with 118 additions and 117 deletions

View file

@ -115,6 +115,8 @@
<!-- video page --> <!-- video page -->
<str id="download_video">Download</str> <str id="download_video">Download</str>
<str id="megabytes">MB</str> <str id="megabytes">MB</str>
<str id="watch_browserplugin">use browser plugin</str>
<str id="watch_cortadoapplet">use java applet</str>
<str id="edit_video">Edit</str> <str id="edit_video">Edit</str>
<str id="bookmark_video">Bookmark</str> <str id="bookmark_video">Bookmark</str>
<str id="license_conditions">License Conditions</str> <str id="license_conditions">License Conditions</str>

View file

@ -40,6 +40,17 @@ div
div.button-download, div.button-edit, div.button-bookmark div.button-download, div.button-edit, div.button-bookmark
{ {
display: inline-block; display: inline-block;
margin: 0.5em;
}
div.button-download img, div.button-edit img, div.button-bookmark img
{
margin: 0.5em;
}
div.comments
{
display: none;
} }
div.footer div.footer
@ -117,12 +128,34 @@ div
div.tagcloud div.tagcloud
{ {
display: inline-block;
padding: 1.5em; padding: 1.5em;
padding-left: 20%; padding-left: 20%;
padding-right: 20%; padding-right: 20%;
} }
div.videoccdata
{
margin: 1.5em;
}
div.videoccdata img
{
border-width: 0px;
margin-left: 0.5em;
margin-right: 0.5em;
margin-top: 0.5em;
}
div.videostuff
{
}
div.videotitle
{
font-size: 1.5em;
margin-bottom: 0.5em;
}
fieldset fieldset
{ {
border-width: 0px; border-width: 0px;
@ -154,14 +187,18 @@ img
img.logo-big img.logo-big
{ {
display: inline-block; padding-bottom: 0.5em;
padding-bottom: 1.5em;
} }
img.logo-small img.logo-small
{ {
} }
span.code
{
font-family: monospace;
}
span.protip span.protip
{ {
color: #606060; color: #606060;
@ -177,11 +214,6 @@ span.protip:before
content: "( "; content: "( ";
} }
span.videotitle
{
font-size: 1.5em;
}
table.results table.results
{ {
display: inline; display: inline;

View file

@ -54,12 +54,16 @@
<head> <head>
<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" /> <meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" />
<xsl:if test="not(//@embed='true')">
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico" /> <link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico" />
<link rel="stylesheet" type="text/css"> <link rel="stylesheet" type="text/css">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="//@stylesheet" /> <xsl:value-of select="//@stylesheet" />
</xsl:attribute> </xsl:attribute>
</link> </link>
</xsl:if>
<title> <title>
<xsl:choose> <xsl:choose>
<xsl:when test="boolean(//frontpage)"> <xsl:when test="boolean(//frontpage)">

View file

@ -28,14 +28,14 @@
</a> </a>
</td> </td>
<td> <td>
<span class="videotitle"> <div class="videotitle">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" /> <xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" /> <xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
</a> </a>
</span> </div>
<br /> <br />
<xsl:value-of select="rdf:RDF/cc:Work/dc:description" /> <xsl:value-of select="rdf:RDF/cc:Work/dc:description" />
<table class="videometadata"> <table class="videometadata">
@ -301,46 +301,50 @@
<xsl:template name="pagination-arrows"> <xsl:template name="pagination-arrows">
<xsl:variable name="query_string" select="concat('/', //results/@scriptname, '?', //results/@argument, '=', //results/@value, '&amp;orderby=', //results/@orderby, '&amp;sort=', //results/@sort, '&amp;pagesize=', //results/@pagesize)" /> <xsl:variable name="query_string" select="concat('/', //results/@scriptname, '?', //results/@argument, '=', //results/@value, '&amp;orderby=', //results/@orderby, '&amp;sort=', //results/@sort, '&amp;pagesize=', //results/@pagesize)" />
<div> <div>
<xsl:choose>
<xsl:when test="//results/@currentpage&lt;=1">
<img src="./images/placeholder32x32.png" />
<img src="./images/placeholder32x32.png" />
</xsl:when>
<xsl:otherwise>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="concat($query_string, '&amp;page=1')" /> <xsl:value-of select="concat($query_string, '&amp;page=1')" />
</xsl:attribute> </xsl:attribute>
<xsl:if test="//results/@currentpage&lt;=1">
<xsl:attribute name="style">
visibility: hidden;
</xsl:attribute>
</xsl:if>
<img src="./images/tango/go-first.png" /> <img src="./images/tango/go-first.png" />
</a> </a>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="concat($query_string, '&amp;page=', //results/@currentpage - 1)" /> <xsl:value-of select="concat($query_string, '&amp;page=', //results/@currentpage - 1)" />
</xsl:attribute> </xsl:attribute>
<xsl:if test="//results/@currentpage&lt;=1">
<xsl:attribute name="style">
visibility: hidden;
</xsl:attribute>
</xsl:if>
<img src="./images/tango/go-previous.png" /> <img src="./images/tango/go-previous.png" />
</a> </a>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="//results/@lastpage&lt;=//results/@currentpage">
<img src="./images/placeholder32x32.png" />
<img src="./images/placeholder32x32.png" />
</xsl:when>
<xsl:otherwise>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="concat($query_string, '&amp;page=', //results/@currentpage + 1)" /> <xsl:value-of select="concat($query_string, '&amp;page=', //results/@currentpage + 1)" />
</xsl:attribute> </xsl:attribute>
<xsl:if test="//results/@lastpage&lt;=//results/@currentpage">
<xsl:attribute name="style">
visibility: hidden;
</xsl:attribute>
</xsl:if>
<img src="./images/tango/go-next.png" /> <img src="./images/tango/go-next.png" />
</a> </a>
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="concat($query_string, '&amp;page=', //results/@lastpage)" /> <xsl:value-of select="concat($query_string, '&amp;page=', //results/@lastpage)" />
</xsl:attribute> </xsl:attribute>
<xsl:if test="//results/@lastpage&lt;=//results/@currentpage">
<xsl:attribute name="style">
visibility: hidden;
</xsl:attribute>
</xsl:if>
<img src="./images/tango/go-last.png" /> <img src="./images/tango/go-last.png" />
</a> </a>
</xsl:otherwise>
</xsl:choose>
</div> </div>
</xsl:template> </xsl:template>

View file

@ -8,8 +8,9 @@
> >
<xsl:template name="video"> <xsl:template name="video">
<xsl:if test="//@embed!='true'"> <xsl:if test="not(//@embed='true')">
<h2> <br />
<div class="videotitle">
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:title" /> <xsl:value-of select="//video/rdf:RDF/cc:Work/dc:title" />
<xsl:variable name="minutes" select="floor(//video/@duration div 60)" /> <xsl:variable name="minutes" select="floor(//video/@duration div 60)" />
<xsl:variable name="hours" select="floor(//video/@duration div 3600)" /> <xsl:variable name="hours" select="floor(//video/@duration div 3600)" />
@ -22,7 +23,7 @@
(<xsl:value-of select="concat($hours, ':', format-number($minutes, '00'), ':', format-number($seconds, '00'))" />) (<xsl:value-of select="concat($hours, ':', format-number($minutes, '00'), ':', format-number($seconds, '00'))" />)
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</h2> </div>
</xsl:if> </xsl:if>
<div class="video"> <div class="video">
<xsl:choose> <xsl:choose>
@ -68,7 +69,7 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:attribute> </xsl:attribute>
Watch using Browser Video Plugin <xsl:value-of select="$locale_strings[@id='watch_browserplugin']" />
</a> </a>
</div> </div>
</xsl:when> </xsl:when>
@ -96,14 +97,14 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:attribute> </xsl:attribute>
Watch using Cortado Java Applet <xsl:value-of select="$locale_strings[@id='watch_cortadoapplet']" />
</a> </a>
</div> </div>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</div> </div>
<xsl:if test="//@embed!='true'"> <xsl:if test="not(//@embed='true')">
<div class="button-download"> <div class="button-download">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
@ -155,29 +156,6 @@
</a> </a>
</xsl:if> </xsl:if>
</div> </div>
<table class="videometadata">
<tr>
<td class="leftcell">
Viewcount
</td>
<td class="rightcell">
<xsl:value-of select="//video/@viewcount" />
</td>
</tr>
<tr>
<td class="leftcell">
Downloadcount
</td>
<td class="rightcell">
<xsl:value-of select="//video/@downloadcount" />
</td>
</tr>
</table>
Permalink: <xsl:value-of select="//rdf:RDF/cc:Work/dc:identifier" />
<br />
<pre>&lt;iframe src="<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, '/embed=true')" />" /&gt;</pre>
<div class="videoccdata"> <div class="videoccdata">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
@ -247,14 +225,6 @@
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:creator" /> <xsl:value-of select="//video/rdf:RDF/cc:Work/dc:creator" />
</td> </td>
</tr> </tr>
<tr>
<td class="leftcell">
<xsl:value-of select="$locale_strings[@id='DC.Subject']" />:
</td>
<td class="rightcell">
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:subject" />
</td>
</tr>
<tr> <tr>
<td class="leftcell"> <td class="leftcell">
<xsl:value-of select="$locale_strings[@id='DC.Description']" />: <xsl:value-of select="$locale_strings[@id='DC.Description']" />:
@ -263,14 +233,6 @@
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:description" /> <xsl:value-of select="//video/rdf:RDF/cc:Work/dc:description" />
</td> </td>
</tr> </tr>
<tr>
<td class="leftcell">
<xsl:value-of select="$locale_strings[@id='DC.Publisher']" />:
</td>
<td class="rightcell">
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:publisher" />
</td>
</tr>
<tr> <tr>
<td class="leftcell"> <td class="leftcell">
<xsl:value-of select="$locale_strings[@id='DC.Date']" />: <xsl:value-of select="$locale_strings[@id='DC.Date']" />:
@ -297,18 +259,15 @@
</tr> </tr>
</table> </table>
<table class="videometadata"> <div class="videostuff">
<xsl:for-each select="//referers/referer"> <span class="protip-embed">
<tr> To embed the video on another web page, use the following HTML code:
<td class="leftcell"> <br />
<xsl:value-of select="@count" /> <span class="code">
</td> &lt;iframe src="<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, '/embed=true')" />" /&gt;
<td class="rightcell"> </span>
<xsl:value-of select="@referer" /> </span>
</td> </div>
</tr>
</xsl:for-each>
</table>
<xsl:call-template name="comments"/> <xsl:call-template name="comments"/>