Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanner path + clickable label #25

Merged
merged 2 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading