You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix the invalid IDs in the <ahref="{{ $consoleURL }}" target="_blank" rel="noopener">Instructor Console</a> using the <ahref="https://docs.layer5.io/cloud/academy/creating-content/instructor-console-guide/#using-the-content-creation-tool" target="_blank" rel="noopener">Content Creation Tool</a>.
59
-
</p>
60
-
{{- end -}}
61
52
{{- end -}}
62
53
63
54
{{- if ne (len $items) 0 -}}
64
55
<pclass="academy-toolkit__legend">
65
-
<span>⚠️ Draft page: Content ID is not registered or missing.</span>
66
-
<span>❌ Content ID is not registered or missing.</span>
56
+
<span>{{- if ne $consoleURL "" -}}<ahref="{{ $consoleURL }}" target="_blank" rel="noopener" aria-label="Open Instructor Console">⚠️</a>{{- else -}}⚠️{{- end -}} Draft page: Content ID is not registered or missing.</span>
57
+
<span>{{- if ne $consoleURL "" -}}<ahref="{{ $consoleURL }}" target="_blank" rel="noopener" aria-label="Open Instructor Console">❌</a>{{- else -}}❌{{- end -}} Content ID is not registered or missing.</span>
67
58
<span>✅ Content ID is registered.</span>
68
59
</p>
69
60
{{- end -}}
@@ -87,22 +78,36 @@ <h2>ID Validation</h2>
87
78
<tbody>
88
79
{{- range $items -}}
89
80
{{- $pageURL := .relPermalink -}}
90
-
{{- if and (eq .status "good") (ne .productionPermalink "") -}}
81
+
{{- if and (eq .status "good") (eq .cloudStatus "ready") (ne .productionPermalink "") -}}
{{- if ne $consoleURL "" -}}<ahref="{{ $consoleURL }}" target="_blank" rel="noopener" aria-label="Open Instructor Console">⚠️</a>{{- else -}}⚠️{{- end -}}
100
105
{{- else if eq .status "good" -}}
101
106
✅
102
107
{{- else if eq .status "unchecked" -}}
103
108
Not checked
104
109
{{- else -}}
105
-
❌
110
+
{{- if ne $consoleURL "" -}}<ahref="{{ $consoleURL }}" target="_blank" rel="noopener" aria-label="Open Instructor Console">❌</a>{{- else -}}❌{{- end -}}
106
111
{{- end -}}
107
112
</td>
108
113
</tr>
@@ -111,11 +116,17 @@ <h2>ID Validation</h2>
111
116
</table>
112
117
{{- end -}}
113
118
114
-
{{- if gt $draftWarningCount 0 -}}
115
-
<pclass="academy-toolkit__draft-note">
116
-
Draft ID warnings do not block publishing, but fix missing or invalid IDs before publishing those draft pages.
119
+
{{- if and (gt $problemCount 0) (ne $consoleURL "") -}}
120
+
<pclass="academy-toolkit__action">
121
+
Fix invalid IDs in the <ahref="{{ $consoleURL }}" target="_blank" rel="noopener">Instructor Console</a> using the <ahref="https://docs.layer5.io/cloud/academy/creating-content/instructor-console-guide/#using-the-content-creation-tool" target="_blank" rel="noopener">Content Creation tool</a>.
117
122
</p>
118
123
{{- end -}}
124
+
125
+
{{- if gt $draftWarningCount 0 -}}
126
+
<blockquote>
127
+
<p>Note: Draft ID warnings do not block publishing, but fix missing or invalid IDs before publishing draft pages.</p>
0 commit comments