dummy license output, price for pr0n is now > 9000, css is shinier than

ever


git-svn-id: http://yolanda.mister-muffin.de/svn@257 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2008-03-27 16:43:08 +00:00
parent eba093139e
commit b65e347a5e
26 changed files with 342 additions and 168 deletions

View file

@ -214,7 +214,7 @@ sub output_page
{ {
return $session->header( return $session->header(
-status=>'402 Payment required', -status=>'402 Payment required',
-cost=>'$9000.00', -cost=>'$9001.00', # OVER NEIN THOUSAND
) )
} }
else else

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 935 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

View file

@ -155,16 +155,16 @@
<string id="language_de-de">German</string> <string id="language_de-de">German</string>
<!-- video page --> <!-- video page -->
<string id="video_download">download</string> <string id="video_download">Download</string>
<string id="video_playback">plackback</string> <string id="video_playback">Plackback</string>
<string id="junk_video">mark as junk</string> <string id="junk_video">mark as junk</string>
<string id="edit_video">edit</string> <string id="edit_video">edit</string>
<string id="watch_browserplugin">use browser plugin</string> <string id="watch_browserplugin">use browser plugin</string>
<string id="watch_cortadoapplet">use java applet</string> <string id="watch_cortadoapplet">use java applet</string>
<string id="license_conditions">license conditions</string> <string id="license_conditions">license conditions</string>
<string id="protip_embed">To embed the video on another web page, use the following HTML code:</string> <string id="protip_embed">To embed the video on another web page, use the following HTML code:</string>
<string id="login_to_comment">login to comment</string> <string id="login_to_comment">Login to comment</string>
<string id="comment_post">post</string> <string id="comment_post">Post</string>
<!-- embedded video page--> <!-- embedded video page-->
<string id="backlink">backlink</string> <string id="backlink">backlink</string>

View file

@ -53,11 +53,11 @@ div
border-color: #555753; border-color: #555753;
} }
div.button-download div.cc-license
{ {
} }
div.button-download img div.cc-license img
{ {
} }
@ -92,6 +92,7 @@ div.loginbox
{ {
/* TODO: find out how to set vertical-align:middle for this image */ /* TODO: find out how to set vertical-align:middle for this image */
content: url(../../images/tango/32x32/dialog-error.png); content: url(../../images/tango/32x32/dialog-error.png);
height: 200px;
} }
div.messagebox#information div.messagebox#information
@ -124,6 +125,10 @@ div.loginbox
border-color: #555753; border-color: #555753;
} }
div.protip-embed
{
}
div#preview div#preview
{ {
} }
@ -167,6 +172,39 @@ form
{ {
} }
li
{
}
li#latestadditions
{
list-style-image: url(../../images/tango/16x16/actions/document-new.png)
}
li#logout
{
list-style-image: url(../../images/tango/16x16/actions/system-log-out.png)
}
li#mostviews
{
list-style-image: url(../../images/tango/16x16/emblems/emblem-favorite.png)
}
li#mostdownloads
{
list-style-image: url(../../images/tango/16x16/actions/document-save.png)
}
li#upload
{
list-style-image: url(../../images/tango/16x16/actions/go-up.png)
}
p
{
}
span span
{ {
} }
@ -193,6 +231,10 @@ span
ul ul
{ {
}
ul#account-actions
{
} }
ul#footer, ul#footer,
@ -217,18 +259,3 @@ ul
ul#queries ul#queries
{ {
} }
ul#queries li#latestadditions
{
list-style-image: url(../../images/tango/16x16/actions/document-new.png)
}
ul#queries li#mostviews
{
list-style-image: url(../../images/tango/16x16/emblems/emblem-favorite.png)
}
ul#queries li#mostdownloads
{
list-style-image: url(../../images/tango/16x16/actions/document-save.png)
}

View file

@ -67,15 +67,16 @@ div
{ {
} }
div.button-download div.cc-license
{ {
/* TODO: find out /why we do this/ (see div.searchbar) ! */ /* TODO: find out /why we do this/ (see div.searchbar) ! */
margin-top: 0em; margin-top: 0em;
vertical-align: top; vertical-align: top;
} }
div.button-download img div.cc-license img
{ {
border-width: 0px;
margin: 0.5em; margin: 0.5em;
} }
@ -107,6 +108,7 @@ div
div.messagebox div.messagebox
{ {
font-weight: bold;
/* correct spacing to avoid overlapping with float:right elements */ /* correct spacing to avoid overlapping with float:right elements */
margin-right: 22em; margin-right: 22em;
} }
@ -137,6 +139,12 @@ div
overflow: visible; overflow: visible;
} }
div.protip-embed
{
/* correct spacing to avoid overlapping with float:right elements */
margin-right: 22em;
}
div#preview div#preview
{ {
/* correct spacing to avoid overlapping with float:right elements */ /* correct spacing to avoid overlapping with float:right elements */
@ -167,11 +175,10 @@ div#preview
div.results div.results
{ {
/* border-width: 0px;*/ border-width: 0px;
/* correct spacing to avoid overlapping with float:right elements */ /* correct spacing to avoid overlapping with float:right elements */
margin: 0em;
margin-right: 22em !important; margin-right: 22em !important;
padding: 0em; padding: 0px;
} }
div.results div.result div.results div.result
@ -208,6 +215,10 @@ div#preview
text-align: justify; text-align: justify;
} }
div.video
{
}
form form
{ {
} }
@ -228,6 +239,22 @@ form
text-align: center; text-align: center;
} }
li
{
}
li#latestadditions
{
}
li#mostviews
{
}
li#mostdownloads
{
}
input input
{ {
text-align: left; text-align: left;
@ -238,6 +265,12 @@ img
border-width: 0; border-width: 0;
} }
p
{
margin: 0.5em;
padding: 0.5em;
}
span span
{ {
} }
@ -273,6 +306,10 @@ span
ul ul
{ {
}
ul#account-actions
{
} }
ul#footer, ul#footer,
@ -297,20 +334,9 @@ ul
padding: 1em; padding: 1em;
} }
ul#account-actions,
ul#queries ul#queries
{ {
font-size: 1.5em; font-size: 1.5em;
font-weight: bold; font-weight: bold;
} }
ul#queries li#latestadditions
{
}
ul#queries li#mostviews
{
}
ul#queries li#mostdownloads
{
}

View file

@ -40,13 +40,17 @@ div
{ {
} }
div.button-download div.cc-license
{ {
clear: right; clear: right;
float: right; float: right;
width: 20em; width: 20em;
} }
div.cc-license img
{
}
div.comments div.comments
{ {
} }
@ -65,6 +69,22 @@ div
width: 20em; width: 20em;
} }
div.messagebox
{
}
div.messagebox#error
{
}
div.messagebox#information
{
}
div.messagebox#warning
{
}
div.metadata div.metadata
{ {
clear: right; clear: right;
@ -81,6 +101,10 @@ div
overflow: visible; overflow: visible;
} }
div.protip-embed
{
}
div#preview div#preview
{ {
position: relative; position: relative;
@ -113,8 +137,10 @@ div
div.results div.result div.results div.result
{ {
float: left; /*
position: relative; at this point, browsers such as firefox 2.0 mess up
*/
display: inline-block;
} }
div.results div.result img div.results div.result img
@ -123,9 +149,10 @@ div
div.results div.result img.flag div.results div.result img.flag
{ {
bottom: 3em; position: relative;
position: absolute; /* flag is 32px wide and has 1px borders */
right: 0.5em; right: 34px;
margin-right: -34px;
} }
div.searchbar div.searchbar
@ -148,20 +175,14 @@ div
div.video div.video
{ {
display: inline-block; display: inline-block;
margin-bottom: 0.5em;
} }
div.videoccdata div.videoccdata
{ {
margin: 0.75em;
} }
div.videoccdata img div.videoccdata img
{ {
border-width: 0px;
margin-left: 0.5em;
margin-right: 0.5em;
margin-top: 0.5em;
} }
div.videotitle div.videotitle
@ -185,6 +206,26 @@ h1
{ {
} }
li
{
}
li#latestadditions
{
}
li#mostviews
{
}
li#mostdownloads
{
}
p
{
}
span span
{ {
} }
@ -239,6 +280,10 @@ td.metadata-title
ul ul
{ {
}
ul#account-actions
{
} }
ul#footer, ul#footer,
@ -263,15 +308,3 @@ ul
ul#queries ul#queries
{ {
} }
ul#queries li#latestadditions
{
}
ul#queries li#mostviews
{
}
ul#queries li#mostdownloads
{
}

View file

@ -187,7 +187,38 @@ elsif($query->url_param('title') or $query->url_param('id'))
}, },
'cc:License' => 'cc:License' =>
{ {
'rdf:about' => $license 'rdf:about' => $license,
# ↓↓ dummy code because josch is too lazy for DOIN IT RITE ↓↓
'cc:permits' =>
{
'rdf:resource' => "http://web.resource.org/cc/Reproduction"
},
'cc:permits' =>
{
'rdf:resource' => "http://web.resource.org/cc/Distribution"
},
'cc:permits' =>
{
'rdf:resource' => "http://web.resource.org/cc/DerivativeWorks"
},
'cc:requires' =>
{
'rdf:resource' => "http://web.resource.org/cc/Notice"
},
'cc:requires' =>
{
'rdf:resource' => "http://web.resource.org/cc/ShareAlike"
},
'cc:prohibits' =>
{
'rdf:resource' => "http://web.resource.org/cc/CommercialUse"
},
'cc:prohibits' =>
{
'rdf:resource' => "http://web.resource.org/cc/DerivativeWorks"
}
# ↑↑ dummy code because josch is too lazy for DOIN IT RITE ↑↑
# sadly, i dunno how to add multiple tags
} }
} }
}; };

View file

@ -9,6 +9,10 @@
<xsl:template name="loginbox"> <xsl:template name="loginbox">
<div class="loginbox"> <div class="loginbox">
<xsl:choose>
<xsl:when test="string-length(//@username)=0">
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='path_login']" /> <xsl:value-of select="$site_strings[@id='path_login']" />
@ -38,8 +42,59 @@
<xsl:value-of select="$locale_strings[@id='button_login']" /> <xsl:value-of select="$locale_strings[@id='button_login']" />
</xsl:attribute> </xsl:attribute>
</input> </input>
</fieldset> </fieldset>
</form> </form>
</xsl:when>
<xsl:otherwise>
<!--
<xsl:value-of select="$locale_strings[@id='logged_in_as']" />
<a>
<xsl:attribute name="href">
user/<xsl:value-of select="//@username" />
</xsl:attribute>
<xsl:value-of select="//@username" />
</a>
-->
<ul id="account-actions" role="navigation">
<li id="upload">
<a>
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_upload']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='header_upload-video']" />
</a>
</li>
<!--
<li id="">
<a>
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_settings']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='settings_details']" />
</a>
</li>
-->
<li id="logout">
<a>
<xsl:attribute name="href">
<xsl:value-of select="$site_strings[@id='path_logout']" />
</xsl:attribute>
<xsl:value-of select="$locale_strings[@id='logout']" />
</a>
</li>
</ul>
</xsl:otherwise>
</xsl:choose>
</div> </div>
</xsl:template> </xsl:template>

View file

@ -22,11 +22,11 @@
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
<xsl:variable name="messagetext" select="/page/message/@text" /> <xsl:variable name="messagetext" select="/page/message/@text" />
<strong> <span class="message">
<xsl:value-of select="$locale_strings[@id=$messagetext]" /> <xsl:value-of select="$locale_strings[@id=$messagetext]" />
<xsl:value-of select="/page/message/@value" /> <xsl:value-of select="/page/message/@value" />
<!-- probably one can do this on one line, dunno how --> <!-- probably one can do this on one line, dunno how -->
</strong> </span>
</div> </div>
</xsl:template> </xsl:template>

View file

@ -51,7 +51,6 @@
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" /> <xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
</xsl:attribute> </xsl:attribute>
</img> </img>
<img class="flag"> <img class="flag">
<xsl:attribute name="src"> <xsl:attribute name="src">
<xsl:value-of select="concat('/images/flags/', rdf:RDF/cc:Work/dc:language, '.png')" /> <xsl:value-of select="concat('/images/flags/', rdf:RDF/cc:Work/dc:language, '.png')" />
@ -60,7 +59,6 @@
<xsl:value-of select="rdf:RDF/cc:Work/dc:language" /> <xsl:value-of select="rdf:RDF/cc:Work/dc:language" />
</xsl:attribute> </xsl:attribute>
</img> </img>
</a> </a>
<br /> <br />
<a> <a>

View file

@ -65,16 +65,17 @@
<xsl:call-template name="video-description" /> <xsl:call-template name="video-description" />
<xsl:call-template name="video-cclicense"/>
<xsl:call-template name="video-metadata" /> <xsl:call-template name="video-metadata" />
<!--
<xsl:call-template name="video-actions" /> <xsl:call-template name="video-actions" />
-->
<xsl:call-template name="video-object" /> <xsl:call-template name="video-object" />
<xsl:call-template name="cclicense"/> <div class="protip-embed">
<div class="videostuff">
<span class="protip-embed">
<xsl:value-of select="$locale_strings[@id='protip_embed']" /> <xsl:value-of select="$locale_strings[@id='protip_embed']" />
<br /> <br />
<code> <code>
@ -84,7 +85,6 @@
height=<xsl:value-of select="//video/@height + 48" /> height=<xsl:value-of select="//video/@height + 48" />
/&gt; /&gt;
</code> </code>
</span>
</div> </div>
<!-- <!--
@ -149,9 +149,13 @@
</xsl:template> </xsl:template>
<xsl:template name="cclicense"> <xsl:template name="video-cclicense">
<div class="cc-license">
<!--
TODO: make image paths relative
TODO: internationalized alt attributes
<div class="videoccdata">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="//video/rdf:RDF/cc:License/@rdf:about" /> <xsl:value-of select="//video/rdf:RDF/cc:License/@rdf:about" />
@ -159,6 +163,7 @@
<xsl:value-of select="$locale_strings[@id='license_conditions']" />: <xsl:value-of select="$locale_strings[@id='license_conditions']" />:
</a> </a>
<br /> <br />
-->
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="//video/rdf:RDF/cc:License/@rdf:about" /> <xsl:value-of select="//video/rdf:RDF/cc:License/@rdf:about" />
@ -167,45 +172,46 @@
unfinished bizness unfinished bizness
<xsl:value-of select="@rdf:about" /> <xsl:value-of select="@rdf:about" />
<xsl:if test="true()"> <xsl:if test="true()">
<img src="./images/cc/somerights.png" /> <img src="/images/cc/somerights.png" />
</xsl:if> </xsl:if>
--> -->
<xsl:for-each select="//video/rdf:RDF/cc:License/cc:permits"> <xsl:for-each select="//video/rdf:RDF/cc:License/cc:permits">
<!-- <!--
since we are talking about digital media here, distribution actually /is/ reproduction since we are talking about digital media here, distribution actually /is/ reproduction.
(also, i was too stupid to figure out how to test for both conditions).
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Reproduction'"> <xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Reproduction'">
<img src="./images/cc/cc-share.png" /> <img src="./images/cc/32x32/cc-share.png" />
</xsl:if> </xsl:if>
--> -->
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Distribution'"> <xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Distribution'">
<img src="./images/cc/cc-share.png" /> <img alt="share" src="/images/cc/32x32/cc-share.png" />
</xsl:if> </xsl:if>
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/DerivativeWorks'"> <xsl:if test="@rdf:resource = 'http://web.resource.org/cc/DerivativeWorks'">
<img src="./images/cc/cc-remix.png" /> <img alt="remix" src="/images/cc/32x32/cc-remix.png" />
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
<xsl:for-each select="rdf:RDF/cc:License/cc:requires">
<xsl:for-each select="//video/rdf:RDF/cc:License/cc:requires">
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Notice'"> <xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Notice'">
<img src="./images/cc/cc-by.png" /> <img alt="by" src="/images/cc/32x32/cc-by.png" />
</xsl:if> </xsl:if>
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/ShareAlike'"> <xsl:if test="@rdf:resource = 'http://web.resource.org/cc/ShareAlike'">
<img src="./images/cc/cc-sharealike.png" /> <img alt="sharealike" src="/images/cc/32x32/cc-sharealike.png" />
</xsl:if> </xsl:if>
<!-- <!--
source code doesn't make much sense in video context. source code doesn't make much sense in video context
(the blender people probably would like it)
still, this is preserved for potential future use. still, this is preserved for potential future use.
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/SourceCode'"> <xsl:if test="@rdf:resource = 'http://web.resource.org/cc/SourceCode'">
SOURCE <img src="/images/cc/32x32/cc-source-code.png" />
</xsl:if> </xsl:if>
--> --> </xsl:for-each>
</xsl:for-each>
<xsl:for-each select="rdf:RDF/cc:License/cc:prohibits"> <xsl:for-each select="//video/rdf:RDF/cc:License/cc:prohibits">
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/CommercialUse'"> <xsl:if test="@rdf:resource = 'http://web.resource.org/cc/CommercialUse'">
<img src="./images/cc/cc-noncommercial.png" /> <img alt="noncommercial" src="/images/cc/32x32/cc-noncommercial.png" />
</xsl:if> </xsl:if>
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/DerivativeWorks'"> <xsl:if test="@rdf:resource = 'http://web.resource.org/cc/DerivativeWorks'">
<img src="./images/cc/cc-noderivatives.png" /> <img alt="noderivatives" src="/images/cc/32x32/cc-noderivatives.png" />
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
</a> </a>
@ -213,6 +219,7 @@
</xsl:template> </xsl:template>
<!--
<xsl:template name="video-actions"> <xsl:template name="video-actions">
<div class="button-download"> <div class="button-download">
<a> <a>
@ -232,12 +239,13 @@
(<xsl:value-of select="format-number(number(round(//video/@filesize) div 1048576), '0.0#')" />&#160;<xsl:value-of select="$locale_strings[@id='unit_megabytes']" />) (<xsl:value-of select="format-number(number(round(//video/@filesize) div 1048576), '0.0#')" />&#160;<xsl:value-of select="$locale_strings[@id='unit_megabytes']" />)
</div> </div>
</xsl:template> </xsl:template>
-->
<xsl:template name="video-description"> <xsl:template name="video-description">
<div class="description"> <div class="description">
<h1> <h1>
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:title" /> <xsl:value-of select="//video/rdf:RDF/cc:Work/dc:title" />&#160;
<span class="duration"> <span class="duration">
<xsl:variable name="hours" select="floor(//video/@duration div 3600)" /> <xsl:variable name="hours" select="floor(//video/@duration div 3600)" />
<xsl:variable name="minutes" select="floor((//video/@duration - $hours*3600) div 60)" /> <xsl:variable name="minutes" select="floor((//video/@duration - $hours*3600) div 60)" />
@ -303,12 +311,7 @@
</td> </td>
</tr> </tr>
</table> <!--
<hr />
<table class="metadata">
<tr> <tr>
<td class="metadata-title"> <td class="metadata-title">
<xsl:value-of select="$locale_strings[@id='DC.Publisher']" />: <xsl:value-of select="$locale_strings[@id='DC.Publisher']" />:
@ -326,6 +329,7 @@
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:date" /> <xsl:value-of select="//video/rdf:RDF/cc:Work/dc:date" />
</td> </td>
</tr> </tr>
-->
<tr> <tr>
<td class="metadata-title"> <td class="metadata-title">