Show fork icon for forks in repos view
This commit is contained in:
parent
458de5f21d
commit
cb86a902ac
|
@ -1,5 +1,6 @@
|
|||
(ns commiteth.repos
|
||||
(:require [re-frame.core :as rf]))
|
||||
(:require [re-frame.core :as rf]
|
||||
[commiteth.svg :as svg]))
|
||||
|
||||
|
||||
(defn repo-toggle-button [enabled busy on-click]
|
||||
|
@ -21,8 +22,11 @@
|
|||
(defn repo-card [repo]
|
||||
[:div.ui.card
|
||||
[:div.content
|
||||
[:div.repo-label [:a {:href (:html_url repo)} (:full_name repo)]]
|
||||
[:div.repo-label [:a {:href (:html_url repo)} (:full_name repo)]
|
||||
(when (:fork repo)
|
||||
[:span.fork-span [svg/github-fork-icon]])]
|
||||
[:div.repo-description (:description repo)]]
|
||||
|
||||
[:div.repo-button-container
|
||||
[repo-toggle-button
|
||||
(:enabled repo)
|
||||
|
|
|
@ -42,3 +42,14 @@
|
|||
[:path
|
||||
{:d "M7.76596419,11.5564843 C8.07705085,11.6115965 8.40862642,11.5177766 8.64937808,11.277025 L13.3038251,6.62257794 C13.6942764,6.23212667 13.695553,5.59768507 13.3050287,5.20716078 C12.9117818,4.81391382 12.2808006,4.81717535 11.8896116,5.20836438 L7.76949482,9.32848112 L3.64937808,5.20836438 C3.25892681,4.81791311 2.62448521,4.81663648 2.23396092,5.20716078 C1.84071396,5.60040773 1.84397549,6.23138892 2.23516452,6.62257794 L6.88961157,11.277025 C7.12783981,11.5152532 7.45689724,11.6086052 7.76596419,11.5564843 L7.76596419,11.5564843 Z"
|
||||
:id "shape"}]]]]]]])
|
||||
|
||||
(defn github-fork-icon []
|
||||
[:svg
|
||||
{:width 10
|
||||
:height 16
|
||||
:version "1.1"
|
||||
:viewBox "0 0 10 16"}
|
||||
[:path
|
||||
{:fill-rule "evenodd"
|
||||
:fill "#a8aab1"
|
||||
:d "M8 1a1.993 1.993 0 0 0-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 0 0 2 1a1.993 1.993 0 0 0-1 3.72V6.5l3 3v1.78A1.993 1.993 0 0 0 5 15a1.993 1.993 0 0 0 1-3.72V9.5l3-3V4.72A1.993 1.993 0 0 0 8 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"}]])
|
||||
|
|
|
@ -300,6 +300,9 @@
|
|||
letter-spacing: .04em;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.fork-span {
|
||||
padding-left: .5em;
|
||||
}
|
||||
|
||||
.flash-message {
|
||||
&.success {
|
||||
|
|
Loading…
Reference in New Issue