diff options
| -rw-r--r-- | services/app/templates/answer_list.html.twig | 8 | ||||
| -rw-r--r-- | services/app/templates/answer_new.html.twig | 8 | ||||
| -rw-r--r-- | services/app/templates/answer_view.html.twig | 9 | ||||
| -rw-r--r-- | services/app/templates/quiz_view.html.twig | 7 |
4 files changed, 32 insertions, 0 deletions
diff --git a/services/app/templates/answer_list.html.twig b/services/app/templates/answer_list.html.twig index 410ab20..23f51ce 100644 --- a/services/app/templates/answer_list.html.twig +++ b/services/app/templates/answer_list.html.twig @@ -1,6 +1,14 @@ {% extends '_page.html.twig' %} {% block content %} + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="{{ url_for('quiz_list') }}">問題一覧</a></li> + <li class="breadcrumb-item"><a href="{{ url_for('quiz_view', { qslug: quiz.slug }) }}">{{ quiz.title }}</a></li> + <li class="breadcrumb-item active">回答一覧</li> + </ol> + </nav> + <h2>{{ quiz.title }}</h2> <p> {{ quiz.description }} diff --git a/services/app/templates/answer_new.html.twig b/services/app/templates/answer_new.html.twig index 9dbf96e..d6a3972 100644 --- a/services/app/templates/answer_new.html.twig +++ b/services/app/templates/answer_new.html.twig @@ -1,6 +1,14 @@ {% extends '_page.html.twig' %} {% block content %} + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="{{ url_for('quiz_list') }}">問題一覧</a></li> + <li class="breadcrumb-item"><a href="{{ url_for('quiz_view', { qslug: quiz.slug }) }}">{{ quiz.title }}</a></li> + <li class="breadcrumb-item active">提出</li> + </ol> + </nav> + <h2>{{ quiz.title }}</h2> <p> {{ quiz.description }} diff --git a/services/app/templates/answer_view.html.twig b/services/app/templates/answer_view.html.twig index 300f2f5..9a55a20 100644 --- a/services/app/templates/answer_view.html.twig +++ b/services/app/templates/answer_view.html.twig @@ -1,6 +1,15 @@ {% extends '_page.html.twig' %} {% block content %} + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="{{ url_for('quiz_list') }}">問題一覧</a></li> + <li class="breadcrumb-item"><a href="{{ url_for('quiz_view', { qslug: quiz.slug }) }}">{{ quiz.title }}</a></li> + <li class="breadcrumb-item"><a href="{{ url_for('answer_list', { qslug: quiz.slug }) }}">回答一覧</a></li> + <li class="breadcrumb-item active">#{{ answer.answer_number }}</li> + </ol> + </nav> + <h2>{{ quiz.title }}</h2> <p> {{ quiz.description }} diff --git a/services/app/templates/quiz_view.html.twig b/services/app/templates/quiz_view.html.twig index 87c83ce..0e5dee0 100644 --- a/services/app/templates/quiz_view.html.twig +++ b/services/app/templates/quiz_view.html.twig @@ -1,6 +1,13 @@ {% extends '_page.html.twig' %} {% block content %} + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="{{ url_for('quiz_list') }}">問題一覧</a></li> + <li class="breadcrumb-item active">{{ quiz.title }}</li> + </ol> + </nav> + <h2>{{ quiz.title }}</h2> <p> {{ quiz.description }} |
