-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
233 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<%# Partial params: id, dialog_class, title %> | ||
<div class="modal fade" id="<%= id %>" tabindex="-1" role="dialog" aria-hidden="true"> | ||
<div class="modal-dialog <%= dialog_class %>" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title"><%= title %></h5> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<%= yield %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<table class="table"> | ||
<tbody> | ||
<tr> | ||
<td><strong>VM Name</strong></td> | ||
<td><%= request.name %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>CPU Cores</strong></td> | ||
<td><%= request.cpu_cores %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>RAM</strong></td> | ||
<td><%= request.ram_gb %> GB</td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Storage</strong></td> | ||
<td><%= request.storage_gb %> GB</td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Operating System</strong></td> | ||
<td><%= request.operating_system %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Port Forwarding</strong></td> | ||
<td> | ||
Enabled: <%= t request.port_forwarding %><br> | ||
<%= request.application_name %> <%= request.port %> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Description</strong></td> | ||
<td class="col-md-4"><%= request.description %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Comment</strong></td> | ||
<td class="col-md-4"><%= request.comment %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Status</strong></td> | ||
<td> | ||
<%= request.status %><br> | ||
<% if request.rejected? %> | ||
<strong>Rejection Information:</strong> <%= request.rejection_information %> | ||
<% end %> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Responsible users</strong></td> | ||
<td> | ||
<% request.responsible_users.each do |user| %> | ||
<p><%= user.email %></p> | ||
<% end %> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Users with sudo rights</strong></td> | ||
<td> | ||
<% request.sudo_user_assignments.each do |assignment| %> | ||
<p><%= assignment.user.email %></p> | ||
<% end %> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Users</strong></td> | ||
<td> | ||
<% request.non_sudo_user_assignments.each do |assignment| %> | ||
<p><%= assignment.user.email %></p> | ||
<% end %> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Request Date</strong></td> | ||
<td> | ||
<%= I18n.l request.created_at, format: :long %> (<%= time_ago_in_words request.created_at %> ago) | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,5 @@ | ||
<h1>Request Information</h1> | ||
|
||
<table class="table"> | ||
<tbody> | ||
<tr> | ||
<td><strong>VM Name</strong></td> | ||
<td><%= @request.name %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>CPU cores</strong></td> | ||
<td><%= @request.cpu_cores %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>RAM in GB:</strong></td> | ||
<td><%= @request.ram_gb %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Storage in GB:</strong></td> | ||
<td><%= @request.storage_gb %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Operating System</strong></td> | ||
<td><%= @request.operating_system %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Port</strong></td> | ||
<td><%= @request.port %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Application Name</strong></td> | ||
<td><%= @request.application_name %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Description</strong></td> | ||
<td class="col-md-4"><%= @request.description %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Comment</strong></td> | ||
<td class="col-md-4"><%= @request.comment %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Status</strong></td> | ||
<td><%= @request.status %></td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Responsible users</strong></td> | ||
<td> | ||
<% @request.responsible_users.each do |user| %> | ||
<p><%= user.email %></p> | ||
<% end %> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Users with sudo rights</strong></td> | ||
<td> | ||
<% @request.sudo_user_assignments.each do |assignment| %> | ||
<p><%= assignment.user.email %></p> | ||
<% end %> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<td><strong>Users</strong></td> | ||
<td> | ||
<% @request.non_sudo_user_assignments.each do |assignment| %> | ||
<p><%= assignment.user.email %></p> | ||
<% end %> | ||
</td> | ||
</tr> | ||
|
||
</tbody> | ||
</table> | ||
|
||
<% if @request.rejected? %> | ||
<p> | ||
<strong>Rejection Information:</strong> | ||
<%= @request.rejection_information %> | ||
</p> | ||
<% end %> | ||
<%= render 'detail', request: @request %> | ||
<%= link_to 'Back', requests_path, class: "btn btn-secondary" %> |
Oops, something went wrong.