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

卒業生の声のページで、「卒業生の声」のタグがついた記事を動的に取得し表示するようにした。 #8272

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mousu-a
Copy link
Contributor

@mousu-a mousu-a commented Jan 15, 2025

Issue

概要

変更確認方法

  1. feature/alumni-voices-dynamically-in-published-at-orderをローカルに取り込む。
    1. git fetch origin feature/alumni-voices-dynamically-in-published-at-order
    2. git checkout feature/alumni-voices-dynamically-in-published-at-order
  2. foreman start -f Procfile.devでローカルサーバーを立ち上げる。
  3. rails db:seedを実行する。
  4. 卒業生の声にアクセスする。
  5. "卒業生の声"のタグを持つブログのみ表示されていることを確認する。
  6. published_at(公開時期)が新しい順に表示されていることを確認する。
    1. タイトルに書いてあります🙆‍♂️

Screenshot

変更前

変更前はHTMLをベタ書きしている。
image

変更後

変更後は"卒業生の声"のタグのついたブログを動的に取得し、published_atが新しい順に表示している。
image

@mousu-a mousu-a force-pushed the feature/alumni-voices-dynamically-in-published-at-order branch from 1caeffd to 8e7f876 Compare January 17, 2025 04:14
@mousu-a
Copy link
Contributor Author

mousu-a commented Jan 19, 2025

@machida
お疲れ様です。
お手すきの際で構いませんので、こちら"卒業生の声のタグのついた記事が存在しない場合" のデザインをお願いいたします!

p
= article.summary
- else
p まだ記事はありません
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@machida
"記事が存在しない場合" の暫定的な措置として、こちらにテキストを入れています。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants