Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #487 from y-yagi/improve_view_2
Browse files Browse the repository at this point in the history
Improve view 2
  • Loading branch information
y-yagi committed Apr 5, 2018
2 parents 54a3ef6 + f86e71e commit a0a4263
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/places/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ section.page-block.space-top.space-bottom
- else
= link_to edit_place_path(place), title: '編集' do
i.fa.fa-edit
= link_to archive_place_path(place), method: :patch, data: { confirm: 'アーカイブします。宜しいですか?' }, title: 'アーカイブ', remote: true do
= link_to archive_place_path(place), method: :patch, data: { confirm: 'アーカイブします。宜しいですか?' }, title: 'アーカイブ' do
i.fa.fa-archive
= link_to place, method: :delete, data: { confirm: '削除します。宜しいですか?' }, title: '削除' do
i.fa.fa-trash-o
Expand Down
4 changes: 4 additions & 0 deletions app/views/places/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ section.page-block.space-top.space-bottom
= @place.name
= link_to edit_place_path(@place), title: '編集' do
i.fa.fa-edit.small.text-muted.left10
= link_to archive_place_path(@place), method: :patch, data: { confirm: 'アーカイブします。宜しいですか?' }, title: 'アーカイブ' do
i.fa.fa-archive.small.text-muted.left10
= link_to @place, method: :delete, data: { confirm: '削除します。宜しいですか?' }, title: '削除' do
i.fa.fa-trash-o.small.text-muted.left10
span
.row
.col-md-6
Expand Down

0 comments on commit a0a4263

Please sign in to comment.