-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7843 from fjordllc/feature/display-message-in-rep…
…ort-of-retired-user 管理者・メンターが退会者の日報をみた時に、退会者の日報であることをメッセージで表示する
- Loading branch information
Showing
3 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,19 @@ | |
= render 'users/page_title', user: @report.user | ||
= render 'users/page_tabs', user: @report.user | ||
|
||
- if mentor_login? && [email protected]? && @report.latest_of_user? | ||
.a-page-notice.is-only-mentor(class="#{@report.interval >= 10 ? 'is-danger' : ''}") | ||
.container | ||
.a-page-notice__inner | ||
p | ||
strong | ||
| #{@report.interval}日 | ||
| ぶりの日報です | ||
- if admin_or_mentor_login? | ||
- if @report.user.retired_on? | ||
.a-page-notice.is-muted.is-only-mentor | ||
.container | ||
.a-page-notice__inner | ||
p このユーザーは退会しています。 | ||
- elsif [email protected]? && @report.latest_of_user? | ||
.a-page-notice.is-only-mentor(class="#{@report.interval >= 10 ? 'is-danger' : ''}") | ||
.container | ||
.a-page-notice__inner | ||
p | ||
strong #{@report.interval}日 | ||
| ぶりの日報です。 | ||
|
||
.page-body | ||
.container.is-xxl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters