Replace CodeHarbourLink .erb wtih .slim templates

- this is consistent with the remaining view architecture

(leoselig/codeocean#2)
This commit is contained in:
leo.selig
2016-02-04 12:05:57 +01:00
parent 057b19cf2a
commit f2a1a748d5
14 changed files with 44 additions and 72 deletions

View File

@@ -0,0 +1,18 @@
h1 = CodeHarborLink.model_name.human(count: 2)
.table-responsive
table.table
thead
tr
th = t('activerecord.attributes.code_harbor_link.oauth2token')
th colspan=3 = t('shared.actions')
tbody
- @code_harbor_links.each do |code_harbor_link|
tr
td = code_harbor_link.oauth2token
td = link_to(t('shared.show'), code_harbor_link)
td = link_to(t('shared.edit'), edit_code_harbor_link_path(code_harbor_link))
td = link_to(t('shared.destroy'), code_harbor_link, data: {confirm: t('shared.confirm_destroy')}, method: :delete)
= render('shared/pagination', collection: @code_harbor_links)
p = render('shared/new_button', model: CodeHarborLink)