asciinema.org/app/views/layouts/_header.html.slim

37 lines
1.1 KiB
Plaintext
Raw Normal View History

header.navbar.navbar-default[role="navigation"]
.container
.navbar-header
button.navbar-toggle[type="button" data-toggle="collapse" data-target=".navbar-ex1-collapse"]
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand href="/"
= image_tag 'new-logo-bars.png'
.collapse.navbar-collapse.navbar-ex1-collapse
ul.nav.navbar-nav
li
2014-02-12 19:59:58 +00:00
= link_to "Browse", category_path(:featured)
li
= link_to "Docs", docs_index_path
li
= link_to "Blog", 'http://blog.asciinema.org'
ul.nav.navbar-nav.navbar-right.session-info
- if current_user
li.dropdown
a.dropdown-toggle[href="#" data-toggle="dropdown"]
= current_user.avatar_image_tag
= current_user.display_name
b.caret
ul.dropdown-menu
li
a href=profile_path(current_user) Profile
li
a href=edit_user_path Settings
li
a.logout href=logout_path Log out
- else
li
2014-10-12 18:36:31 +00:00
a#log-in href=new_login_path Log in