mirror of
https://github.com/wahyd4/Libr.git
synced 2026-08-20 18:26:21 +10:00
14 lines
502 B
Plaintext
14 lines
502 B
Plaintext
div.row style="margin-top:2em;"
|
|
-if @user== @current_user
|
|
div.pull-right
|
|
button.btn.btn-danger.delete-books 删除书籍
|
|
div.pull-left
|
|
- @books.each do |book|
|
|
div.one-item
|
|
div style="text-align:center;"
|
|
a href="/books/#{book.book_id}"
|
|
img.cover src="#{book.image}"
|
|
p.title style="font-size:0.9em;" = book.name
|
|
= form_tag("books/#{book.id}", :method => "delete") do
|
|
button.btn.btn-danger.btn-mini.hidden 删除
|