VirtualMachineHosting* -> VirtualMachine*
This commit is contained in:
parent
11270fc7b1
commit
3f3c835598
6 changed files with 6 additions and 6 deletions
|
@ -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
|
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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 %>
|
|
@ -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
|
Loading…
Reference in a new issue