21
app/views/code_harbor_links/_form.html.erb
Normal file
21
app/views/code_harbor_links/_form.html.erb
Normal file
@@ -0,0 +1,21 @@
|
||||
<%= form_for(@code_harbor_link) do |f| %>
|
||||
<% if @code_harbor_link.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(@code_harbor_link.errors.count, "error") %> prohibited this code_harbor_link from being saved:</h2>
|
||||
|
||||
<ul>
|
||||
<% @code_harbor_link.errors.full_messages.each do |message| %>
|
||||
<li><%= message %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="field">
|
||||
<%= f.label :oauth2token %><br>
|
||||
<%= f.text_field :oauth2token %>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<%= f.submit %>
|
||||
</div>
|
||||
<% end %>
|
6
app/views/code_harbor_links/edit.html.erb
Normal file
6
app/views/code_harbor_links/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing code_harbor_link</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @code_harbor_link %> |
|
||||
<%= link_to 'Back', code_harbor_links_path %>
|
25
app/views/code_harbor_links/index.html.erb
Normal file
25
app/views/code_harbor_links/index.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<h1>Listing code_harbor_links</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Oauth2token</th>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @code_harbor_links.each do |code_harbor_link| %>
|
||||
<tr>
|
||||
<td><%= code_harbor_link.oauth2token %></td>
|
||||
<td><%= link_to 'Show', code_harbor_link %></td>
|
||||
<td><%= link_to 'Edit', edit_code_harbor_link_path(code_harbor_link) %></td>
|
||||
<td><%= link_to 'Destroy', code_harbor_link, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Code harbor link', new_code_harbor_link_path %>
|
4
app/views/code_harbor_links/index.json.jbuilder
Normal file
4
app/views/code_harbor_links/index.json.jbuilder
Normal file
@@ -0,0 +1,4 @@
|
||||
json.array!(@code_harbor_links) do |code_harbor_link|
|
||||
json.extract! code_harbor_link, :id, :oauth2token
|
||||
json.url code_harbor_link_url(code_harbor_link, format: :json)
|
||||
end
|
5
app/views/code_harbor_links/new.html.erb
Normal file
5
app/views/code_harbor_links/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New code_harbor_link</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', code_harbor_links_path %>
|
9
app/views/code_harbor_links/show.html.erb
Normal file
9
app/views/code_harbor_links/show.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<p>
|
||||
<strong>Oauth2token:</strong>
|
||||
<%= @code_harbor_link.oauth2token %>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_code_harbor_link_path(@code_harbor_link) %> |
|
||||
<%= link_to 'Back', code_harbor_links_path %>
|
1
app/views/code_harbor_links/show.json.jbuilder
Normal file
1
app/views/code_harbor_links/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.extract! @code_harbor_link, :id, :oauth2token, :created_at, :updated_at
|
Reference in New Issue
Block a user