Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (48 sloc) 2.626 kb
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta charset="${response.charset}" />
<title py:block="master_title">Your generic title goes here</title>
<link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/bootstrap.min.css')}" />
<link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/bootstrap-responsive.min.css')}" />
<link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/style.css')}" />
<py:block name="head"></py:block>
</head>
<body>
<div class="container">
<!-- Navbar -->
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#"><img src="${tg.url('/images/turbogears_logo.png')}" alt="TurboGears 2"/> ${getattr(tmpl_context, 'project_name', 'turbogears2')}</a>
<ul class="nav nav-pills">
<li class="${('', 'active')[self.defined('page') and page=='index']}"><a href="${tg.url('/')}">Welcome</a></li>
<li class="${('', 'active')[self.defined('page') and page=='about']}"><a href="${tg.url('/about')}">About</a></li>
<li class="${('', 'active')[self.defined('page') and page=='data']}"><a href="${tg.url('/data')}">Serving Data</a></li>
<li class="${('', 'active')[self.defined('page') and page=='environ']}"><a href="${tg.url('/environ')}">WSGI Environment</a></li>
</ul>
<ul class="nav nav-pills pull-right" py:if="tg.auth_stack_enabled">
<li py:if="not request.identity"><a href="${tg.url('/login')}">Login</a></li>
<li py:if="request.identity"><a href="${tg.url('/logout_handler')}">Logout</a></li>
<li py:if="request.identity"><a href="${tg.url('/admin')}">Admin</a></li>
</ul>
</div>
</div>
</div>
<!-- Flash messages -->
<py:with vars="flash=tg.flash_obj.render('flash', **{'use_js':False})">
<div class="row"><div class="span8 offset2">
<div py:if="flash" py:replace="literal(flash)" />
</div></div>
</py:with>
<!-- Main included content -->
<py:block name="body"></py:block>
<!-- Footer included from an external template -->
<footer class="footer hidden-tablet hidden-phone">
<a class="pull-right" href="http://www.turbogears.org/2.2/"><img style="vertical-align:middle;" src="${tg.url('/images/under_the_hood_blue.png')}" alt="TurboGears 2" /></a>
<p>Copyright &#xA9; ${getattr(tmpl_context, 'project_name', 'TurboGears2')} ${h.current_year()}</p>
</footer>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.