From 2bfc991c33334918470c634f857f5687b5f6780f Mon Sep 17 00:00:00 2001 From: Michael Vitz Date: Thu, 11 Dec 2014 12:47:06 +0100 Subject: [PATCH] Remove link from preferences Removes warnings from w3c validator that label and input are not valid inside an a element. Because preferences aren't links anyway this increases semantic as well. Relates to #130. --- src/statuses/views/layout.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/statuses/views/layout.clj b/src/statuses/views/layout.clj index ee58b79..1e8665e 100644 --- a/src/statuses/views/layout.clj +++ b/src/statuses/views/layout.clj @@ -7,10 +7,10 @@ [statuses.views.common :refer [icon]])) (defn preference [id title iconname] - [:li [:a {:name id} - (icon iconname) - [:label {:for (str "pref-" id)} title] - (check-box {:class "pref" :disabled "disabled"} (str "pref-" id))]]) + [:li [:p.navbar-text + (icon iconname) + [:label {:for (str "pref-" id)} title] + (check-box {:class "pref" :disabled "disabled"} (str "pref-" id))]]) (defn nav-link [url title iconname] [:li (link-to url (icon iconname) title)])