Add volume unmount
This commit is contained in:
@@ -158,21 +158,23 @@
|
||||
</div>
|
||||
|
||||
|
||||
<% if t["Status"] == " Stopped" %>
|
||||
<a class="btn btn-app" href="/volume/start/<%=t['Volume Name']%>">
|
||||
<% if t["Mount State"] == "Mounted" %>
|
||||
<a class="btn btn-app" href="/volume/unmount/<%=t['Volume Name'].delete(' ')%>"><i class="fa fa-upload"></i> Unmount</a>
|
||||
<% elsif t["Status"] == " Stopped" %>
|
||||
<a class="btn btn-app" href="/volume/start/<%=t['Volume Name'].delete(' ')%>">
|
||||
<i class="fa fa-play" style="color:#26B99A;"></i>
|
||||
<p style="color:#26B99A;">Start</p>
|
||||
</a>
|
||||
<a class="btn btn-app" href="/volume/delete/<%=t['Volume Name']%>">
|
||||
<a class="btn btn-app" href="/volume/delete/<%=t['Volume Name'].delete(' ')%>">
|
||||
<i class="fa fa-trash"></i> Delete
|
||||
</a>
|
||||
<% else %>
|
||||
<a class="btn btn-app" href="/volume/stop/<%=t['Volume Name']%>">
|
||||
<a class="btn btn-app" href="/volume/stop/<%=t['Volume Name'].delete(' ')%>">
|
||||
<i class="fa fa-pause" style="color:#d9534f;"></i>
|
||||
<p style="color:#d9534f;">Stop</p>
|
||||
</a>
|
||||
<!-- mount button push : popup event and post mount point -->
|
||||
<a class="btn btn-app" href="/volume/index?volume_name=<%=t['Volume Name'].delete(' ')%>#popup_mount"><i class="fa fa-upload"></i> Mount</a>
|
||||
<a class="btn btn-app" href="/volume/index?volume_name=<%=t['Volume Name'].delete(' ')%>#popup_mount"><i class="fa fa-download"></i> Mount</a>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user