whatpylonsproject / pylonssecuredapp / templates / base.mako

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
  <head>
    <title>${self.header()} - Secured Pylons Application</title>
    ${h.stylesheet_link('/quick.css')}
  </head>

  <body>
    <div class="content">
    
      <h1 class="main">${self.header()}</h1>
      
      <% messages = h.flash.pop_messages() %>
      % if messages:
      <ul id="flash-messages">
          % for message in messages:
          <li>${message}</li>
          % endfor
      </ul>
      % endif
      
      <p id="auth-info">
      % if hasattr(c, 'userid'):
          Hi, ${c.userid}! <a href="${h.url('/logout')}">Log out</a>
      % else:
          <a href="${h.url('/login')}">Log in</a>
      % endif
      </p>
      
      ${next.body()}\
    
      <hr />
     
      <h2>Links</h2>
    
      <ul>
        <li><a href="${h.url('/')}">/</a></li>
        <li><a href="${h.url('/only_for_gustavo')}">/only_for_gustavo</a></li>
        <li><a href="${h.url('/only_for_foo')}">/only_for_foo</a></li>
        <li><a href="${h.url('/do_something_important')}">/do_something_important</a></li>
        <li><a href="${h.url('/cp/')}">/cp/</a></li>
        <li><a href="${h.url('/cp/protected_too')}">/cp/protected_too</a></li>
      </ul>
          
      <p class="footer">
        Powered by ${h.link_to('repoze.who', 'http://static.repoze.org/whodocs/')}
        and ${h.link_to('repoze.what', 'http://static.repoze.org/whatdocs/')}.
      </p>
      
    </div>
  </body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.