Edit blogs, and add blog icons and banners (#460)

Also adds a parameter to `md_to_html` to only render inline elements (so that we don't have titles or images in blog descriptions). And moves the delete button for the blog on the edition page.

I still have to update the SQLite migration once others PRs with migrations will be merged.

Also, there will be a problem when you edit a blog while not owning its banner or icon: when validating they will be reset to their default values… I don't see a good solution to this until we have a better way to handle uploads with Rocket (the same is probably happening for articles btw).

And the icon/banner are not federated yet, I don't know if I should add it to this PR or if it can come after?

![image](https://user-images.githubusercontent.com/16254623/53894510-7d853300-4030-11e9-8a2c-f5c0b0c7f512.png)
![image](https://user-images.githubusercontent.com/16254623/53894539-8b3ab880-4030-11e9-8113-685a27be8d7c.png)

Fixes #453
Fixes #454
This commit is contained in:
Baptiste Gelez
2019-03-22 19:51:36 +01:00
committed by GitHub
parent 6cd9c8a01a
commit bdfad844d7
41 changed files with 1391 additions and 456 deletions
+64 -23
View File
@@ -43,6 +43,18 @@ msgstr "Debe estar conectada para escribir un novo artigo"
msgid "You are not allowed to delete this blog."
msgstr "Vostede non é autora en este blog."
#, fuzzy
msgid "You are not allowed to edit this blog."
msgstr "Vostede non é autora en este blog."
#, fuzzy
msgid "You can't use this media as blog icon."
msgstr "Vostede non é autora en este blog."
#, fuzzy
msgid "You can't use this media as blog banner."
msgstr "Vostede non é autora en este blog."
#, fuzzy
msgid "You need to be logged in order to like a post"
msgstr "Debe estar conectada para gustar unha entrada"
@@ -405,6 +417,13 @@ msgstr ""
msgid "Read the detailed rules"
msgstr "Lea o detalle das normas"
msgid "None"
msgstr ""
#, fuzzy
msgid "No description"
msgstr "Descrición longa"
msgid "View all"
msgstr "Ver todos"
@@ -572,9 +591,6 @@ msgstr "Deixar baldeiro si non hai ningunha"
msgid "Illustration"
msgstr "Administración"
msgid "None"
msgstr ""
msgid "This is a draft, don't publish it yet."
msgstr "Esto é un borrador, non publicar por agora."
@@ -696,6 +712,39 @@ msgstr "Algo fallou pola nosa parte"
msgid "Sorry about that. If you think this is a bug, please report it."
msgstr "Lamentálmolo. Si cree que é un bug, infórmenos por favor."
#, fuzzy
msgid "Edit \"{}\""
msgstr "Editar"
msgid "Description"
msgstr "Descrición"
msgid ""
"You can upload images to your gallery, to use them as blog icons or banners."
msgstr ""
#, fuzzy
msgid "Upload images"
msgstr "Subir"
msgid "Blog icon"
msgstr ""
msgid "Blog banner"
msgstr ""
#, fuzzy
msgid "Update blog"
msgstr "Crear blog"
#, fuzzy
msgid "Be very careful, any action taken here can't be reversed."
msgstr "Sexa coidadosa, as accións tomadas non se poden restablecer."
#, fuzzy
msgid "Permanently delete this blog"
msgstr "Borrar este blog"
#, fuzzy
msgid "New Blog"
msgstr "Novo blog"
@@ -706,32 +755,21 @@ msgstr "Crear un blog"
msgid "Create blog"
msgstr "Crear blog"
msgid "{}'s icon"
msgstr ""
msgid "New article"
msgstr "Novo artigo"
#, fuzzy
msgid "There's one author on this blog: "
msgid_plural "There are {0} authors on this blog: "
msgstr[0] "Unha autora en este blog: "
msgstr[1] "{0} autoras en este blog: "
#, fuzzy
msgid "There's one article on this blog"
msgid_plural "There are {0} articles on this blog"
msgstr[0] "Un artigo en este blog"
msgstr[1] "{0} artigos en este blog"
msgid "No posts to see here yet."
msgstr "Aínda non hai entradas publicadas"
msgid "New article"
msgstr "Novo artigo"
#, fuzzy
msgid "Be very careful, any action taken here can't be reversed."
msgstr "Sexa coidadosa, as accións tomadas non se poden restablecer."
#, fuzzy
msgid "Permanently delete this blog"
msgstr "Borrar este blog"
#, fuzzy
msgid "Articles tagged \"{0}\""
msgstr "Artigos etiquetados con {0}"
@@ -759,9 +797,6 @@ msgstr ""
msgid "Media upload"
msgstr "Subir medios"
msgid "Description"
msgstr "Descrición"
#, fuzzy
msgid "Useful for visually impaired people, as well as licensing information"
msgstr "Útil para xente con problemas visuais e licenzas"
@@ -795,6 +830,12 @@ msgstr "Copie para incrustar este contido nos seus artigos"
msgid "Use as avatar"
msgstr "Utilizar como avatar"
#, fuzzy
#~ msgid "There's one article on this blog"
#~ msgid_plural "There are {0} articles on this blog"
#~ msgstr[0] "Un artigo en este blog"
#~ msgstr[1] "{0} artigos en este blog"
#, fuzzy
#~ msgid "{0}'s followers"
#~ msgstr "Unha seguidora"