navbar.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <div class="grid header">
  2. <!-- <div class="logo col-1-3">
  3. </div>
  4. <ul class="nav navbar-nav navbar-right">
  5. {% if user %}
  6. <li class="dropdown">
  7. <a href="#" data-toggle="dropdown" class="navbar-avatar dropdown-toggle">
  8. {% if user.picture %}
  9. <img src="{{ user.picture }}" width="30px" style="border-radius: 100%;">
  10. {% else %}
  11. <img src="{{ user.gravatar }}" width="30px" style="border-radius: 100%;">
  12. {% endif %}
  13. {% if user.name %}
  14. {{ user.name }}
  15. {% elif user.email %}
  16. {{ user.email }}
  17. {% else %}
  18. {{ user.id }}
  19. {% endif %}
  20. <i class="caret"></i>
  21. </a>
  22. <ul class="dropdown-menu">
  23. <li><a href="/account">Minha Conta</a></li>
  24. <li class="divider"></li>
  25. <li><a href="/logout">Sair</a></li>
  26. </ul>
  27. </li>
  28. {% else %}
  29. <li class="{% if title == 'Entrar' %}active{% endif %}"><a href="/login">Entrar</a></li>
  30. <li class="{% if title == 'Criar Conta' %}active{% endif %}"><a href="/signup">Criar Conta</a></li>
  31. {% endif %}
  32. </ul>
  33. </div> -->
  34. <nav class="navbar navbar-default ">
  35. <div class="navbar-header">
  36. <button type="button" data-toggle="collapse" data-target="#navbar" class="navbar-toggle collapsed">
  37. <span class="sr-only">Toggle navigation</span>
  38. <span class="icon-bar"></span>
  39. <span class="icon-bar"></span>
  40. <span class="icon-bar"></span>
  41. </button>
  42. <a href="{{ site.baseurl }}/" style="border-bottom: 0px solid;"><img src="/libreflix_pride.png" width="150px" style="border-bottom: 0px solid; opacity:0; -moz-transition: opacity 2s; -webkit-transition: opacity 2s; -o-transition: opacity 2s; transition: opacity 2s; margin-right: 30px;" onload="this.style.opacity='1';"></a>
  43. </div>
  44. <div id="navbar" class="navbar-collapse collapse">
  45. <ul class="nav navbar-nav">
  46. <!-- <li><a href="/">Home</a></li> -->
  47. <li><a href="/t/docs">Docs</a></li>
  48. <li><a href="/t/filmes">Filmes</a></li>
  49. <li><a href="/t/curtas">Curtas</a></li>
  50. <li><a href="/t/series">Séries</a></li>
  51. <li><a href="/t/classicos">Clássicos</a></li>
  52. <li><a href="/t/nacionais">Nacionais</a></li>
  53. <li><a href="/t/kids">Kids</a></li>
  54. </ul>
  55. <ul class="nav navbar-nav navbar-right">
  56. {% if user %}
  57. <li><a href="/novo">Nova Produção</a></li>
  58. <li class="dropdown">
  59. <a href="#" data-toggle="dropdown" class="navbar-avatar dropdown-toggle">
  60. {% if user.picture %}
  61. <img src="{{ user.picture }}" width="20px" style="border-radius: 100%;">
  62. {% else %}
  63. <img src="{{ user.gravatar }}" width="20px" style="border-radius: 100%;">
  64. {% endif %}
  65. <!-- {% if user.name %}
  66. {{ user.name }}
  67. {% elif user.email %}
  68. {{ user.email }}
  69. {% else %}
  70. {{ user.id }}
  71. {% endif %} -->
  72. <i class="caret"></i>
  73. </a>
  74. <ul class="dropdown-menu">
  75. <li><a href="/account">Minha Conta</a></li>
  76. <li class="divider"></li>
  77. <!-- <li><a href="#">Minhas Produções</a></li>
  78. <li class="divider"></li> -->
  79. <li><a href="/logout">Sair</a></li>
  80. </ul>
  81. </li>
  82. {% else %}
  83. <li class="{% if title == 'Entrar' %}active{% endif %}"><a href="/login">Entrar</a></li>
  84. <!-- <li class="{% if title == 'Criar Conta' %}active{% endif %}"><a href="/signup">Criar Conta</a></li> -->
  85. {% endif %}
  86. </ul>
  87. </div>
  88. </nav>
  89. </div>