aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/snippets/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/snippets/show.html.erb')
-rw-r--r--app/views/snippets/show.html.erb18
1 files changed, 5 insertions, 13 deletions
diff --git a/app/views/snippets/show.html.erb b/app/views/snippets/show.html.erb
index 9e59d7a..e2a1566 100644
--- a/app/views/snippets/show.html.erb
+++ b/app/views/snippets/show.html.erb
@@ -1,14 +1,6 @@
-<p id="notice"><%= notice %></p>
+<%= render "form", snippet: @snippet %>
+<span style="display: none" id="snippet-id"><%= @snippet.id %></span>
-<p>
- <strong>Title:</strong>
- <%= @snippet.title %>
-</p>
-
-<p>
- <strong>Code:</strong>
- <%= @snippet.code %>
-</p>
-
-<%= link_to 'Edit', edit_snippet_path(@snippet) %> |
-<%= link_to 'Back', snippets_path %>
+<% @snippet.results_all.each do |result, compiler| %>
+ <%= render partial: "results/result", locals: { result: result, compiler: compiler } %>
+<% end %>