Skip to content

Commit

Permalink
Remove link from preferences
Browse files Browse the repository at this point in the history
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 innoq#130.
  • Loading branch information
mvitz committed May 1, 2015
1 parent c32358b commit a6f81e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/statuses/views/layout.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)])
Expand Down

0 comments on commit a6f81e9

Please sign in to comment.