Set search banner from profile

main
Bob Mottram 2020-06-10 17:56:23 +01:00
parent 9b2a61f555
commit c357ad6a0d
17 changed files with 40 additions and 16 deletions

View File

@ -5778,7 +5778,8 @@ class PubServer(BaseHTTPRequestHandler):
# extract each image type
actorChanged = True
profileMediaTypes = ('avatar', 'image',
'banner', 'instanceLogo')
'banner', 'search_banner',
'instanceLogo')
profileMediaTypesUploaded = {}
for mType in profileMediaTypes:
if self.server.debug:

View File

@ -229,5 +229,6 @@
"Blue": "أزرق",
"Zen": "زين",
"Night": "ليل",
"Starlight": "ضوء النجوم"
"Starlight": "ضوء النجوم",
"Search banner image": "البحث عن صورة بانر"
}

View File

@ -229,5 +229,6 @@
"Blue": "Blau",
"Zen": "Zen",
"Night": "Nit",
"Starlight": "Starlight"
"Starlight": "Starlight",
"Search banner image": "Cerca imatge del banner"
}

View File

@ -229,5 +229,6 @@
"Blue": "Glas",
"Zen": "Zen",
"Night": "Noson",
"Starlight": "Starlight"
"Starlight": "Starlight",
"Search banner image": "Chwilio delwedd baner"
}

View File

@ -229,5 +229,6 @@
"Blue": "Blau",
"Zen": "Zen",
"Night": "Nacht",
"Starlight": "Sternenlicht"
"Starlight": "Sternenlicht",
"Search banner image": "Suche Banner Bild"
}

View File

@ -229,5 +229,6 @@
"Blue": "Blue",
"Zen": "Zen",
"Night": "Night",
"Starlight": "Starlight"
"Starlight": "Starlight",
"Search banner image": "Search banner image"
}

View File

@ -229,5 +229,6 @@
"Blue": "Azul",
"Zen": "Zen",
"Night": "Noche",
"Starlight": "Luz de las estrellas"
"Starlight": "Luz de las estrellas",
"Search banner image": "Buscar imagen de banner"
}

View File

@ -229,5 +229,6 @@
"Blue": "Bleue",
"Zen": "Zen",
"Night": "Nuit",
"Starlight": "Lumière des étoiles"
"Starlight": "Lumière des étoiles",
"Search banner image": "Image de bannière de recherche"
}

View File

@ -229,5 +229,6 @@
"Blue": "Gorm",
"Zen": "Zen",
"Night": "Oíche",
"Starlight": "Starlight"
"Starlight": "Starlight",
"Search banner image": "Cuardaigh íomhá meirge"
}

View File

@ -229,5 +229,6 @@
"Blue": "नीला",
"Zen": "जेन",
"Night": "रात",
"Starlight": "तारों का"
"Starlight": "तारों का",
"Search banner image": "बैनर छवि खोजें"
}

View File

@ -229,5 +229,6 @@
"Blue": "Blu",
"Zen": "Zen",
"Night": "Notte",
"Starlight": "luce stellare"
"Starlight": "luce stellare",
"Search banner image": "Cerca immagine banner"
}

View File

@ -229,5 +229,6 @@
"Blue": "青い",
"Zen": "禅",
"Night": "夜",
"Starlight": "スターライト"
"Starlight": "スターライト",
"Search banner image": "バナー画像を検索"
}

View File

@ -225,5 +225,6 @@
"Blue": "Blue",
"Zen": "Zen",
"Night": "Night",
"Starlight": "Starlight"
"Starlight": "Starlight",
"Search banner image": "Search banner image"
}

View File

@ -229,5 +229,6 @@
"Blue": "Azul",
"Zen": "Zen",
"Night": "Noite",
"Starlight": "Luz das estrelas"
"Starlight": "Luz das estrelas",
"Search banner image": "Pesquisar imagem do banner"
}

View File

@ -229,5 +229,6 @@
"Blue": "синий",
"Zen": "Zen",
"Night": "Ночь",
"Starlight": "Звездный свет"
"Starlight": "Звездный свет",
"Search banner image": "Поиск изображения баннера"
}

View File

@ -228,5 +228,6 @@
"Blue": "蓝色",
"Zen": "禅",
"Night": "晚",
"Starlight": "星光"
"Starlight": "星光",
"Search banner image": "搜索横幅图像"
}

View File

@ -1280,15 +1280,23 @@ def htmlEditProfile(translate: {}, baseDir: str, path: str,
editProfileForm += \
' <input type="file" id="avatar" name="avatar"'
editProfileForm += ' accept="' + imageFormats + '">'
editProfileForm += \
' <br><label class="labels">' + \
translate['Background image'] + '</label>'
editProfileForm += ' <input type="file" id="image" name="image"'
editProfileForm += ' accept="' + imageFormats + '">'
editProfileForm += ' <br><label class="labels">' + \
translate['Timeline banner image'] + '</label>'
editProfileForm += ' <input type="file" id="banner" name="banner"'
editProfileForm += ' accept="' + imageFormats + '">'
editProfileForm += ' <br><label class="labels">' + \
translate['Search banner image'] + '</label>'
editProfileForm += ' <input type="file" id="search_banner" name="search_banner"'
editProfileForm += ' accept="' + imageFormats + '">'
editProfileForm += ' </div>'
editProfileForm += ' <div class="container">'
editProfileForm += \