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 # extract each image type
actorChanged = True actorChanged = True
profileMediaTypes = ('avatar', 'image', profileMediaTypes = ('avatar', 'image',
'banner', 'instanceLogo') 'banner', 'search_banner',
'instanceLogo')
profileMediaTypesUploaded = {} profileMediaTypesUploaded = {}
for mType in profileMediaTypes: for mType in profileMediaTypes:
if self.server.debug: if self.server.debug:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -229,5 +229,6 @@
"Blue": "Azul", "Blue": "Azul",
"Zen": "Zen", "Zen": "Zen",
"Night": "Noche", "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", "Blue": "Bleue",
"Zen": "Zen", "Zen": "Zen",
"Night": "Nuit", "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", "Blue": "Gorm",
"Zen": "Zen", "Zen": "Zen",
"Night": "Oíche", "Night": "Oíche",
"Starlight": "Starlight" "Starlight": "Starlight",
"Search banner image": "Cuardaigh íomhá meirge"
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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