Skip to content

Commit

Permalink
Merge pull request #613 from NASA-IMPACT/612-remove-url-page-columns-…
Browse files Browse the repository at this point in the history
…cluttering-ui

612 remove url page columns cluttering UI
  • Loading branch information
bishwaspraveen authored Mar 1, 2024
2 parents e9f6a94 + 6169e87 commit 51ab5cd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
32 changes: 0 additions & 32 deletions sde_indexing_helper/static/js/candidate_url_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@ function initializeDataTable() {
"columns": [
getURLColumn(),
getExcludedColumn(true_icon, false_icon),
getIsPresentOnTestColumn(true_icon, false_icon),
getIsPresentInProductionColumn(true_icon, false_icon),
getScrapedTitleColumn(),
getGeneratedTitleColumn(),
getTestTitleColumn(),
getProdTitleColumn(),
getVisitedColumn(true_icon, false_icon),
getDocumentTypeColumn(),
{ "data": "id", "visible": false, "searchable": false },
Expand Down Expand Up @@ -187,18 +183,6 @@ function getGeneratedTitleColumn() {
}
}

function getTestTitleColumn() {
return {
"data": "test_title"
}
}

function getProdTitleColumn() {
return {
"data": "production_title"
}
}

function getExcludedColumn(true_icon, false_icon) {
return {
"data": "excluded", "class": "col-1 text-center", "render": function (data, type, row) {
Expand All @@ -217,22 +201,6 @@ function getVisitedColumn(true_icon, false_icon) {
}
}

function getIsPresentOnTestColumn(true_icon, false_icon) {
return {
"data": "present_on_test", "class": "col-1 text-center", "render": function (data, type, row) {
return (data === true) ? true_icon : false_icon
}
}
}

function getIsPresentInProductionColumn(true_icon, false_icon) {
return {
"data": "present_on_prod", "class": "col-1 text-center", "render": function (data, type, row) {
return (data === true) ? true_icon : false_icon
}
}
}

function getDocumentTypeColumn() {
return {
"data": "document_type", "render": function (data, type, row) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,8 @@ <h3>
<tr>
<th scope="col" class="text-center col-1">URL</th>
<th scope="col" class="text-center col-1">Exclude</th>
<th scope="col" class="text-center col-1">URL on Test Server?</th>
<th scope="col" class="text-center col-1">URL in Production?</th>
<th scope="col" class="text-center col-1">Scraped Title</th>
<th scope="col" class="text-center col-1">New Title</th>
<th scope="col" class="text-center col-1">Title on Test Server</th>
<th scope="col" class="text-center col-1">Title in Production</th>
<th scope="col" class="text-center col-1">Visited?</th>
<th scope="col" class="text-center col-1">Document Type</th>
<th scope="col" class="text-center col-1">ID</th>
Expand Down

0 comments on commit 51ab5cd

Please sign in to comment.