transferred Code Ocean from original repository to GitHub

This commit is contained in:
Hauke Klement
2015-01-22 09:51:49 +01:00
commit 4cbf9970b1
683 changed files with 11979 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
= form_for(@consumer, multipart: true) do |f|
= render('shared/form_errors', object: @consumer)
.form-group
= f.label(:name)
= f.text_field(:name, class: 'form-control', required: true)
.form-group
= f.label(:oauth_key)
= f.text_field(:oauth_key, class: 'form-control', required: true)
.form-group
= f.label(:oauth_secret)
= f.text_field(:oauth_secret, class: 'form-control', required: true)
.actions = render('shared/submit_button', f: f, object: @consumer)

View File

@@ -0,0 +1,3 @@
h1 = @consumer
= render('form')

View File

@@ -0,0 +1,17 @@
h1 = Consumer.model_name.human(count: 2)
.table-responsive
table.table
thead
tr
th = t('activerecord.attributes.consumer.name')
th colspan=3 = t('shared.actions')
tbody
- @consumers.each do |consumer|
tr
td = consumer.name
td = link_to(t('shared.show'), consumer)
td = link_to(t('shared.edit'), edit_consumer_path(consumer))
td = link_to(t('shared.destroy'), consumer, data: {confirm: t('shared.confirm_destroy')}, method: :delete)
p = render('shared/new_button', model: Consumer)

View File

@@ -0,0 +1,3 @@
h1 = t('shared.new_model', model: Consumer.model_name.human)
= render('form')

View File

@@ -0,0 +1,8 @@
h1
= @consumer
= render('shared/edit_button', object: @consumer) if policy(@consumer).edit?
= row(label: 'consumer.name', value: @consumer.name)
- %w[oauth_key oauth_secret].each do |attribute|
= row(label: "consumer.#{attribute}") do
= content_tag(:input, nil, class: 'form-control', readonly: true, value: @consumer.send(attribute))