gluster-web-interface/app/views/volume/index.html.erb

138 lines
5.1 KiB
Plaintext
Raw Normal View History

2016-09-02 08:36:10 +00:00
<div class="popup-close" id="popup_mount">
</div>
2016-08-30 11:22:26 +00:00
<!-- page content -->
<div class="right_col" role="main">
2016-08-20 06:58:04 +00:00
<div class="page-title">
<div class="title_left">
2016-08-30 11:22:26 +00:00
<h3>Volume</h3>
2016-08-20 06:58:04 +00:00
</div>
<div class="title_right">
<div class="col-md-5 col-sm-5 col-xs-12 pull-right">
<button class="btn btn-primary pull-right" onclick="volume_create">
Create
</button>
2016-08-20 06:58:04 +00:00
</div>
</div>
</div>
2016-08-22 08:35:24 +00:00
2016-08-20 06:58:04 +00:00
<div class="clearfix"></div>
2016-08-30 11:22:26 +00:00
<div class="row">
2016-08-20 12:02:16 +00:00
<%@volumes.each do |t|%>
2016-08-22 09:41:25 +00:00
<div class="col-md-12 col-sm-12 col-xs-12">
2016-08-22 08:35:24 +00:00
<div class="x_panel">
<div class="x_title">
<h2>Infomation <small><%=t["Volume Name"]%></small></h2>
<ul class="nav navbar-right panel_toolbox">
2016-08-30 11:22:26 +00:00
<li><a class="collapse-link"><i <%if t!=@volumes[0]%> class="fa fa-chevron-down" <%else%> class="fa fa-chevron-up" <%end%> ></i></a>
2016-08-22 08:35:24 +00:00
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
2016-08-22 08:35:24 +00:00
<ul class="dropdown-menu" role="menu">
<li><a href="#">Settings 1</a>
</li>
<li><a href="#">Settings 2</a>
</li>
</ul>
</li>
<li><a class="close-link" style="display:none;"><i class="fa fa-close"></i></a>
2016-08-22 08:35:24 +00:00
</li>
</ul>
<div class="clearfix"></div>
</div>
2016-08-30 11:22:26 +00:00
<div class="x_content" <%if t!=@volumes[0]%> style="display: none;" <%end%> >
2016-08-22 08:35:24 +00:00
2016-08-22 09:41:25 +00:00
<div class="col-md-4 col-sm-4 col-xs-4">
2016-08-30 11:22:26 +00:00
<p class="text-muted font-13 m-b-30"><code>Volume Info</code></p>
2016-08-20 12:02:16 +00:00
Type : <%=t["Type"]%> <br>
Volume ID : <%=t["Volume ID"]%> <br>
Status : <%=t["Status"]%> <br>
Number of Bricks : <%=t["Number of Bricks"]%> <br>
Transport-type : <%=t["Transport-type"]%> <br>
Bricks : <%=t["Bricks"]%> <br>
Bricks1 : <%=t["Brick1"]%> <br>
Options Reconfigured : <%=t["Options Reconfigured"]%> <br>
2016-08-31 14:42:14 +00:00
performance.readdir-ahead : <%=t["performance.readdir-ahead"]%>
<br><br><br>
2016-09-02 08:36:10 +00:00
2016-09-01 10:10:57 +00:00
<% if t["Status"] == " Stopped" %>
2016-09-02 08:36:10 +00:00
<a class="btn btn-app" href="/volume/start/<%=t['Volume Name']%>">
<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']%>">
2016-09-01 09:02:00 +00:00
<i class="fa fa-trash"></i> Delete
2016-09-02 08:36:10 +00:00
</a>
2016-08-31 14:42:14 +00:00
<% else %>
2016-09-02 08:36:10 +00:00
<a class="btn btn-app" href="/volume/stop/<%=t['Volume Name']%>">
<i class="fa fa-pause" style="color:#d9534f;"></i>
<p style="color:#d9534f;">Stop</p>
</a>
<button class="btn btn-app" id="Btn_Mount">
<i class="fa fa-upload"></i> Mount
</button>
<div id="test1">
</div>
2016-09-01 11:04:46 +00:00
2016-09-02 08:36:10 +00:00
<!--
<form class="form-horizontal form-label-right" action="/volume/mount" method="post">
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-3" for="mount_point">Mount Point</label>
<div class="col-md-6 col-sm-6 col-xs-12"><input type="text" name="mount_point" required="required" class="form-control"></div>
</div>
<input type="hidden" name="volume_name" value="<%=t['Volume Name']%>" />
<button class="btn btn-app" type="submit">
<i class="fa fa-upload"></i> Mount
</button>
</form>
-->
2016-08-31 14:42:14 +00:00
<% end %>
</div>
2016-08-22 08:35:24 +00:00
2016-08-22 09:41:25 +00:00
<div class="col-md-8 col-sm-8 col-xs-8">
2016-08-28 14:19:04 +00:00
<p>Drag multiple files to the box below for multi upload or click to select files.</p>
<form action="/file_upload" method="post" enctype="multipart/form-data" class="dropzone" style="border: 1px solid #e5e5e5; height: 300px; overflow:auto;">
2016-08-22 09:00:01 +00:00
</form>
2016-08-22 09:41:25 +00:00
<br/>
2016-08-22 08:35:24 +00:00
</div>
2016-08-20 06:58:04 +00:00
</div>
</div>
2016-08-22 08:35:24 +00:00
</div>
2016-08-20 12:02:16 +00:00
<%end%>
2016-08-20 06:58:04 +00:00
</div>
</div>
2016-08-30 11:22:26 +00:00
<!-- /page content -->
2016-08-25 10:22:48 +00:00
<!-- volume functions -->
<script>
function volume_create() {
}
2016-08-31 13:34:09 +00:00
</script>
2016-09-02 08:36:10 +00:00
<script type="text/javascript">
$('#Btn_Mount').on('click', function(event){
$('#popup_mount').attr("class", "popup");
$('#popup_mount').on('click', function(event){
$('#popup_mount').attr("class", "popup-close")
})
})
</script>