File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
onlinejudge_verify_resources/_includes
onlinejudge_verify/documentation Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ def _render_source_code_stat_for_page(
98
98
data = _render_source_code_stat (stat , basedir = basedir )
99
99
data ['_pathExtension' ] = path .suffix .lstrip ('.' )
100
100
data ['_verificationStatusIcon' ] = _get_verification_status_icon (stat .verification_status )
101
+ data ['_isVerificationFailed' ] = stat .verification_status in (VerificationStatus .LIBRARY_SOME_WA , VerificationStatus .LIBRARY_ALL_WA , VerificationStatus .TEST_WRONG_ANSWER )
101
102
102
103
def ext (relative_path : pathlib .Path ) -> Dict [str , Any ]:
103
104
stat = source_code_stats_dict [relative_path ]
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ <h1>{{ page.data._verificationStatusIcon }} {{ page.title }}
9
9
< li > Problem: < a href ="{{ page.data.attributes.PROBLEM }} "> {{ page.data.attributes.PROBLEM }}</ a > </ li >
10
10
{% endif %}
11
11
{% if page.data._pathExtension == "hpp" %}< li > < a id ="include-directive-anchor "> Include: < code id ="include-directive-code "> #include "{{ page.data.path }}"</ code > </ a > </ li > {% endif %}
12
+ {% if page.data._isVerificationFailed %}< li > Link: < a href ="{{ site.github.repository_url }}/actions "> {{ page.data._verificationStatusIcon }} View error logs on GitHub Actions</ a > </ li > {% endif %}
12
13
{% for link in page.data.attributes.links %}
13
14
{% if link != page.data.attributes.PROBLEM %}
14
15
< li > Link: < a href ="{{ link }} "> {{ link }}</ a > </ li >
You can’t perform that action at this time.
0 commit comments