voting added

This commit is contained in:
HolgerHatGarKeineNode
2023-03-10 23:50:37 +01:00
parent 12e9e6cfd7
commit 756b171647
14 changed files with 45 additions and 12 deletions

View File

@@ -816,6 +816,7 @@
"Other voters": "Alle anderen",
"Submit a project proposal and let the community vote on it through the elected voters. All other community members can also vote.": "",
"Submitted by": "Übermittelt von",
"This project requires": "Dieses Projekt benötigt/beantragt",
"sats": "sats"
"This project requires": "Dieses Projekt benötigt\/beantragt",
"sats": "sats",
"Your vote": "Deine Stimme"
}

View File

@@ -814,5 +814,6 @@
"Submit a project proposal and let the community vote on it through the elected voters. All other community members can also vote.": "",
"Submitted by": "",
"This project requires": "",
"sats": ""
"sats": "",
"Your vote": ""
}

View File

@@ -814,5 +814,6 @@
"Submit a project proposal and let the community vote on it through the elected voters. All other community members can also vote.": "",
"Submitted by": "",
"This project requires": "",
"sats": ""
"sats": "",
"Your vote": ""
}

View File

@@ -815,5 +815,6 @@
"Submit a project proposal and let the community vote on it through the elected voters. All other community members can also vote.": "",
"Submitted by": "",
"This project requires": "",
"sats": ""
"sats": "",
"Your vote": ""
}

View File

@@ -815,5 +815,6 @@
"Submit a project proposal and let the community vote on it through the elected voters. All other community members can also vote.": "",
"Submitted by": "",
"This project requires": "",
"sats": ""
"sats": "",
"Your vote": ""
}

View File

@@ -815,5 +815,6 @@
"Submit a project proposal and let the community vote on it through the elected voters. All other community members can also vote.": "",
"Submitted by": "",
"This project requires": "",
"sats": ""
"sats": "",
"Your vote": ""
}

View File

@@ -815,5 +815,6 @@
"Submit a project proposal and let the community vote on it through the elected voters. All other community members can also vote.": "",
"Submitted by": "",
"This project requires": "",
"sats": ""
"sats": "",
"Your vote": ""
}

View File

@@ -815,5 +815,6 @@
"Submit a project proposal and let the community vote on it through the elected voters. All other community members can also vote.": "",
"Submitted by": "",
"This project requires": "",
"sats": ""
"sats": "",
"Your vote": ""
}

View File

@@ -815,5 +815,6 @@
"Submit a project proposal and let the community vote on it through the elected voters. All other community members can also vote.": "",
"Submitted by": "",
"This project requires": "",
"sats": ""
"sats": "",
"Your vote": ""
}

View File

@@ -777,5 +777,6 @@
"Submit a project proposal and let the community vote on it through the elected voters. All other community members can also vote.": "",
"Submitted by": "",
"This project requires": "",
"sats": ""
"sats": "",
"Your vote": ""
}

View File

@@ -789,5 +789,6 @@
"Submit a project proposal and let the community vote on it through the elected voters. All other community members can also vote.": "",
"Submitted by": "",
"This project requires": "",
"sats": ""
"sats": "",
"Your vote": ""
}

View File

@@ -66,6 +66,21 @@
<x-button lg primary wire:click="no">
No, don't support it!
</x-button>
<div>
<span class="text-amber-500">{{ __('Your vote') }}:</span>
@php
$myVote = $projectProposal->votes->where('user_id', auth()->id())->first();
@endphp
@if($myVote && $myVote->value)
<x-badge green>{{ __('Yes') }}</x-badge>
@endif
@if($myVote && !$myVote->value)
<x-badge red>{{ __('No') }}</x-badge>
@endif
@if(!$myVote)
<x-badge>{{ __('not voted yet') }}</x-badge>
@endif
</div>
</div>
<div>