tests and UI changes

This commit is contained in:
Karol Selak 2021-03-22 04:19:37 +01:00
parent de29815686
commit f7ec73f85e
6 changed files with 32 additions and 33 deletions

View file

@ -9,7 +9,7 @@
<% @books.each do |book| %>
<div class='row'>
<div class='col s2'>
<%= link_to book.title, book %>
<%= book.title %>
</div>
<div class='col s3'>

View file

@ -7,7 +7,7 @@
<% @books.each do |book| %>
<div class='row'>
<div class='col s2'>
<%= link_to book.title, book %>
<%= book.title %>
</div>
<div class='col s3'>

View file

@ -1,20 +0,0 @@
<div class='container'>
<div class='row'>
<div class='col s4'>
Title: <%= link_to @book.title, @book %>
</div>
<div class='col s4'>
Price: <%= @book.price_with_currency %>
</div>
<div class='col s4'>
Authors: <%= @book.authors %>
</div>
</div>
<% if current_user&.admin? %>
<div class='row'>
<%= link_to 'Edit', edit_book_path(@book), class: "btn" %>
</div>
<% end %>
</div>