Sha256: ed2357d9db84556a7b0235c50e257d30af0269b1d3664006e8d49885bcd50532
Contents?: true
Size: 963 Bytes
Versions: 2
Compression:
Stored size: 963 Bytes
Contents
<?xml version="1.0"?> <root xmlns:x="http://www.navel.gr/xml/shader.xsd"> <h2>#{@entry.comments.size} Comments:</h2> <?r if @entry.comments.each do |comment| ?> <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.empty? then ?> 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
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.17.0 | examples/blog/src/views/comments.xhtml |
nitro-0.17.0 | examples/no_xsl_blog/public/comments.xhtml |