hello.blade.php 3.0 KB

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