-
Notifications
You must be signed in to change notification settings - Fork 154
New Feature : conflicting claims #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
YashKumarVerma
wants to merge
1
commit into
coding-blocks:master
Choose a base branch
from
YashKumarVerma:claims
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,116 @@ | ||
<div class="four wide item"> | ||
<div class="image"> | ||
<div class="ui statistic"> | ||
<div class="value"> | ||
{{claim.bounty}} | ||
</div> | ||
<div class="label"> | ||
BOUNTY POINTS | ||
</div> | ||
</div> | ||
</div> | ||
<div class="middle aligned content"> | ||
<a class="header">{{claim.user}}</a> | ||
<div class="meta"> | ||
<span>{{claim.repo}}</span> | ||
</div> | ||
<div class="description"> | ||
<p> | ||
Issue : <a href="{{claim.issueUrl}}">{{claim.issueUrl}}</a> | ||
</p> | ||
<p> | ||
Pull : <a href="{{claim.pullUrl}}">{{claim.pullUrl}}</a> | ||
</p> | ||
</div> | ||
<div class="extra"> | ||
{{#equal claim.status "claimed"}} | ||
<div class="ui label yellow">{{claim.status}}</div> | ||
{{/equal}} | ||
{{#equal claim.status "accepted"}} | ||
<div class="ui label green">{{claim.status}}</div> | ||
{{/equal}} | ||
{{#equal claim.status "rejected"}} | ||
<div class="ui label red">{{claim.status}}</div> | ||
{{/equal}} | ||
</div> | ||
</div> | ||
<form class="ui form" style="padding: 3em" method="post" action="/claims/{{claim.id}}/update"> | ||
<div class="four wide field"> | ||
<label>Final Bounty Points</label> | ||
<input name="bounty" value="{{claim.bounty}}"> | ||
<label>Update Status</label> | ||
<select name="status" class="ui dropdown" id="status"> | ||
<option value="claimed">Claimed</option> | ||
<option value="rejected">Rejected</option> | ||
<option value="accepted">Accepted</option> | ||
<option value="disputed">Disputed</option> | ||
<option value="revoked">Revoked</option> | ||
</select> | ||
</div> | ||
<div class="ui container"> | ||
<div class="ui two column grid"> | ||
<div class="column"> | ||
<div class="four wide item"> | ||
<div class="image"> | ||
<div class="ui statistic"> | ||
<div class="value"> | ||
{{claim.bounty}} | ||
</div> | ||
<div class="label"> | ||
BOUNTY POINTS | ||
</div> | ||
</div> | ||
</div> | ||
<div class="middle aligned content"> | ||
<a class="header">{{claim.user}}</a> | ||
<div class="meta"> | ||
<span>{{claim.repo}}</span> | ||
</div> | ||
<div class="description"> | ||
<p> | ||
Issue : <a href="{{claim.issueUrl}}">{{claim.issueUrl}}</a> | ||
</p> | ||
<p> | ||
Pull : <a href="{{claim.pullUrl}}">{{claim.pullUrl}}</a> | ||
</p> | ||
</div> | ||
<div class="extra"> | ||
{{#equal claim.status "claimed"}} | ||
<div class="ui label yellow">{{claim.status}}</div> | ||
{{/equal}} | ||
{{#equal claim.status "accepted"}} | ||
<div class="ui label green">{{claim.status}}</div> | ||
{{/equal}} | ||
{{#equal claim.status "rejected"}} | ||
<div class="ui label red">{{claim.status}}</div> | ||
{{/equal}} | ||
</div> | ||
</div> | ||
<form class="ui form" style="padding: 3em" method="post" action="/claims/{{claim.id}}/update"> | ||
<div class="four wide field"> | ||
<label>Final Bounty Points</label> | ||
<input name="bounty" value="{{claim.bounty}}"> | ||
<label>Update Status</label> | ||
<select name="status" class="ui dropdown" id="status"> | ||
<option value="claimed">Claimed</option> | ||
<option value="rejected">Rejected</option> | ||
<option value="accepted">Accepted</option> | ||
<option value="disputed">Disputed</option> | ||
<option value="revoked">Revoked</option> | ||
</select> | ||
</div> | ||
|
||
<label>Reason </label> | ||
<textarea name="reason" id="reason"> {{claim.reason}} </textarea> | ||
<br /> | ||
<button class="ui button green" type="submit">Submit</button> | ||
|
||
<label>Reason </label> | ||
<textarea name="reason" id="reason"> {{claim.reason}} </textarea> | ||
<br/> | ||
<button class="ui button green" type="submit">Submit</button> | ||
|
||
</form> | ||
<script> | ||
|
||
</form> | ||
<script> | ||
$('select.dropdown').dropdown(); | ||
|
||
$('select.dropdown').dropdown(); | ||
{ {#unless claim.reason } } | ||
$('#reason').hide(); | ||
{ | ||
{ | ||
/unless}} | ||
|
||
{{#unless claim.reason}} | ||
$('#reason').hide(); | ||
{{/unless}} | ||
$('select').on('change', function (e) { | ||
let status = $('#status option:selected').text(); | ||
if (['Rejected', 'Disputed', 'Revoked'].includes(status)) | ||
$('#reason').show(); | ||
else | ||
$('#reason').html('').hide(); | ||
|
||
$('select').on('change', function (e){ | ||
let status = $('#status option:selected').text(); | ||
if( ['Rejected' , 'Disputed' , 'Revoked'].includes(status) ) | ||
$('#reason').show(); | ||
else | ||
$('#reason').html('').hide(); | ||
}); | ||
|
||
}); | ||
</script> | ||
</div> | ||
</div> | ||
<div class="column"> | ||
<h2>Conflicts</h2> | ||
{{#if conflicts}} | ||
This following claims collides with the current claim | ||
<div class="ui two column grid"> | ||
{{#conflicts}} | ||
<div class="column"> | ||
<div class="ui fluid card"> | ||
<div class="content"> | ||
<div class="header">Claim ID : {{id}}</div> | ||
<div class="meta">Bounty : {{bounty}}</div> | ||
<div class="meta">By : {{user}}</div> | ||
<div class="description"> | ||
<div class="ui two column grid"> | ||
<div class="column"> | ||
<a href="{{issueUrl}}">View Issue</a> | ||
</div> | ||
<div class="column"> | ||
<a href="{{pullUrl}}">View PR</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</script> | ||
</div> | ||
</div> | ||
</div> | ||
{{/conflicts}} | ||
</div> | ||
{{else}} | ||
There are no conflicting claims | ||
{{/if}} | ||
</div> | ||
</div> | ||
</div> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does not cover all the cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please mention which type of case is not handled