Convert .html.erb templates to .html.slim

This commit is contained in:
Sebastian Serth
2018-10-08 00:12:56 +02:00
parent 1bed13d941
commit 41bd5bac10
14 changed files with 206 additions and 258 deletions

View File

@@ -0,0 +1,24 @@
h1 Listing comments
table
thead
tr
th User
th File
th Row
th Column
th Text
th colspan="3"
tbody
- @comments.each do |comment|
tr
td= comment.user
td= comment.file
td= comment.row
td= comment.column
td= comment.text
td= link_to 'Show', comment
td= link_to 'Edit', edit_comment_path(comment)
td= link_to 'Destroy', comment, method: :delete, data: confirm: 'Are you sure?'
br/
= link_to 'New Comment', new_comment_path