hello.blade.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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('neu', 'Film vorschlagen')}}
  26. </ul>
  27. <ul class="nav navbar-nav pull-right">
  28. @if(is_null(Auth::user()))
  29. <li>{{ HTML::link('login', 'Login') }}</li>
  30. @else
  31. <li class="dropdown">
  32. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  33. <img src="{{ Auth::user()->getAvatar() }}" height="25" }}>
  34. {{Auth::user()->name}} <span class="caret"></span></a>
  35. <ul class="dropdown-menu">
  36. <li>{{ HTML::link('settings', 'Einstellungen')}}</li>
  37. @if(Auth::user()->admin)
  38. <li>{{ HTML::link('users', 'Benutzerverwaltung')}}</li>
  39. <li>{{ HTML::link('news', 'News erstellen')}}</li>
  40. @endif
  41. <li class="divider"></li>
  42. <li>{{ HTML::link('logout', "Logout")}}
  43. </ul>
  44. </li>
  45. @endif
  46. </ul>
  47. </div>
  48. </div>
  49. </div>
  50. @if(isset($message))
  51. <div class="container">
  52. <div class="alert alert-success alert-dismissable">
  53. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  54. {{ $message }}
  55. </div>
  56. </div>
  57. @endif
  58. @if(Session::has('message'))
  59. <div class="container">
  60. <div class="alert alert-success alert-dismissable">
  61. <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
  62. {{ Session::get('message') }} <?php Session::forget('message'); ?>
  63. </div>
  64. </div>
  65. @endif
  66. <div class="container" id="content">
  67. @yield('content')
  68. </div>
  69. <div id="push"></div>
  70. </div>
  71. <footer id="footer">
  72. <div class="container">
  73. <hr>
  74. <small>&copy; 2013 &mdash; Daniel M&uuml;llers</small>
  75. </div>
  76. </footer>
  77. <script type="text/javascript" src="{{ asset('js/jquery-2.0.3.min.js') }}"></script>
  78. <script type="text/javascript" src="{{ asset('js/bootstrap.min.js') }}"></script>
  79. @yield('script')
  80. </body>
  81. </html>