Remove table header

This commit is contained in:
kagel 2016-09-26 01:50:02 +03:00
parent 833953edc6
commit c064c04b46
2 changed files with 4 additions and 57 deletions

View File

@ -17,54 +17,6 @@
[:a {:href "#"} "11"]
[:a.next-page {:rel "next", :href "#"} "Next"]]]))
(defn table-list-filters []
(fn []
[:div.table-list-filters
[:div.float-left.pl-3
[:a.btn-link.selected
{:href "#"}
[:svg.octicon.octicon-issue-opened
{:aria-hidden "true",
:height "16",
:version "1.1",
:viewBox "0 0 14 16",
:width "14"}
[:path
{:d
"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}]]
" 255 Open "]
[:a.btn-link
{:href "#"}
[:svg.octicon.octicon-check
{:aria-hidden "true",
:height "16",
:version "1.1",
:viewBox "0 0 12 16",
:width "12"}
[:path {:d "M12 5l-8 8-4-4 1.5-1.5L4 10l6.5-6.5z"}]]
" 1,358 Closed "]]
[:div.float-right
[:div.select-menu.float-left
[:button.btn-link.select-menu-button
{:type "button", :aria-haspopup "true"}
" Author "]]
[:div.select-menu.float-left
[:button.btn-link.select-menu-button
{:type "button", :aria-haspopup "true"}
" Labels "]]
[:div.select-menu.float-left
[:button.btn-link.select-menu-button
{:type "button", :aria-haspopup "true"}
" Milestones "]]
[:div.select-menu.float-left
[:button.btn-link.select-menu-button
{:type "button", :aria-haspopup "true"}
" Assignee "]]
[:div.select-menu.float-left
[:button.btn-link.select-menu-button
{:type "button", :aria-haspopup "true"}
" Sort "]]]]))
(defn repo-link
[owner repo]
(let [coordinates (str owner "/" repo)
@ -134,19 +86,16 @@
"M14 1H2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h2v3.5L7.5 11H14c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1zm0 9H7l-2 2v-2H2V2h12v8z"}]]
[:span.text-small "1"]]]]]])
(defn issues-list-table [{:keys [issues-path issue-row-fn show-header?] :or {show-header? true}}]
(defn issues-list-table
[issues-path issue-row-fn]
(let [issues (rf/subscribe issues-path)]
(fn []
[:div.issues-list-table
(when show-header?
[:div.issues-toolbar.table-list-header.clearfix
[table-list-filters]])
[:ul.issues-list
(map issue-row-fn @issues)]])))
(defn issues-page []
(fn []
[:div.container
[(issues-list-table {:issues-path [:all-bounties]
:issue-row-fn issue-row})]
[(issues-list-table [:all-bounties] issue-row)]
[pagination]]))

View File

@ -84,8 +84,6 @@
(fn []
[:div.container
[:h3 "Bounties"]
[(issues-list-table {:issues-path [:owner-bounties]
:issue-row-fn issue-row
:show-header? false})]
[(issues-list-table [:owner-bounties] issue-row)]
[:h3 "Repositories"]
[repos-list]]))