mirror of
https://github.com/status-im/open-bounty.git
synced 2025-02-09 16:13:39 +00:00
Remove table header
This commit is contained in:
parent
833953edc6
commit
c064c04b46
@ -17,54 +17,6 @@
|
|||||||
[:a {:href "#"} "11"]
|
[:a {:href "#"} "11"]
|
||||||
[:a.next-page {:rel "next", :href "#"} "Next"]]]))
|
[: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
|
(defn repo-link
|
||||||
[owner repo]
|
[owner repo]
|
||||||
(let [coordinates (str 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"}]]
|
"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"]]]]]])
|
[: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)]
|
(let [issues (rf/subscribe issues-path)]
|
||||||
(fn []
|
(fn []
|
||||||
[:div.issues-list-table
|
[:div.issues-list-table
|
||||||
(when show-header?
|
|
||||||
[:div.issues-toolbar.table-list-header.clearfix
|
|
||||||
[table-list-filters]])
|
|
||||||
[:ul.issues-list
|
[:ul.issues-list
|
||||||
(map issue-row-fn @issues)]])))
|
(map issue-row-fn @issues)]])))
|
||||||
|
|
||||||
(defn issues-page []
|
(defn issues-page []
|
||||||
(fn []
|
(fn []
|
||||||
[:div.container
|
[:div.container
|
||||||
[(issues-list-table {:issues-path [:all-bounties]
|
[(issues-list-table [:all-bounties] issue-row)]
|
||||||
:issue-row-fn issue-row})]
|
|
||||||
[pagination]]))
|
[pagination]]))
|
||||||
|
@ -84,8 +84,6 @@
|
|||||||
(fn []
|
(fn []
|
||||||
[:div.container
|
[:div.container
|
||||||
[:h3 "Bounties"]
|
[:h3 "Bounties"]
|
||||||
[(issues-list-table {:issues-path [:owner-bounties]
|
[(issues-list-table [:owner-bounties] issue-row)]
|
||||||
:issue-row-fn issue-row
|
|
||||||
:show-header? false})]
|
|
||||||
[:h3 "Repositories"]
|
[:h3 "Repositories"]
|
||||||
[repos-list]]))
|
[repos-list]]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user