mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 18:23:18 +02:00
related to #1609 added number of photos in badges
This commit is contained in:
@@ -74,7 +74,7 @@ $(document).ready(() => {
|
||||
cont.find(".move-cat-title").after(
|
||||
"<div class='badge-container'>"
|
||||
+"<i class='icon-blue icon-sitemap nb-subcats'></i>"
|
||||
+"<i class='icon-purple icon-picture nb-images'>"+ node.nb_images +"</i>"
|
||||
+"<i class='icon-purple icon-picture nb-images'></i>"
|
||||
+"<i class='icon-red icon-back-in-time last-update'>"+ node.last_updates +"</i>"
|
||||
+"</div>"
|
||||
)
|
||||
@@ -84,6 +84,12 @@ $(document).ready(() => {
|
||||
} else {
|
||||
cont.find(".nb-subcats").hide();
|
||||
}
|
||||
|
||||
if (node.nb_images != 0) {
|
||||
cont.find(".nb-images").text(node.nb_images);
|
||||
} else {
|
||||
cont.find(".nb-images").hide();
|
||||
}
|
||||
}
|
||||
|
||||
var url_split = window.location.href.split("#");
|
||||
|
||||
@@ -448,7 +448,7 @@ input[name="position"] {
|
||||
.badge-container i {
|
||||
padding: 2px 6px 2px 4px!important;
|
||||
border-radius: 10px !important;
|
||||
font-size: 10px !important;
|
||||
font-size: 0.85em !important;
|
||||
margin: 0 2px !important;
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
|
||||
Reference in New Issue
Block a user