12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- global $context;
- ?>
- <!doctype html>
- <head>
- <meta charset="utf8"/>
- <title>Bugs</title>
- <script src="<?=Router::$base?>/js/juju/core.js"></script>
- <script src="<?=Router::$base?>/js/juju/page.js"></script>
- <script src="<?=Router::$base?>/js/juju/dom.js"></script>
- <script src="<?=Router::$base?>/js/juju/keyboard.js"></script>
- <script src="<?=Router::$base?>/js/juju/mouse.js"></script>
- <link rel="stylesheet" href="<?=Router::$base?>/css/main.css"></link>
- </head>
- <body>
- <?php
- if(Bugs::$user){
- ?>
- Hello World!
- <a href="<?=Router::url(Router::$base.'/timeline')?>">Timeline</a>
- <a href="<?=Router::url(Router::$base.'/sessions')?>">Sessions</a>
- <a href="<?=Router::url(Router::$base.'/~'.Bugs::$user->name)?>">Profile</a>
- <a href="<?=Router::url(Router::$base.'/logout')?>">Logout</a>
- <?php
- echo Bugs::template('subs/projects')
- ->run(Bugs::$user);
- echo Bugs::template('subs/issues')
- ->run(Bugs::$user);
- }else{
- ?>
- <a href="<?=Router::url(Router::$base.'/login')?>">Login</a>
- <a href="<?=Router::url(Router::$base.'/register')?>">Register</a>
- <?php
- }
- ?>
- </body>
- </html>
|