mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-23 16:01:15 +00:00
Show claim count for bounty if > 0
Show number of claims for an issue in "open issues" view if there are any. Styling may need improvement. Related to issue #154
This commit is contained in:
parent
d2c63c59cc
commit
0619b4b519
@ -409,7 +409,8 @@ SELECT
|
||||
i.updated AS updated,
|
||||
r.owner AS repo_owner,
|
||||
r.owner_avatar_url AS repo_owner_avatar_url,
|
||||
r.repo AS repo_name
|
||||
r.repo AS repo_name,
|
||||
(SELECT count(*) FROM pull_requests WHERE issue_id = i.issue_id AND state = 0) AS claim_count
|
||||
FROM issues i, repositories r
|
||||
WHERE
|
||||
r.repo_id = i.repo_id
|
||||
|
@ -13,7 +13,8 @@
|
||||
updated :updated
|
||||
tokens :tokens
|
||||
balance-eth :balance-eth
|
||||
value-usd :value-usd} bounty
|
||||
value-usd :value-usd
|
||||
open-claims :open-claims} bounty
|
||||
full-repo (str owner "/" repo-name)
|
||||
repo-url (str "https://github.com/" full-repo)
|
||||
repo-link [:a {:href repo-url} full-repo]
|
||||
@ -33,7 +34,9 @@
|
||||
^{:key (random-uuid)}
|
||||
[:div.balance-badge.token
|
||||
(str (subs (str tla) 1) " " balance)])
|
||||
[:span.usd-value-label "Value "] [:span.usd-balance-label (str "$" value-usd)]]]
|
||||
[:span.usd-value-label "Value "] [:span.usd-balance-label (str "$" value-usd)]
|
||||
(when (> open-claims 0)
|
||||
[:span.open-claims-label (str open-claims " open claims")]) ]]
|
||||
[:div.open-bounty-item-icon
|
||||
[:div.ui.tiny.circular.image
|
||||
[:img {:src avatar-url}]]]]))
|
||||
|
@ -495,6 +495,11 @@
|
||||
color: #42505c;
|
||||
}
|
||||
|
||||
.open-claims-label {
|
||||
padding-left: 5px;
|
||||
font-size: 15px;
|
||||
color: #8d99a4;
|
||||
}
|
||||
|
||||
|
||||
.activity-item-container {
|
||||
|
Loading…
x
Reference in New Issue
Block a user