Skip to content

Commit

Permalink
Merge pull request #25 from CleanTalk/view_update.ag
Browse files Browse the repository at this point in the history
Scanner path + clickable label
  • Loading branch information
alexandergull authored Apr 17, 2024
2 parents 1113569 + 46545a4 commit b0b9400
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
10 changes: 8 additions & 2 deletions uniforce/css/settings-table.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,18 @@ tbody{
vertical-align: top;
padding: 8px 10px;
}
tbody tr td{ position: relative;}
tbody tr td {
position: relative;
}

tfoot{
border: 1px solid #ccd0d4;
}

.column-path {
word-break: break-word !important;
}

[disabled]:hover{cursor: not-allowed;}

.tbl-width--50px{width: 50px;}
Expand Down Expand Up @@ -131,4 +137,4 @@ tr:hover .row-actions span.tbl-row_action--approve{color: #0a0;}
border: 1px solid rgb(51, 51, 51);
border-radius: 5px;
z-index: 20;
}
}
5 changes: 2 additions & 3 deletions uniforce/inc/scanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,14 @@ function spbc_scanner__display__prepare_data__files( &$table ){
unset($row->actions['view_bad']);
if( isset( $row->status ) && $row->status === 'quarantined' )
unset($row->actions['quarantine']);

$table->items[] = array(
'cb' => $row->fast_hash,
'uid' => $row->fast_hash,
'size' => substr(number_format($row->size, 2, ',', ' '), 0, -3),
'perms' => $row->perms,
'mtime' => date('M d Y H:i:s', $row->mtime),
'path' => strlen($root.$row->path) >= 40
? '<div class="spbcShortText">...' . substr($row->path, -40) . '</div><div class="spbcFullText --hide">' . $root . $row->path . '</div>'
'path' => strlen($root . $row->path) >= 120
? '<div class="spbcShortText">...' . substr($row->path, -120) . '</div><div class="spbcFullText --hide">' . $root . $row->path . '</div>'
: $root . $row->path,
'actions' => $row->actions,
);
Expand Down
2 changes: 1 addition & 1 deletion uniforce/lib/Cleantalk/USP/Layout/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function draw_element__checkbox() {
.($this->child_fields ? ' onchange="uspSettingsDependencies([\''.implode("','",$this->child_fields).'\'])"' : '')
.' />';
echo isset($this->title)
? '<label for="ctusp_setting---'.$this->getName().'" class="ctusp_field-title ctusp_field-title--'.$this->input_type.'">'.$this->title.'</label>'
? '<label for="ctusp_field---'.$this->getName().'" class="ctusp_field-title ctusp_field-title--'.$this->input_type.'">'.$this->title.'</label>'
: '';
echo $this->description
?'<div class="ctusp_field-description">'. $this->description .'</div>'
Expand Down

0 comments on commit b0b9400

Please sign in to comment.