Skip to content

Commit

Permalink
WebAdmin events page: set fixed sizes for potentially long fields
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
  • Loading branch information
drakkan committed May 24, 2024
1 parent 613f2f1 commit 7831dda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions templates/webadmin/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ <h3 data-i18n="events.search" class="card-title section-title">Search logs</h3>
{
data: "virtual_path",
defaultContent: "",
width: '20%',
render: function(data, type, row) {
if (type === 'display') {
if (!data){
Expand Down Expand Up @@ -564,6 +565,7 @@ <h3 data-i18n="events.search" class="card-title section-title">Search logs</h3>
{
data: "status",
defaultContent: "",
width: '15%',
render: function(data, type, row) {
if (type === 'display') {
let info = "";
Expand Down Expand Up @@ -927,6 +929,7 @@ <h3 data-i18n="events.search" class="card-title section-title">Search logs</h3>
{
data: "message",
defaultContent: "",
width: '25%',
render: function(data, type, row) {
if (type === 'display') {
if (data){
Expand Down
5 changes: 4 additions & 1 deletion templates/webadmin/iplists.html
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,10 @@ <h3 data-i18n="ip_list.view_manage" class="card-title section-title">View and ma
visible: true,
render: function(data, type, row) {
if (type === 'display') {
return escapeHTML(data);
if (data){
return escapeHTML(data);
}
return ""
}
return data;
}
Expand Down

0 comments on commit 7831dda

Please sign in to comment.