Sha256: 930e3dac42862239b3f1508fa71ebe675a3c1d27899b25d106419d6a41978fce
Contents?: true
Size: 995 Bytes
Versions: 1
Compression:
Stored size: 995 Bytes
Contents
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Basic Nitro-Auth Example</title> </head> <body> <h1>Basic Nitro-Auth Example</h1> <table> <tr> <td class="sidebar"> <a href="/">List sites</a> <?r if user.has_role? Auth.admin_role ?> <br/><a href="/new_site">Add a new site</a> <?r end ?> </td> <td> <table> <?r for site in @sites ?> <tr> <td><a href="#{site.url}">#{site.title}</a></td> <td>Located at #{site.url}</td> <td if="user.has_role? Auth.admin_role"> Owned by #{site.owner.name} </td> </tr> <?r end ?> </table> </td> </tr> </table> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-auth-0.2.0 | examples/basic/src/basic/view/index.xhtml |