Soc/app/views/todos/_todo.html.erb

11 lines
343 B
Plaintext
Raw Normal View History

2024-01-07 13:50:53 +00:00
<input type="checkbox" class="todo" disabled
<% if todo.done? %>
checked
<% end %>>
<%= todo.title %>
<% if todo.user == current_user %>
<%= link_to t(".edit"), edit_todo_path(todo) %>
<%= link_to t(".delete"), todo, data: { turbo_method: :delete, turbo_confirm: t(".confirm") } %>
<% end %>
2024-01-07 14:17:47 +00:00
<%= todo.description %>