From d4106bf2f3a22ed3c1331f9481d5dad00f8db468 Mon Sep 17 00:00:00 2001 From: Michael Vitz Date: Thu, 11 Dec 2014 12:29:42 +0100 Subject: [PATCH] Add nav HTML element Instead of a header with role navigation now the HTML5 element nav is used. Relates to #130. --- src/statuses/views/layout.clj | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/statuses/views/layout.clj b/src/statuses/views/layout.clj index f679677..ee58b79 100644 --- a/src/statuses/views/layout.clj +++ b/src/statuses/views/layout.clj @@ -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")