hello.blade.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!DOCTYPE html>
  2. <html lang="de">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>@yield('title') Dumbo</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link href="{{ asset('css/bootstrap-superhero.min.css') }}" type="text/css" rel="stylesheet">
  8. <link href="{{ asset('css/general.css') }}" type="text/css" rel="stylesheet">
  9. @yield('styles')
  10. </head>
  11. <body><div id="wrap">
  12. <div class="navbar navbar-inversex navbar-static-top" role="navigation">
  13. <div class="container">
  14. <div class="navbar-header">
  15. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  16. <span class="glyphicon glyphicon-menu-hamburger" aria-hidden="true"></span>
  17. </button>
  18. {{ HTML::link('/', 'Dumbo', array("class" => "navbar-brand")) }}
  19. </div>
  20. <div class="navbar-collapse collapse">
  21. <ul class="nav navbar-nav">
  22. <li>{{ HTML::link('beliebt', 'Beliebt (Wertung)') }}</li>
  23. <li>{{ HTML::link('vorgeschlagen', 'Vorgeschlagen (Datum)') }}</li>
  24. <li>{{ HTML::link('gesehen', 'Gesehen') }}</li>
  25. <li>{{ HTML::link('abgelehnt', 'Abgelehnt') }}</li>
  26. <li>{{ HTML::link('neu', 'Film vorschlagen')}}</li>
  27. <li>{{ HTML::link('stats', 'Statistiken') }}</li>
  28. </ul>
  29. <ul class="nav navbar-nav pull-right">
  30. <li><a href="http://git.ascarion.org/daniel/dumbo">Quellcode</a></li>
  31. @if(is_null(Auth::user()))
  32. <li>{{ HTML::link('login', 'Login') }}</li>
  33. @else
  34. <li class="dropdown">
  35. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  36. <img src="{{ Auth::user()->getAvatar() }}" height="25" }}>
  37. {{Auth::user()->name}} <span class="caret"></span></a>
  38. <ul class="dropdown-menu">
  39. <li>{{ HTML::link('settings', 'Einstellungen')}}</li>
  40. @if(Auth::user()->admin)
  41. <li>{{ HTML::link('users', 'Benutzerverwaltung')}}</li>
  42. <li>{{ HTML::link('news', 'News erstellen')}}</li>
  43. @endif
  44. <li class="divider"></li>
  45. <li>{{ HTML::link('logout', "Logout")}}
  46. </ul>
  47. </li>
  48. @endif
  49. </ul>
  50. </div>
  51. </div>
  52. </div>
  53. @if(isset($message))
  54. <div class="container">
  55. <div class="alert alert-success alert-dismissable">
  56. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  57. {{ $message }}
  58. </div>
  59. </div>
  60. @endif
  61. @if(Session::has('message'))
  62. <div class="container">
  63. <div class="alert alert-success alert-dismissable">
  64. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  65. {{ Session::get('message') }} <?php Session::forget('message'); ?>
  66. </div>
  67. </div>
  68. @endif
  69. <div class="container" id="content">
  70. @yield('content')
  71. </div>
  72. <div id="push"></div>
  73. </div>
  74. <footer id="footer">
  75. <div class="container">
  76. <hr>
  77. <small>&copy; 2013-{{ date("Y") }} &mdash; Daniel M&uuml;llers</small>
  78. </div>
  79. </footer>
  80. <script type="text/javascript" src="{{ asset('js/jquery-2.0.3.min.js') }}"></script>
  81. <script type="text/javascript" src="{{ asset('js/bootstrap.min.js') }}"></script>
  82. @yield('script')
  83. </body>
  84. </html>