Skip to content

Commit

Permalink
Merge pull request #8037 from fjordllc/blog-author
Browse files Browse the repository at this point in the history
メンター一覧に情報公開オフにしても、ブログのauthorには情報を表示するようにした
  • Loading branch information
machida authored Aug 26, 2024
2 parents c95ae85 + 9b72f3d commit 5a6e39e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/articles/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ ruby:
= link_to article_path(@article), data: { confirm: '本当によろしいですか?' }, method: :delete, class: 'card-main-actions__muted-action' do
| 削除
.col-xl-4.col-lg-4.col-xs-12
- if @mentor.mentor? && [email protected]_mentor_profile
- if @mentor.mentor?
= render 'welcome/mentor', mentor: @mentor, page: 'articles-show'
= render 'recent_articles'
= render 'ad'
5 changes: 4 additions & 1 deletion app/views/welcome/_mentor.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ section.welcome-member.a-card(class="is-#{page}")
.welcome-member__inner
.welcome-member__header
.welcome-member__start
= image_tag(mentor.profile_image_url, class: 'welcome-member__image', alt: "#{mentor.profile_name}のアイコン画像")
- if mentor.profile_image_url.present?
= image_tag(mentor.profile_image_url, class: 'welcome-member__image', alt: "#{mentor.profile_name}のアイコン画像")
- else
= image_tag(default_image_path, class: 'welcome-member__image', alt: "#{mentor.profile_name}のアイコン画像")
.welcome-member__end
- if mentor.profile_name.present?
h3.welcome-member__name
Expand Down

0 comments on commit 5a6e39e

Please sign in to comment.