HDFS-14832. RBF: Add Icon for ReadOnly False. Contributed by hemanthboyina

This commit is contained in:
Takanobu Asanuma 2019-09-25 23:48:49 +09:00
parent c89d22d13a
commit bdaaa3bbf2
3 changed files with 35 additions and 8 deletions

View File

@ -384,6 +384,12 @@
<!-- Mount table --> <!-- Mount table -->
<script type="text/x-dust-template" id="tmpl-mounttable"> <script type="text/x-dust-template" id="tmpl-mounttable">
<div class="page-header"><h1>Mount Table</h1></div> <div class="page-header"><h1>Mount Table</h1></div>
<div>
<ul class="federationhealth-mounttable-legend">
<li class="federationhealth-mounttable-icon federationhealth-mounttable-readonly">Read Only</li>
<li class="federationhealth-mounttable-icon federationhealth-mounttable-readwrite">Read Write</li>
</ul>
</div>
<small> <small>
<table class="table"> <table class="table">
<thead> <thead>
@ -392,7 +398,7 @@
<th>Target nameservice</th> <th>Target nameservice</th>
<th>Target path</th> <th>Target path</th>
<th>Order</th> <th>Order</th>
<th>Read only</th> <th>Mount option</th>
<th>Fault tolerant</th> <th>Fault tolerant</th>
<th>Owner</th> <th>Owner</th>
<th>Group</th> <th>Group</th>
@ -409,7 +415,7 @@
<td>{nameserviceId}</td> <td>{nameserviceId}</td>
<td>{path}</td> <td>{path}</td>
<td>{order}</td> <td>{order}</td>
<td align="center" class="mount-table-icon mount-table-read-only-{readonly}" title="{status}"/> <td align="center" class="federationhealth-mounttable-icon federationhealth-mounttable-{readonly}" title="{status}"/>
<td align="center" class="mount-table-icon mount-table-fault-tolerant-{faulttolerant}" title="{ftStatus}"></td> <td align="center" class="mount-table-icon mount-table-fault-tolerant-{faulttolerant}" title="{ftStatus}"></td>
<td>{ownerName}</td> <td>{ownerName}</td>
<td>{groupName}</td> <td>{groupName}</td>

View File

@ -315,10 +315,11 @@
function augment_read_only(mountTable) { function augment_read_only(mountTable) {
for (var i = 0, e = mountTable.length; i < e; ++i) { for (var i = 0, e = mountTable.length; i < e; ++i) {
if (mountTable[i].readonly == true) { if (mountTable[i].readonly == true) {
mountTable[i].readonly = "true" mountTable[i].readonly = "readonly"
mountTable[i].status = "Read only" mountTable[i].status = "Read Only"
} else { } else {
mountTable[i].readonly = "false" mountTable[i].readonly = "readwrite"
mountTable[i].status = "Read Write"
} }
} }
} }

View File

@ -120,7 +120,7 @@
padding-right: 5pt; padding-right: 5pt;
} }
.mount-table-icon:before { .federationhealth-mounttable-icon:before {
font-size: 10pt; font-size: 10pt;
padding-right: 1pt; padding-right: 1pt;
font-family: 'Glyphicons Halflings'; font-family: 'Glyphicons Halflings';
@ -131,11 +131,31 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.mount-table-read-only-true:before { .federationhealth-mounttable-readonly:before {
color: #5fa341; color: #000000;
content: "\e033"; content: "\e033";
} }
.federationhealth-mounttable-readwrite:before {
color: #000000;
content: "\e065";
}
.federationhealth-mounttable-legend {
list-style-type: none;
text-align: right;
}
.federationhealth-mounttable-legend li {
display: inline;
padding: 10pt;
padding-left: 10pt;
}
.federationhealth-mounttable-legend li:before {
padding-right: 5pt;
}
.mount-table-fault-tolerant-true:before { .mount-table-fault-tolerant-true:before {
color: #5fa341; color: #5fa341;
content: "\e033"; content: "\e033";