created file sync
This commit is contained in:
@@ -25,6 +25,41 @@
|
||||
<p><%= text_field_tag 'command', command, readonly: true, class: 'form-control-sm', size: command.length %></p>
|
||||
</div>
|
||||
|
||||
<% else %>
|
||||
<p><%= button_to(new_configuration_file_path, method: :get, params: { server_id: @record.id}, class: "btn btn-success pull-center") do %>
|
||||
Create New Configuration File
|
||||
<% end %><br/><br/>
|
||||
</p>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>File Path</th>
|
||||
<th>Version</th>
|
||||
<th>Last Modified</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @record.configuration_files.each do |file| %>
|
||||
<tr>
|
||||
<td><%= file.file_path %></td>
|
||||
<td>v<%= file.last_version.number %></td>
|
||||
<td><%= distance_of_time_in_words(file.last_version.updated_at, Time.now) %></td>
|
||||
<td><%= button_to(edit_configuration_file_path(file), method: :get, class: "btn btn-default inline") do %>
|
||||
Edit
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<%= button_to(configuration_file_path(file), method: :delete, class: "btn btn-danger inline") do %>
|
||||
Delete
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user