-
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 #7708 from fjordllc/bug/talk_page_title
相談部屋のタイトルとリンク先を変更したが、ユーザー画面のタイトルとリンク先も変更してしまったので修正した
- Loading branch information
Showing
3 changed files
with
34 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
header.page-header | ||
.container | ||
.page-header__inner | ||
.page-header__start | ||
h2.page-header__title | ||
- if current_user.admin? | ||
= user.login_name | ||
- else | ||
| 相談部屋 | ||
.page-header__end | ||
.page-header-actions | ||
ul.page-header-actions__items | ||
li.page-header-actions__item | ||
- if current_user != user | ||
- if current_user.adviser? && current_user.company_id == user.company_id && user.trainee | ||
li.page-main-header-actions__item | ||
.a-button.is-disabled.is-sm.is-block | ||
i.fa-solid.fa-check | ||
span | ||
| 自社研修生 | ||
- else | ||
li.page-main-header-actions__item | ||
= render 'users/following', user: | ||
li.page-header-actions__item | ||
- if current_user.admin? | ||
= link_to users_path, class: 'a-button is-md is-secondary is-block is-back' do | ||
| ユーザー一覧 | ||
- else | ||
= link_to root_path, class: 'a-button is-md is-secondary is-block is-back' do | ||
| ダッシュボード |
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