aboutsummaryrefslogtreecommitdiffhomepage
path: root/services
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-05 23:37:47 +0900
committernsfisis <nsfisis@gmail.com>2024-03-05 23:37:47 +0900
commitfc3bf7310451a2a60b100af53c938ddd5078d34d (patch)
treed04104fc560a560adf2064cd73d0e26748fbf8dd /services
parent52e83d4e1fb5266bcd921d3685746e784660e748 (diff)
downloadphperkaigi-2024-albatross-fc3bf7310451a2a60b100af53c938ddd5078d34d.tar.gz
phperkaigi-2024-albatross-fc3bf7310451a2a60b100af53c938ddd5078d34d.tar.zst
phperkaigi-2024-albatross-fc3bf7310451a2a60b100af53c938ddd5078d34d.zip
add breadcrumb
Diffstat (limited to 'services')
-rw-r--r--services/app/templates/answer_list.html.twig8
-rw-r--r--services/app/templates/answer_new.html.twig8
-rw-r--r--services/app/templates/answer_view.html.twig9
-rw-r--r--services/app/templates/quiz_view.html.twig7
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 }}