added navbar and some more stuff

This commit is contained in:
pixeldesu 2014-08-17 23:45:40 +02:00
parent 97bf1f576e
commit 1e2f383758
5 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,7 @@
{include="layout"}
{include="navbar"}
<div class="container">
<h3>Hello World!</h3>
</div>
{include="footer"}

View File

@ -0,0 +1,3 @@
{include="layout"}
<h3>Hello World!</h3>
{include="footer"}

0
views/login.html Normal file
View File

29
views/navbar.html Normal file
View File

@ -0,0 +1,29 @@
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">{$site_title}</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
{if="$logged_in"}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{$screen_name}<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="ucp.php">Inbox</a></li>
<li><a href="ucp.php?page=settings">Settings</a></li>
{else}
<li><a href="ucp.php?page=login">Login</a></li>
{/if}
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>

0
views/navbar.html~ Normal file
View File