add mount button
This commit is contained in:
parent
d5e65393f7
commit
199f2c0c91
@ -92,4 +92,11 @@ class VolumeController < ApplicationController
|
||||
files = file_directory(params[:path])
|
||||
render :json => {:file => files , :current => @current_dir}
|
||||
end
|
||||
|
||||
def mount
|
||||
puts "@@@@@@@@@@"
|
||||
puts params[:volume_id]
|
||||
puts "##########"
|
||||
redirect_to '/volume/info'
|
||||
end
|
||||
end
|
||||
|
@ -53,6 +53,9 @@
|
||||
Bricks1 : <%=t["Brick1"]%> <br>
|
||||
Options Reconfigured : <%=t["Options Reconfigured"]%> <br>
|
||||
performance.readdir-ahead : <%=t["performance.readdir-ahead"]%> <br>
|
||||
<a class="btn btn-app" href="/volume/mount/<%=t["Volume ID"]%>">
|
||||
<i class="fa fa-upload"></i> Mount
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="col-md-8 col-sm-8 col-xs-8">
|
||||
|
@ -14,14 +14,20 @@ Rails.application.routes.draw do
|
||||
|
||||
get 'index' => 'plainpage#index'
|
||||
|
||||
#Volume
|
||||
get 'volume/index' => 'volume#index'
|
||||
|
||||
get 'peer/index' => 'peer#index'
|
||||
|
||||
post 'file_upload' => 'volume#file_upload'
|
||||
|
||||
post 'volume/changeDir' => 'volume#checkDir'
|
||||
|
||||
get 'volume/mount/:volume_id' => "volume#mount"
|
||||
|
||||
|
||||
get 'peer/index' => 'peer#index'
|
||||
|
||||
|
||||
|
||||
# Example of regular route:
|
||||
# get 'products/:id' => 'catalog#view'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user