VirtualMachineHosting* -> VirtualMachine*

This commit is contained in:
Timothée Floure 2021-04-12 15:53:49 +02:00
parent 11270fc7b1
commit 3f3c835598
Signed by: tfloure
GPG key ID: 4502C902C00A1E12
6 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
defmodule MetaWeb.VirtualMachineHostingController do defmodule MetaWeb.VirtualMachineController do
use MetaWeb, :controller use MetaWeb, :controller
alias Meta.OpenNebula, as: ONE alias Meta.OpenNebula, as: ONE

View file

@ -75,8 +75,8 @@ defmodule MetaWeb.Router do
get "/billing", BillingController, :index get "/billing", BillingController, :index
post "/billing/partner/update", BillingController, :update post "/billing/partner/update", BillingController, :update
get "/hosting/vm", VirtualMachineHostingController, :index get "/hosting/vm", VirtualMachineController, :index
get "/hosting/vm/:location/:id", VirtualMachineHostingController, :show get "/hosting/vm/:location/:id", VirtualMachineController, :show
end end
scope "/", MetaWeb do scope "/", MetaWeb do

View file

@ -12,7 +12,7 @@
<li><%= link "Name Service", to: Routes.page_path(@conn, :index) %></li> <li><%= link "Name Service", to: Routes.page_path(@conn, :index) %></li>
<li><%= link "Storage Services", to: Routes.page_path(@conn, :index) %></li> <li><%= link "Storage Services", to: Routes.page_path(@conn, :index) %></li>
--> -->
<li><%= link "Virtual Machines", to: Routes.virtual_machine_hosting_path(@conn, :index) %></li> <li><%= link "Virtual Machines", to: Routes.virtual_machine_path(@conn, :index) %></li>
<% else %> <% else %>
<li><%= link "Log in", to: Routes.user_session_path(@conn, :new) %></li> <li><%= link "Log in", to: Routes.user_session_path(@conn, :new) %></li>
<li><%= link "Register", to: Routes.user_registration_path(@conn, :new) %></li> <li><%= link "Register", to: Routes.user_registration_path(@conn, :new) %></li>

View file

@ -31,7 +31,7 @@ OpenNebula for every location you want to use.</p>
<td><%= Map.get(vm, :NAME) %></td> <td><%= Map.get(vm, :NAME) %></td>
<td><%= render_state(vm) %></td> <td><%= render_state(vm) %></td>
<td> <td>
<%= link "Show history »", to: Routes.virtual_machine_hosting_path(@conn, :show, location, Map.get(vm, :ID)) %> <%= link "Show history »", to: Routes.virtual_machine_path(@conn, :show, location, Map.get(vm, :ID)) %>
</td> </td>
</tr> </tr>
<% end %> <% end %>

View file

@ -1,4 +1,4 @@
defmodule MetaWeb.VirtualMachineHostingView do defmodule MetaWeb.VirtualMachineView do
use MetaWeb, :view use MetaWeb, :view
alias Meta.OpenNebula, as: ONE alias Meta.OpenNebula, as: ONE