You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.1 KiB

  1. <?php $this->layout('layout', ['title' => $title]); ?>
  2. <div class="ui fixed inverted menu">
  3. <div class="ui container">
  4. <a href="/" class="header item">
  5. <img class="logo" src="/assets/telegraph-icon-white.png">
  6. Telegraph
  7. </a>
  8. <a href="/dashboard" class="item">Dashboard</a>
  9. <a href="/api" class="item">API</a>
  10. <div class="ui right simple dropdown item">
  11. <img class="ui mini circular image" src="<?= $user->photo ?: '/assets/default-user.jpg' ?>"> <i class="dropdown icon"></i>
  12. <div class="menu">
  13. <div class="header">Websites</div>
  14. <? foreach($accounts as $account): ?>
  15. <a class="item" href="/dashboard?account=<?= $account->id ?>"><?= $this->e($account->name) ?></a>
  16. <? endforeach; ?>
  17. <div class="divider"></div>
  18. <a class="item" href="/new-site"><i class="plus icon"></i> New Site</a>
  19. <a class="item" href="/profile"><i class="user icon"></i> Profile</a>
  20. <div class="divider"></div>
  21. <a class="item" href="/logout"><i class="sign out icon"></i> Log Out</a>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. <?= $this->section('content') ?>