Skip to content

Commit

Permalink
style: change formatting of reviewer card
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik99999 committed Oct 18, 2024
1 parent 20e0136 commit 8fee78b
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions frontend/src/components/ReviewerCard.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
<template>
<div class="card mb-3">
<div class="card-header">
<h5 class="card-title">
<div class="card-header d-flex justify-content-between align-items-center">
<h5 class="card-title mb-0">
{{ reviewer.memberProfile.name }} ({{ reviewer.memberProfile.username }})
</h5>
<span>
<a v-if="reviewer.isActive" class="btn btn-link" @click="emit('edit')">
<small><i class="fas fa-edit me-1"></i>Edit</small>
</a>
<a
v-if="reviewer.isActive"
class="btn btn-link text-danger"
@click="changeActiveState(reviewer, false)"
>
<small><i class="fas fa-trash me-1"></i>Deactivate</small>
</a>
<a v-else class="btn btn-link text-success" @click="changeActiveState(reviewer, true)">
<small><i class="fas fa-check-circle me-1"></i>Activate</small>
</a>
</span>
</div>
<div class="card-body">
<p class="card-text">
Expand All @@ -12,11 +27,6 @@
<strong>Subject Areas:</strong> {{ reviewer.subjectAreas.join(", ") }}<br />
{{ reviewer.notes }}
</p>
<a class="btn btn-primary me-1" @click="emit('edit')">Edit</a>
<a v-if="reviewer.isActive" class="btn btn-danger" @click="changeActiveState(reviewer, false)"
>Deactivate</a
>
<a v-else class="btn btn-success" @click="changeActiveState(reviewer, true)">Activate</a>
</div>
</div>
</template>
Expand Down

0 comments on commit 8fee78b

Please sign in to comment.