Skip to content
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

研修終了日が7日以内の研修生の提出物一覧をメンターのダッシュボードに表示 #8066

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions app/javascript/product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,23 @@
time.a-meta(v-if='product.updated_at')
span.a-meta__label 更新
| {{ product.updated_at }}
.card-list-item-meta__item(
v-if='isGroupedByDaysElapsed && (isUnassignedProductsPage || isDashboardPage)')
time.a-meta(v-if='untilNextElapsedDays(product) < 1')
span.a-meta__label 次の経過日数まで
| 1時間未満
time.a-meta(v-else-if='calcElapsedTimes(product) < 7')
span.a-meta__label 次の経過日数まで
| 約{{ untilNextElapsedDays(product) }}時間
.card-list-item-meta__item(v-if='isGroupedByDaysElapsed')
reckyy marked this conversation as resolved.
Show resolved Hide resolved
time.a-meta(v-if='isUnassignedProductsPage || isDashboardPage')
time(v-if='untilNextElapsedDays(product) < 1')
span.a-meta__label 次の経過日数まで
| 1時間未満
time(v-else-if='calcElapsedTimes(product) < 7')
span.a-meta__label 次の経過日数まで
| 約{{ untilNextElapsedDays(product) }}時間
.card-list-item-meta__item(v-else)
time.a-meta
span.a-meta__label 研修終了日
span.a-meta__value {{ product.user.training_ends_on }}
span.a-meta__value.is-danger(
v-if='product.user.training_remaining_days === 0')
| (本日研修最終日)
span.a-meta__value.is-danger(v-else)
| (あと{{ product.user.training_remaining_days }}日)

hr.card-list-item__row-separator(v-if='product.comments.size > 0')
.card-list-item__row(v-if='product.comments.size > 0')
Expand Down