<div class="navbar navbar-fixed-top navbar-inverse navbar-site offset-fixed">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="<?php echo $this->url('home') ?>"></a>
<ul class="nav pull-right user">
<?php
$userId = $this->user()->getId();
if ($userId):
?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="icon-user icon-white"></i>
<?php echo $this->escapeHtml($userId) ?> <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="<?php echo $this->url('user', array('user' => $userId)) ?>">Profile</a></li>
<li><a href="<?php echo $this->url('logout') ?>">Log out</a></li>
<li class="divider"></li>
<li><a href="<?php echo $this->url('about') ?>" onclick="hopscotch.startTour(tour); return false;">New to Swarm?</a></li>
<li><a href="<?php echo $this->url('about') ?>" onclick="swarm.about.show(); return false;">About Swarm</a></li>
</ul>
</li>
<?php else: ?>
<li><a href="<?php echo $this->url('login') ?>" onclick="swarm.user.login(); return false;">Log in</a></li>
<?php endif ?>
</ul>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="<?php echo $this->url('home') ?>">Home</a></li>
<li><a href="<?php echo $this->url('reviews') ?>">Reviews</a></li>
<li><a href="<?php echo $this->url('file') ?>">Files</a></li>
<li><a href="<?php echo $this->url('changes') ?>">History</a></li>
<li><a href="<?php echo $this->url('jobs') ?>">Jobs</a></li>
<li><a href="/docs/">Help</a></li>
</ul>
</div>
</div>
</div>
</div>
# |
Change |
User |
Description |
Committed |
|
#1
|
8424 |
Allan Yu |
Swarm product tour hack, using hopscotch product tour framework |
|
|