related to #1465 added memories case

This commit is contained in:
Matthieu Leproux
2021-09-27 12:00:14 +02:00
committed by plegall
parent 6fcedc19a3
commit 2d69825b04
4 changed files with 15 additions and 4 deletions

View File

@@ -127,6 +127,7 @@ function fillSummaryResult(summary) {
$(".user-dot").attr("title", user_dot_title).addClass("tiptip");
var tmp = 0;
$(".user-dot").hide();
//sorted
for (const [key, value] of Object.entries(summary.SORTED_MEMBERS)) {
if (tmp < 5) {
@@ -144,7 +145,6 @@ function fillSummaryResult(summary) {
}
})
$(".user-list").append(new_user_item);
$(".user-dot").hide();
tmp++;
} else {
$(".user-dot").show();
@@ -210,7 +210,7 @@ function lineConstructor(line, id, imageDisplay) {
"line-icon icon-folder-open icon-yellow",
"line-icon icon-tags icon-blue",
"line-icon icon-star icon-green",
"line-icon icon-wrench",
"line-icon icon-clock icon-yellow",
"line-icon icon-dice-solid icon-purple",
"line-icon icon-search icon-purple",
"line-icon icon-fire icon-red",
@@ -315,6 +315,10 @@ function lineConstructor(line, id, imageDisplay) {
newLine.find(".type-id").remove();
}
break;
case "memories-1-year-ago":
newLine.find(".type-name").html(str_memories);
newLine.find(".type-id").remove();
break;
default:
break;
}

View File

@@ -40,6 +40,7 @@ const str_list = "{'Random photo'|translate}";
const str_favorites = "{'Your favorites'|translate}";
const str_recent_cats = "{'Recent albums'|translate}";
const str_recent_pics = "{'Recent photos'|translate}";
const str_memories = "{'Memories'|translate}";
const unit_MB = "{"%s MB"|@translate}";
{/footer_script}
@@ -674,4 +675,8 @@ jQuery(document).ready( function() {
margin: 0 15px 0 0;
}
.user-list {
margin-right: 10px;
}
</style>

View File

@@ -1263,4 +1263,5 @@ $lang['Tag name'] = 'Tag name';
$lang['Visited'] = 'Visited';
$lang['Downloaded'] = 'Downloaded';
$lang['Personnalized filters'] = 'Personnalized filters';
$lang['Object'] = 'Object';
$lang['Object'] = 'Object';
$lang['Memories'] = 'Souvenirs';

View File

@@ -1265,4 +1265,5 @@ $lang['Tag name'] = 'Nom du tag';
$lang['Visited'] = 'Visité';
$lang['Downloaded'] = 'Téléchargé';
$lang['Personnalized filters'] = 'Filtres personnalisés';
$lang['Object'] = 'Objet';
$lang['Object'] = 'Objet';
$lang['Memories'] = 'Souvenirs';