Sha256: e37cc86f10f743401574a7bcfecd1f62541f895cb25a56972a987e0c3fa1a263

Contents?: true

Size: 978 Bytes

Versions: 18

Compression:

Stored size: 978 Bytes

Contents

<?xml version="1.0"?>

<root xmlns:x="http://www.navel.gr/xml/shader.xsd">

<h2>#{@entry.comments_count} Comments:</h2>			
<?r	
if comments = @entry.comments
	for comment in comments
?>
	<div class="comment">
		#{comment.body}
		<div class="footer">
			by #{comment.author} at #{comment.create_time.strftime('%R %p')}
<?r	if session[:owner] ?>			
			[<a href="del_comment?oid=#{comment.oid}">del</a>]
<?r end ?>
		</div>
	</div>
<?r		
	end
else
?>
no comments.
<?r		end ?>
<form id="new_comment" action="new_comment" method="post">
	<input type="hidden" name="entry_oid" value="#{@entry.oid}" />
	<p>
		<b>Your name:</b><br />
		<input type="text" name="author" value="#{session[:username]}" />
		<x:error attr="author" />
		<x:error attr="title" />
	</p>
	<p>
		<b>Write your thoughts:</b><br />
		<textarea name="body" style="width: 90%; height: 100px">#{}</textarea>
		<x:error attr="body"><br /></x:error>
	</p>
	<input type="submit" value="Add comment" />
</form>

</root>

Version data entries

18 entries across 9 versions & 1 rubygems

Version Path
nitro-0.10.0 examples/no_xsl_blog/root/comments.xhtml
nitro-0.10.0 examples/blog/root/comments.xhtml
nitro-0.11.0 examples/no_xsl_blog/root/comments.xhtml
nitro-0.11.0 examples/blog/root/comments.xhtml
nitro-0.12.0 examples/no_xsl_blog/root/comments.xhtml
nitro-0.12.0 examples/blog/root/comments.xhtml
nitro-0.13.0 examples/no_xsl_blog/public/comments.xhtml
nitro-0.13.0 examples/blog/src/views/comments.xhtml
nitro-0.14.0 examples/no_xsl_blog/public/comments.xhtml
nitro-0.14.0 examples/blog/src/views/comments.xhtml
nitro-0.15.0 examples/no_xsl_blog/public/comments.xhtml
nitro-0.15.0 examples/blog/src/views/comments.xhtml
nitro-0.16.0 examples/blog/src/views/comments.xhtml
nitro-0.16.0 examples/no_xsl_blog/public/comments.xhtml
nitro-0.9.3 examples/no_xsl_blog/root/comments.xhtml
nitro-0.9.3 examples/blog/root/comments.xhtml
nitro-0.9.5 examples/no_xsl_blog/root/comments.xhtml
nitro-0.9.5 examples/blog/root/comments.xhtml