Skip to content

Commit

Permalink
Add links to votable arbitrator election ballot(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylanhurt committed Sep 4, 2023
1 parent ddb5d79 commit fd0ceef
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/i18n/en-us/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ export default {

elections_table_title: 'Elections',
elections_table_view_info: 'View Info',
elections_table_vote_now: 'Vote now',
elections_table_seats: 'Seats',
elections_table_end_add: 'End Add Candidates',
elections_table_end_voting: 'End Voting',
Expand Down
17 changes: 17 additions & 0 deletions src/pages/resolve/components/ElectionsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,18 @@
<q-td key="ballot_name" class="ballot_name">
<div class="info">
<div class="ballot-name">
<a v-if="props.row.ballot_name" :href="`/trails/ballot/${props.row.ballot_name}`">
{{
props.row.ballot_name ||
`${props.row.election_id}`
}}
</a>
<span v-else>
{{
props.row.ballot_name ||
`${props.row.election_id}`
}}
</span>
</div>
<div class="ballot-subtitle">
<a
Expand All @@ -42,7 +50,13 @@
"
target="_blank"
>{{$t('pages.resolve.elections_table_view_info')}}</a
>&nbsp;&nbsp;
<a v-if="props.row.ballot_name && props.row.status === 2"
:href="`/trails/ballot/${props.row.ballot_name}`"
class="primary"
>
<strong>{{ $t('pages.resolve.elections_table_vote_now') }}</strong>
</a>
</div>
</div>
</q-td>
Expand Down Expand Up @@ -153,6 +167,9 @@ export default {

<style lang="scss">
#elections-table {
.primary {
color: #571aff;
}
.resolve-table {
.q-table__top {
background-color: #571aff;
Expand Down

0 comments on commit fd0ceef

Please sign in to comment.