Skip to content

Commit 55c25f6

Browse files
committed
to_delete column visible on url page
1 parent 0726e5f commit 55c25f6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

sde_indexing_helper/static/js/delta_url_list.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ function initializeDataTable() {
253253
columns: [
254254
getURLColumn(),
255255
getExcludedColumn(true_icon, false_icon),
256+
getDeletedColumn(true_icon, false_icon),
256257
getScrapedTitleColumn(),
257258
getGeneratedTitleColumn(),
258259
getDocumentTypeColumn(),
@@ -1209,6 +1210,17 @@ function getCuratedURLColumn() {
12091210
};
12101211
}
12111212

1213+
function getDeletedColumn(true_icon, false_icon) {
1214+
return {
1215+
data: "to_delete",
1216+
width: "10%",
1217+
class: "col-1 text-center",
1218+
render: function (data, type, row) {
1219+
return data === true ? true_icon : false_icon;
1220+
},
1221+
};
1222+
}
1223+
12121224
function getScrapedTitleColumn() {
12131225
return {
12141226
data: "scraped_title",

sde_indexing_helper/templates/sde_collections/delta_urls_list.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ <h3 class="whiteText deltaTitle">
7272
<tr>
7373
<th scope="col" class="text-center col-1"><div class="header-title">URL</div></th>
7474
<th scope="col" class="text-center col-1"><div class="header-title">Exclude</div></th>
75+
<th class="text-center col-1" scope="col"><div class="header-title">Deleted</div></th>
7576
<th scope="col" class="text-center col-1"><div class="header-title">Scraped Title</div></th>
7677
<th scope="col" class="text-center col-1"><div class="header-title">New Title</div></th>
7778
<th scope="col" class="text-center col-1"><div class="header-title">Document Type</div></th>
@@ -94,6 +95,10 @@ <h3 class="whiteText deltaTitle">
9495
<option value="false">FALSE</option>
9596
<option value="true">TRUE</option>
9697
</select></td>
98+
<td ><select class="dropdown-1 select-dropdown selectStyling"><option value="">SELECT</option>
99+
<option value="false">FALSE</option>
100+
<option value="true">TRUE</option>
101+
</select></td>
97102
<td ><input type="text" class="table_filter_row_input textBoxStyling" id="deltaScrapedTitleFilter" placeholder="Scraped Title" /></td>
98103
<td ><input type="text" class="table_filter_row_input textBoxStyling" id="deltaNewTitleFilter" placeholder="New Title" /></td>
99104
<td><select class="dropdown-4 select-dropdown selectStyling"><option value="">SELECT</option>

0 commit comments

Comments
 (0)