5d29bd9604
We can in fact just use the exact same re-submission as for vetoed contributions. So all that is needed is a new button in the UI. closes #161
62 lines
1.7 KiB
Handlebars
62 lines
1.7 KiB
Handlebars
<section id="contribution-details" class={{if model.vetoed "vetoed"}}>
|
|
<header class="with-nav">
|
|
<h2>Contribution #{{model.id}}</h2>
|
|
<nav>
|
|
<span class="amount">{{model.amount}}</span>
|
|
<span class="symbol">₭S</span>
|
|
</nav>
|
|
</header>
|
|
|
|
<div class="content">
|
|
<p class="who-what-when">
|
|
<span class="contributor">
|
|
{{user-avatar contributor=model.contributor}}
|
|
{{link-to model.contributor.name "dashboard.contributors.show" model.contributor}}
|
|
</span>
|
|
contributed
|
|
<span class="date" title={{model.iso8601Date}}>{{moment-from model.iso8601Date}}</span>:
|
|
</p>
|
|
<h3>{{model.description}}</h3>
|
|
<p>
|
|
Kind: {{model.kind}}
|
|
<br>Status: {{contribution-status model}}
|
|
</p>
|
|
{{#if model.url}}
|
|
<p>
|
|
<a href={{model.url}}
|
|
title={{model.description}}
|
|
class="button"
|
|
target="_blank"
|
|
rel="noopener">
|
|
Open URL
|
|
</a>
|
|
</p>
|
|
{{/if}}
|
|
{{#if model.vetoed}}
|
|
<div class="hint vetoed">
|
|
<div class="icon">
|
|
{{icon-warning}}
|
|
</div>
|
|
<p>
|
|
This contribution has been vetoed, meaning no
|
|
kredits will be issued.
|
|
</p>
|
|
<p>
|
|
{{link-to "Re-submit contribution …" "contributions.resubmit" model class="button small green"}}.
|
|
</p>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<p>
|
|
{{link-to "Copy & edit as new" "contributions.resubmit" model class="button small"}}.
|
|
{{#if model.ipfsHash}}
|
|
<a href="{{ipfsGatewayUrl}}/{{model.ipfsHash}}"
|
|
class="button small" target="_blank" rel="noopener">
|
|
Inspect IPFS data
|
|
</a>
|
|
{{/if}}
|
|
</p>
|
|
</div>
|
|
</section> |