Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
beat
beat.web
Commits
e863d5b9
Commit
e863d5b9
authored
8 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[experiments] Uncollapse block contents if they have an error report
parent
4b3a4d91
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!194
Scheduler
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beat/web/experiments/templates/experiments/view.html
+6
-4
6 additions, 4 deletions
beat/web/experiments/templates/experiments/view.html
with
6 additions
and
4 deletions
beat/web/experiments/templates/experiments/view.html
+
6
−
4
View file @
e863d5b9
...
...
@@ -193,11 +193,12 @@
{% for block in blocks %}
{% with xpcore.blocks|getkey:block.name as core_block %}
{% with block.get_status_display as block_status %}
{% with block.error_report as error_report %}
<div
id=
"{{ block.name }}"
data-beat-block-name=
"{{ block.name }}"
data-beat-status=
"{{ block.get_status_display|lower }}"
class=
"panel panel-default may-update{% if block.analyzer %} analyzer{% endif %}"
>
<div
class=
"panel-heading"
role=
"tab"
id=
"heading-{{ block.name }}"
>
<h4
class=
"panel-title"
>
<a
{%
if
block_status
!=
'
Failed
'
%}
class=
"collapsed"
{%
endif
%}
role=
"button"
data-toggle=
"collapse"
data-parent=
"#{{ block.name }}"
href=
"#collapse-{{ block.name }}"
aria-expanded=
"{% if
block_status == 'Failed'
%}true{% else %}false{% endif %}"
aria-controls=
"collapse-{{ block.name }}"
>
<a
{%
if
not
error_report
%}
class=
"collapsed"
{%
endif
%}
role=
"button"
data-toggle=
"collapse"
data-parent=
"#{{ block.name }}"
href=
"#collapse-{{ block.name }}"
aria-expanded=
"{% if
error_report
%}true{% else %}false{% endif %}"
aria-controls=
"collapse-{{ block.name }}"
>
<i
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"{{ block_status }}"
{%
if
block_status =
=
'
Not
cached
'
%}
class=
"icon-scheduled fa fa-play"
...
...
@@ -217,7 +218,7 @@
</a>
</h4>
</div>
{# panel heading #}
<div
id=
"collapse-{{ block.name }}"
class=
"panel-collapse collapse{% if
block_status == 'Failed'
%} in{% endif %}"
role=
"tabpanel"
aria-labelledby=
"heading-{{ block.name }}"
>
<div
id=
"collapse-{{ block.name }}"
class=
"panel-collapse collapse{% if
error_report
%} in{% endif %}"
role=
"tabpanel"
aria-labelledby=
"heading-{{ block.name }}"
>
<div
class=
"panel-body"
>
<ul>
<li>
Algorithm:
<a
href=
"{{ block.algorithm.get_absolute_url }}"
>
{{ block.algorithm.fullname }}
</a></li>
...
...
@@ -254,9 +255,9 @@
</ul>
</li>
{% endif %}
{% if
block.
error_report %}
{% if error_report %}
<li>
Captured Errors (on user code):
<pre
class=
"console-output"
>
{{
block.
error_report }}
</pre>
<pre
class=
"console-output"
>
{{ error_report }}
</pre>
</li>
{% endif %}
{% if block.stdout %}
...
...
@@ -275,6 +276,7 @@
</div>
{# panel #}
{% endwith %}
{% endwith %}
{% endwith %}
{% endfor %}
</div>
{# panel group #}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment