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,7 @@
h1
= @code_harbor_link
= render('shared/edit_button', object: @code_harbor_link) if policy(@code_harbor_link).edit?
- %w[oauth2token].each do |attribute|
= row(label: "code_harbor_link.#{attribute}") do
= content_tag(:input, nil, class: 'form-control', readonly: true, value: @code_harbor_link.send(attribute))