Skip to content

Commit 18bdaa4

Browse files
authored
Merge pull request #1121 from NASA-IMPACT/3007-view-deleted-urls-under-delta-urls-page
View deleted URLs under Delta URLs page
2 parents 11a366f + 55c25f6 commit 18bdaa4

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

sde_collections/serializers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ class Meta:
9090
"id",
9191
"excluded",
9292
"url",
93+
"to_delete",
9394
"scraped_title",
9495
"generated_title",
9596
"generated_title_id",

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
@@ -74,6 +74,7 @@ <h3 class="whiteText deltaTitle">
7474
<tr>
7575
<th scope="col" class="text-center col-1"><div class="header-title">URL</div></th>
7676
<th scope="col" class="text-center col-1"><div class="header-title">Exclude</div></th>
77+
<th class="text-center col-1" scope="col"><div class="header-title">Deleted</div></th>
7778
<th scope="col" class="text-center col-1"><div class="header-title">Scraped Title</div></th>
7879
<th scope="col" class="text-center col-1"><div class="header-title">New Title</div></th>
7980
<th scope="col" class="text-center col-1"><div class="header-title">Document Type</div></th>
@@ -96,6 +97,10 @@ <h3 class="whiteText deltaTitle">
9697
<option value="false">FALSE</option>
9798
<option value="true">TRUE</option>
9899
</select></td>
100+
<td ><select class="dropdown-1 select-dropdown selectStyling"><option value="">SELECT</option>
101+
<option value="false">FALSE</option>
102+
<option value="true">TRUE</option>
103+
</select></td>
99104
<td ><input type="text" class="table_filter_row_input textBoxStyling" id="deltaScrapedTitleFilter" placeholder="Scraped Title" /></td>
100105
<td ><input type="text" class="table_filter_row_input textBoxStyling" id="deltaNewTitleFilter" placeholder="New Title" /></td>
101106
<td><select class="dropdown-4 select-dropdown selectStyling"><option value="">SELECT</option>

0 commit comments

Comments
 (0)