We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

menu.tpl 1.85 KB
Newer Older
Matt Lee's avatar
Matt Lee committed
1 2 3 4 5 6 7 8 9 10 11 12
<ul class="nav navbar-nav">
{if ($logged_in)}
        <li>

	    </a>
	</li>
<li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">Signed in as <span class="glyphicon glyphicon-user">
	    </span>
{t name=$this_user->name}%1{/t} <b class="caret"></b></a>
        <ul class="dropdown-menu">
          <li><a href="{$this_user->getURL()}">	    <span class="glyphicon glyphicon-user"></span> {$this_user->name} <span class="badge">SUPPORTER</span></a></li>
Matt Lee's avatar
Matt Lee committed
13 14
          <li><a href="{$this_user->getURL()}/stats">	    <span class="glyphicon glyphicon-stats"></span> {$this_user->name}/stats</a></li>
          <li><a href="{$this_user->getURL()}/recent-tracks">	    <span class="glyphicon glyphicon-headphones"></span> {$this_user->name}/recent</a></li>
15
          <li><a href="https{$base_url}/login.php?action=logout">
Matt Lee's avatar
Matt Lee committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
	    <span class="glyphicon glyphicon-log-out">
	    </span>
	    {t}Logout{/t}
</a></li>
        </ul>
      </li>
	<li>
	  <a href="{$base_url}/listen.php">
	    <span class="glyphicon glyphicon-headphones"></span>
	    {t}Listen{/t}
	  </a>
	</li>
        <li>
	  <a href="{$base_url}/popular.php">
	    <span class="glyphicon glyphicon-flash">
	    </span>
	    {t}Popular{/t}
	  </a>
	</li>
{else}
	<li>
	  <a href="{$base_url}/login.php">
	    <span class="glyphicon glyphicon-log-in">
	    </span>
	    {t}Log in{/t}
	</a>
	</li>
	<li>
44
	  <a href="https{$base_url}/listen.php">
Matt Lee's avatar
Matt Lee committed
45 46 47 48 49 50 51 52 53 54 55 56 57
	    <span class="glyphicon glyphicon-headphones">
	    </span>
	    {t}Listen{/t}
	  </a>
	</li>
	<li>
	  <a href="{$base_url}/popular-page.php">
	    <span class="glyphicon glyphicon-flash">
	    </span>
	    {t}Popular{/t}
	  </a>
	</li>
	<li>
58
	  <a href="https{$base_url}/register.php">
Matt Lee's avatar
Matt Lee committed
59 60 61 62 63 64 65 66 67 68
	    <span class="glyphicon glyphicon-ok">
	    </span>
	    {t}Sign up{/t}
	  </a>
	</li>
{/if}
</ul>
{if ($logged_in)}
<p class="navbar-text pull-right"></p>
{/if}