Display bounty ID (#4527)

* Display Id in Bounty list

* Remove whitespace
This commit is contained in:
MiZiet 2021-01-29 13:48:45 +01:00 committed by GitHub
parent baedb06fa5
commit 99497724c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 12 deletions

View File

@ -33,6 +33,7 @@
"Give Up": "Give Up",
"Give up curator's role": "Give up curator's role",
"How much should be paid out for completed Bounty. Upon funding, the amount will be reserved in treasury.": "How much should be paid out for completed Bounty. Upon funding, the amount will be reserved in treasury.",
"Id": "Id",
"If the motion is outvoted, Curator's deposit will be slashed and Curator will be unassigned. Bounty will return to the Funded state.": "If the motion is outvoted, Curator's deposit will be slashed and Curator will be unassigned. Bounty will return to the Funded state.",
"If the motion is outvoted, the current Curator will be unassigned and the Bounty will return to the Funded state.": "If the motion is outvoted, the current Curator will be unassigned and the Bounty will return to the Funded state.",
"Initiate Voting": "Initiate Voting",

View File

@ -53,6 +53,7 @@
"Give Up": "",
"Give up curator's role": "",
"Governance": "",
"Id": "",
"If the motion is outvoted, Curator's deposit will be slashed and Curator will be unassigned. Bounty will return to the Funded state.": "",
"If the motion is outvoted, the current Curator will be unassigned and the Bounty will return to the Funded state.": "",
"If you have not claimed rewards straight after the end of the era, the validator is in the active set and you are seeing no rewards, this would mean that the reward payout transaction was made by another account on your behalf. Always check your favorite explorer to see any historic payouts made to your accounts.": "",

View File

@ -156,24 +156,28 @@ function Bounty ({ bestNumber, bounty, className = '', description, index, propo
</tr>
<tr className={className}
style={{ visibility: isExpanded ? 'visible' : 'collapse' }}>
<td className='proposer'
<td
colSpan={2}>
<div className='proposer-row'>
<div className='label-column-left'>
<div className='label'>{t('Proposer')}</div>
<AddressSmall value={proposer} />
</div>
<div className='label-column-left'>
<div className='label'>{t('Id')}</div>
{index.toString()}
</div>
</td>
<td className='column-with-label'
<td
colSpan={2}>
<div className='column-with-label-row'>
<div className='label-column-right'>
<div className='label'>{t('Bond')}</div>
<div className='inline-balance'><FormatBalance value={bond} /></div>
</div>
<div className='column-with-label-row'>
<div className='label-column-right'>
<div className='label'>{t("Curator's fee")}</div>
<div className='inline-balance'>{curator ? <FormatBalance value={fee} /> : EMPTY_CELL}</div>
</div>
<div className='column-with-label-row'>
<div className='label-column-right'>
<div className='label'>{t("Curator's deposit")}</div>
<div className='inline-balance'>{curator ? <FormatBalance value={curatorDeposit} /> : EMPTY_CELL}</div>
</div>
@ -272,19 +276,21 @@ export default React.memo(styled(Bounty)(({ theme }: ThemeProps) => `
text-transform: uppercase;
}
& .column-with-label-row {
display: flex;
.label-column-right, .label-column-left{
display: flex;
align-items: center;
padding: 0 0 1.7rem;
.label {
width: 50%;
}
}
.proposer-row {
display: flex;
align-items: center;
.label-column-right {
padding: 0 0 1.7rem;
}
.label-column-left {
padding: 0 0 1.3rem;
}
.td-row {