Sha256: 0d6e193ad0166970e43d1c080c51e1a3e7497e6f32070458de31f82706d59d90

Contents?: true

Size: 1018 Bytes

Versions: 1

Compression:

Stored size: 1018 Bytes

Contents

<?xml version="1.0"?>

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

	<x:cell id="main">
<?r cache('entries', :admin => session[:owner]) do ?>
<?r
	if @entries 
		for entry in @entries 
?>
			<div class="entry">
				<h2 class="date">#{entry.create_time.strftime('%B %e, %G')}</h2>
				<div class="post">
					<h3 class="title">#{entry.title}</h3>
					#{entry.body}
					<div class="footer">
						[[posted by]] #{entry.author} at <a href="#{entry.to_href}">#{entry.create_time.strftime('%R %p')}</a> | 
						<a href="#{entry.to_href}#comments">#{entry.comments.size} comments</a>.
<?r	if session[:owner] ?>			
						[<a href="del_entry?oid=#{entry.oid}">del</a>]
<?r end ?>
					</div>
				</div>
			</div>
<?r
		end 
	else
?>  
		no entries
<?r end ?>

	<div class="pager">
		#{@pager.navigation}
		<div class="clear">.</div>
	</div>
	
<?r end ?>

<?r if session[:owner] ?>
	<render href="entry_form" />
<?r end ?>
	
	</x:cell>
	
	<x:cell id="side">
		<render href="recent_posts" />
	</x:cell>
	
</x:page>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nitro-0.17.0 examples/blog/src/views/index.xhtml