From c064c04b462859089e58b64fc650111677ae4696 Mon Sep 17 00:00:00 2001 From: kagel Date: Mon, 26 Sep 2016 01:50:02 +0300 Subject: [PATCH] Remove table header --- src/cljs/commiteth/issues.cljs | 57 ++-------------------------------- src/cljs/commiteth/manage.cljs | 4 +-- 2 files changed, 4 insertions(+), 57 deletions(-) diff --git a/src/cljs/commiteth/issues.cljs b/src/cljs/commiteth/issues.cljs index a0819a7..f6615ac 100644 --- a/src/cljs/commiteth/issues.cljs +++ b/src/cljs/commiteth/issues.cljs @@ -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]])) diff --git a/src/cljs/commiteth/manage.cljs b/src/cljs/commiteth/manage.cljs index 1011b09..3620aa3 100644 --- a/src/cljs/commiteth/manage.cljs +++ b/src/cljs/commiteth/manage.cljs @@ -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]]))