-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathshow.html.erb
More file actions
54 lines (50 loc) · 1.11 KB
/
show.html.erb
File metadata and controls
54 lines (50 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<%
content_for(:title, "Question details")
content_for(:active_navigation_item, admin_questions_path)
%>
<% content_for :breadcrumbs do %>
<%= render "govuk_publishing_components/components/breadcrumbs", {
collapse_on_mobile: true,
breadcrumbs: [
{
title: "Questions",
url: admin_questions_path,
},
{
title: "Question details",
},
],
} %>
<% end %>
<%
tabs = [
{
id: "details-tab",
label: "Details",
content: render(
"details_tab",
question: @question,
answer: @answer,
question_number: @question_number,
total_questions: @total_questions,
),
},
]
tabs << {
id: "analysis-tab",
label: "Analysis",
content: render(
"analysis_tab",
topics: @answer.topics,
answer_relevancy_aggregate: @answer.answer_relevancy_aggregate,
),
} if @answer&.has_analysis?
%>
<div class="govuk-grid-row">
<div class="govuk-grid-column-three-quarters">
<%= render "govuk_publishing_components/components/tabs", {
panel_border: false,
tabs:,
} %>
</div>
</div>