From 759cc8457ad6200c8e55c0d14d16137a5f9458c3 Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Sun, 7 Dec 2014 18:17:33 +0100 Subject: [PATCH] Bootstrapify problem index page --- app/views/problems/index.html.erb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/views/problems/index.html.erb b/app/views/problems/index.html.erb index c494eeb..bf363f8 100644 --- a/app/views/problems/index.html.erb +++ b/app/views/problems/index.html.erb @@ -1,12 +1,10 @@

Listing problems

- +
- - @@ -14,11 +12,7 @@ <% @problems.each do |problem| %> - - - - - + <% end %> @@ -26,4 +20,4 @@
-<%= link_to 'New Problem', new_problem_path %> +<%= button_to 'New Problem', new_problem_path, class: 'btn btn-default' %>
ID TitleContent
<%= problem.id %><%= problem.title %><%= problem.content %><%= link_to 'Show', problem %><%= link_to 'Edit', edit_problem_path(problem) %><%= link_to 'Destroy', problem, method: :delete, data: { confirm: 'Are you sure?' } %><%= link_to problem.title, problem %>