Skip to content

Commit

Permalink
add voted entry indication
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Dec 11, 2023
1 parent 8cfe595 commit fc5b845
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/css/bem/contest-judge-entry.less
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,9 @@
color: hsl(var(--hsl-c2));
font-size: @font-size--title-small;
}

&__voted-icon {
margin-right: 5px;
color: hsl(var(--hsl-lime-1));
}
}
5 changes: 5 additions & 0 deletions resources/js/contest-judge/entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ export default class Entry extends React.Component<Props> {
return (
<div className='contest-judge-entry'>
<div className='contest-judge-entry__title'>
{this.initialVote != null && (
<span className="contest-judge-entry__voted-icon" title={trans('contest.judge.voted')}>
<i className='fas fa-check' />
</span>
)}
{this.props.entry.title}
</div>

Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/contest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'missing_score' => 'missing score',
'contest_vote_judged' => 'can\'t vote in judged contests',
],
'voted' => 'You already submitted a vote on this entry.',
],

'judge_results' => [
Expand Down

0 comments on commit fc5b845

Please sign in to comment.