mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-29 21:14:05 +02:00
related to #1378 DIsplaying user name on user actions
This commit is contained in:
@@ -517,8 +517,15 @@ function lineConstructor(line) {
|
||||
newLine.find(".date-hour").html(line.hour);
|
||||
|
||||
/* User _Section */
|
||||
newLine.find(".user-pic").html(get_initials(line.username));
|
||||
newLine.find(".user-name").html(line.username);
|
||||
|
||||
if (line.user_id != 2) {
|
||||
newLine.find(".user-name").html(line.username);
|
||||
newLine.find(".user-pic").html(get_initials(line.username));
|
||||
} else {
|
||||
newLine.find(".user-name").html(line.details.users_string);
|
||||
newLine.find(".user-pic").html(get_initials(line.details.users_string));
|
||||
}
|
||||
|
||||
|
||||
/* Detail_section */
|
||||
newLine.find(".detail-item-1").html(line.ip_address);
|
||||
@@ -535,10 +542,15 @@ function lineConstructor(line) {
|
||||
if (line.details.agent) {
|
||||
newLine.find(".detail-item-3").html(line.details.agent);
|
||||
newLine.find(".detail-item-3").attr('title', line.details.agent);
|
||||
} else if (line.details.users_string && line.action != "logout" && line.action != "login") {
|
||||
newLine.find(".detail-item-3").html(line.details.users_string);
|
||||
newLine.find(".detail-item-3").attr('title', line.details.users_string);
|
||||
} else {
|
||||
newLine.find(".detail-item-3").remove();
|
||||
}
|
||||
|
||||
|
||||
|
||||
displayLine(newLine);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user