mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-19 16:13:00 +02:00
fixed #1742 added default case for history lines and contact form case
This commit is contained in:
@@ -777,6 +777,11 @@ li.plupload_delete a:hover {background: url("images/cancelhover.svg")!important;
|
||||
color: #6ece5e;
|
||||
}
|
||||
|
||||
.icon-grey {
|
||||
color: #444;
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
.applicationCard {
|
||||
box-shadow: 0px 0px 4px 4px #DBDBDB;
|
||||
}
|
||||
|
||||
@@ -370,8 +370,16 @@ function lineConstructor(line, id, imageDisplay) {
|
||||
newLine.find(".type-name").html(str_memories);
|
||||
newLine.find(".type-id").remove();
|
||||
break;
|
||||
case "contact":
|
||||
newLine.find(".type-icon i").addClass("line-icon icon-puzzle icon-yellow");
|
||||
newLine.find(".type-name").html(str_contact_form);
|
||||
newLine.find(".type-id").remove();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
newLine.find(".type-icon i").addClass("line-icon icon-help-circled icon-grey");
|
||||
newLine.find(".type-name").html(line.SECTION);
|
||||
newLine.find(".type-id").remove();
|
||||
break;
|
||||
}
|
||||
|
||||
if (line.IMAGE != "") {
|
||||
@@ -386,7 +394,7 @@ function lineConstructor(line, id, imageDisplay) {
|
||||
var lineIconClass = icons[sections.indexOf(line.SECTION)];
|
||||
newLine.find(".type-icon i").addClass(lineIconClass)
|
||||
} else {
|
||||
console.log("ERROR ON THIS : " + line.SECTION);
|
||||
console.log("Unhandled section : " + line.SECTION);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ const str_memories = "{'Memories'|translate}";
|
||||
const str_no_longer_exist_photo = "{'This photo no longer exists'|@translate}";
|
||||
const unit_MB = "{"%s MB"|@translate}";
|
||||
const str_guest = '{'guest'|@translate}';
|
||||
const str_contact_form = '{'Contact Form'|@translate}';
|
||||
const guest_id = {$guest_id};
|
||||
{/footer_script}
|
||||
|
||||
|
||||
@@ -1248,6 +1248,11 @@ li.plupload_delete a:hover {background: url("images/cancelhover.svg")!important;
|
||||
color: #4ac641;
|
||||
}
|
||||
|
||||
.icon-grey {
|
||||
color: #ccc;
|
||||
border: 2px solid #ccc;
|
||||
}
|
||||
|
||||
|
||||
.themeBox{
|
||||
box-shadow: 0 0 5px #333;
|
||||
|
||||
Reference in New Issue
Block a user