Skip to content

Commit 78128f0

Browse files
committed
fixed exercise view when no tests and no files exist
1 parent 8676614 commit 78128f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/exercises/show.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
<dl class="dl-horizontal">
2929

3030
<dt><em><%= 'Files' %>:</em> </dt>
31+
<br>
3132
<% @files.each do |file| %>
32-
<br>
3333
<dd>
3434
<dt><%= 'Content: '%></dt>
3535
<dd><div class="editor_readonly"><%= file.content %></div></dd>
@@ -47,8 +47,8 @@
4747
</dl>
4848
<dl class="dl-horizontal">
4949
<dt><em><%= 'Tests' %>:</em> </dt>
50+
<br>
5051
<% @tests.each do |test| %>
51-
<br>
5252
<dd>
5353
<dt><%= 'Content: '%></dt>
5454
<dd><div class="editor_readonly"><%= test.content %></div></dd>

0 commit comments

Comments
 (0)