Skip to content

Commit

Permalink
Add nav HTML element
Browse files Browse the repository at this point in the history
Instead of a header with role navigation now the HTML5 element nav is
used.

Relates to innoq#130.
  • Loading branch information
mvitz committed Apr 8, 2015
1 parent 4c680f5 commit d8ccefd
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/statuses/views/layout.clj
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,18 @@
:type "application/atom+xml"}]
[:style "body { }"]]
[:body
[:header.navbar.navbar-default.navbar-fixed-top {:role "navigation"}
[:div.container-fluid
[:div.navbar-header
[:button.navbar-toggle.collapsed {:type "button" :data-target ".navbar-collapse" :data-toggle "collapse"}
[:span.sr-only "Toggle navigation"]
[:span.icon-bar]
[:span.icon-bar]
[:span.icon-bar]]
[:a {:class "navbar-brand", :href "/statuses/updates"} "Statuses"]]
[:div.collapse.navbar-collapse
[:ul.nav.navbar-nav (nav-links username)]]]]
[:header
[:nav.navbar.navbar-default.navbar-fixed-top {:role "navigation"}
[:div.container-fluid
[:div.navbar-header
[:button.navbar-toggle.collapsed {:type "button" :data-target ".navbar-collapse" :data-toggle "collapse"}
[:span.sr-only "Toggle navigation"]
[:span.icon-bar]
[:span.icon-bar]
[:span.icon-bar]]
[:a {:class "navbar-brand", :href "/statuses/updates"} "Statuses"]]
[:div.collapse.navbar-collapse
[:ul.nav.navbar-nav (nav-links username)]]]]]
[:main.container-fluid.tweet-wrapper content]
[:footer footer]
(include-js "//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js")
Expand Down

0 comments on commit d8ccefd

Please sign in to comment.