fixed comment layout and stuff

(see video-test.xml for further information)

i still don't like nested divs but i use them because i could not 
imagine anything else in the middle of the night



git-svn-id: http://yolanda.mister-muffin.de/svn@129 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2007-10-24 04:29:42 +00:00
parent eabba95088
commit 0a36e43d9c
5 changed files with 81 additions and 26 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -37,7 +37,7 @@
<str id="error_missing_file">You did not supply a file.</str> <str id="error_missing_file">You did not supply a file.</str>
<str id="error_missing_DC.Title">You did not supply a title.</str> <str id="error_missing_DC.Title">You did not supply a title.</str>
<str id="error_missing_DC.Creator">You did not supply a creator.</str> <str id="error_missing_DC.Creator">You did not supply a creator.</str>
<str id="error_missing_DC.Subject">You did not supply a subject.</str> <str id="error_missing_DC.Subject">You did not supply any keywords.</str>
<str id="error_missing_DC.Description">You did not supply a description.</str> <str id="error_missing_DC.Description">You did not supply a description.</str>
<str id="error_missing_DC.Publisher">You did not supply a publisher.</str> <str id="error_missing_DC.Publisher">You did not supply a publisher.</str>
<str id="error_missing_DC.Title">You did not supply a title.</str> <str id="error_missing_DC.Title">You did not supply a title.</str>
@ -74,18 +74,20 @@
<str id="instruction_file">Specify the file you want to upload.</str> <str id="instruction_file">Specify the file you want to upload.</str>
<str id="instruction_title">State the title of the video.</str> <str id="instruction_title">State the title of the video.</str>
<str id="instruction_creator">Specify the creator of the video.</str> <str id="instruction_creator">Specify the creator of the video.</str>
<str id="instruction_subject">State the overall subject of the video.</str> <str id="instruction_subject">State some keywords, separated by commas.</str>
<str id="instruction_description">Describe the video in natural language.</str> <str id="instruction_description">Describe the video in natural language.</str>
<str id="instruction_source">Specify the source, preferably by URL.</str> <str id="instruction_source">Specify the source, preferably by URL.</str>
<str id="instruction_language">State the language of the video.</str> <str id="instruction_language">State the language of the video.</str>
<str id="instruction_coverage">Specify the time and location covered.</str> <str id="instruction_coverage">Specify the time and location covered.</str>
<str id="this_is_page_1">(This is page 1 of 3.)</str> <str id="this_is_page_1">This is page 1 of 3.</str>
<str id="this_is_page_2">(This is page 2 of 3.)</str> <str id="this_is_page_2">This is page 2 of 3.</str>
<str id="this_is_page_2">(This is page 3 of 3.)</str> <str id="this_is_page_2">This is page 3 of 3.</str>
<!-- video page --> <!-- video page -->
<str id="download_video">download video</str> <str id="download_video">download video</str>
<str id="license_conditions">license conditions</str> <str id="license_conditions">license conditions</str>
<str id="comment_on_video">Flamewar area below. Proceed with Caution.</str>
<str id="comment_post">post comment</str>
<!-- dublin core entities --> <!-- dublin core entities -->
<str id="DC.Title">title</str> <str id="DC.Title">title</str>

View file

@ -198,6 +198,30 @@ div
width: 50%; width: 50%;
} }
div.comments
{
line-height: 2.5em;
margin: 1.5em;
text-align: center;
}
div.comments div.comment
{
margin: 0.75em;
line-height: 1.5em;
}
div.commentform
{
text-align: center;
}
div.commentform form
{
line-height: 2.5em;
text-align: center;
}
div.toplists div.toplists
{ {
text-align: center; text-align: center;
@ -226,4 +250,14 @@ hr
span.protip span.protip
{ {
color: #606060; color: #606060;
}
span.protip:after
{
content: " )";
}
span.protip:before
{
content: "( ";
} }

View file

@ -9,7 +9,6 @@
xmlns:cc="http://web.resource.org/cc/" xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> >
<message type="information" text="information_logged_in" />
<video> <video>
<rdf:RDF> <rdf:RDF>
<cc:Work rdf:about="./videos/zwobot-01-test.ogg"> <cc:Work rdf:about="./videos/zwobot-01-test.ogg">
@ -43,4 +42,9 @@
</cc:License> </cc:License>
</rdf:RDF> </rdf:RDF>
</video> </video>
<comments>
<comment username="longcat">gnol si tacgnol.</comment>
<comment username="tallpet">tallpet is tall, tall, tall.</comment>
<comment username="long">LUNGCAT !!! ITZ LUNGER !!1</comment>
</comments>
</page> </page>

View file

@ -410,7 +410,7 @@
--> -->
</xsl:for-each> </xsl:for-each>
<xsl:for-each select="rdf:RDF/cc:License/cc:prohibits"> <xsl:for-each select="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 src="./images/cc/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'">
@ -487,7 +487,7 @@
</tr> </tr>
</table> </table>
<table class="videometadata"> <table class="referer">
<xsl:for-each select="/page/referers/referer"> <xsl:for-each select="/page/referers/referer">
<tr> <tr>
<td class="leftcell"> <td class="leftcell">
@ -499,31 +499,46 @@
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</table> </table>
<table class="videometadata">
<xsl:for-each select="/page/comments/comment">
<tr>
<td class="leftcell">
<xsl:value-of select="@user" />
</td>
<td class="rightcell">
<xsl:value-of select="@text" />
</td>
</tr>
</xsl:for-each>
</table>
<div class=""> </xsl:template>
<xsl:template match="comments">
<div class="comments">
<span class="protip">
<xsl:value-of select="$locale_strings/str[@id='comment_on_video']" />
</span>
<br />
<xsl:for-each select="comment">
<div class="comment">
<a>
<xsl:attribute name="href">
./user/<xsl:value-of select="@username" />
</xsl:attribute>
<xsl:value-of select="@username" />
</a>:
<br />
<xsl:value-of select="." />
</div>
</xsl:for-each>
</div>
<div class="commentform">
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" /> <!--
a bit of action, please
-->
</xsl:attribute> </xsl:attribute>
<fieldset> <fieldset>
<xsl:value-of select="$locale_strings/str[@id='DC.Date']" />
<br /> <br />
<textarea name="comment" cols="50" rows="5"></textarea> <textarea name="comment" cols="30" rows="3" />
<br /> <br />
<input type="submit" name="send" /> <input type="submit" name="send">
<xsl:attribute name="value">
<xsl:value-of select="$locale_strings/str[@id='comment_post']" />
</xsl:attribute>
</input>
</fieldset> </fieldset>
</form> </form>
</div> </div>