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
+63 -21
View File
@@ -39,6 +39,18 @@ msgstr "Musisz się zalogować, aby utworzyć bloga"
msgid "You are not allowed to delete this blog."
msgstr "Nie masz uprawnień do usunięcia tego bloga."
#, fuzzy
msgid "You are not allowed to edit this blog."
msgstr "Nie masz uprawnień do usunięcia tego bloga."
#, fuzzy
msgid "You can't use this media as blog icon."
msgstr "Nie masz uprawnień do usunięcia tego bloga."
#, fuzzy
msgid "You can't use this media as blog banner."
msgstr "Nie masz uprawnień do usunięcia tego bloga."
msgid "You need to be logged in order to like a post"
msgstr "Musisz się zalogować, aby polubić wpis"
@@ -370,6 +382,13 @@ msgstr "Używana przez <em>{0}</em> użytkowników"
msgid "Read the detailed rules"
msgstr "Przeczytaj szczegółowe zasady"
msgid "None"
msgstr "Brak"
#, fuzzy
msgid "No description"
msgstr "Szczegółowy opis"
msgid "View all"
msgstr "Zobacz wszystko"
@@ -539,9 +558,6 @@ msgstr "Pozostawienie pustego jest równe zastrzeżeniu wszystkich praw"
msgid "Illustration"
msgstr "Ilustracja"
msgid "None"
msgstr "Brak"
msgid "This is a draft, don't publish it yet."
msgstr "To jest szkic, nie publikuj go jeszcze."
@@ -653,6 +669,38 @@ msgid "Sorry about that. If you think this is a bug, please report it."
msgstr ""
"Przepraszamy. Jeżeli uważasz że wystąpił błąd, prosimy o zgłoszenie go."
#, fuzzy
msgid "Edit \"{}\""
msgstr "Edytuj {0}"
msgid "Description"
msgstr "Opis"
msgid ""
"You can upload images to your gallery, to use them as blog icons or banners."
msgstr ""
#, fuzzy
msgid "Upload images"
msgstr "Wyślij"
#, fuzzy
msgid "Blog icon"
msgstr "Tytuł bloga"
msgid "Blog banner"
msgstr ""
#, fuzzy
msgid "Update blog"
msgstr "Utwórz blog"
msgid "Be very careful, any action taken here can't be reversed."
msgstr "Bądź ostrożny(-a), działania podjęte tutaj nie mogą zostać cofnięte."
msgid "Permanently delete this blog"
msgstr "Bezpowrotnie usuń ten blog"
msgid "New Blog"
msgstr "Nowy blog"
@@ -662,30 +710,21 @@ msgstr "Utwórz blog"
msgid "Create blog"
msgstr "Utwórz blog"
msgid "{}'s icon"
msgstr ""
msgid "New article"
msgstr "Nowy artykuł"
msgid "There's one author on this blog: "
msgid_plural "There are {0} authors on this blog: "
msgstr[0] "Ten blog ma jednego autora: "
msgstr[1] "Ten blog ma {0} autorów: "
msgstr[2] "Ten blog ma {0} autorów: "
msgid "There's one article on this blog"
msgid_plural "There are {0} articles on this blog"
msgstr[0] "Jeden artykuł na tym blogu"
msgstr[1] "{0} artykuły na tym blogu"
msgstr[2] "{0} artykułów na tym blogu"
msgid "No posts to see here yet."
msgstr "Brak wpisów do wyświetlenia."
msgid "New article"
msgstr "Nowy artykuł"
msgid "Be very careful, any action taken here can't be reversed."
msgstr "Bądź ostrożny(-a), działania podjęte tutaj nie mogą zostać cofnięte."
msgid "Permanently delete this blog"
msgstr "Bezpowrotnie usuń ten blog"
msgid "Articles tagged \"{0}\""
msgstr "Artykuły oznaczone „{0}”"
@@ -712,9 +751,6 @@ msgstr "Szczegóły zawartości multimedialnej"
msgid "Media upload"
msgstr "Wysyłanie zawartości multimedialnej"
msgid "Description"
msgstr "Opis"
msgid "Useful for visually impaired people, as well as licensing information"
msgstr ""
"Przydatny dla osób z problemami ze wzrokiem oraz do umieszczenia informacji "
@@ -744,6 +780,12 @@ msgstr "Skopiuj do swoich artykułów, aby wstawić tę zawartość multimedialn
msgid "Use as avatar"
msgstr "Użyj jako awataru"
#~ msgid "There's one article on this blog"
#~ msgid_plural "There are {0} articles on this blog"
#~ msgstr[0] "Jeden artykuł na tym blogu"
#~ msgstr[1] "{0} artykuły na tym blogu"
#~ msgstr[2] "{0} artykułów na tym blogu"
#~ msgid "{0}'s followers"
#~ msgstr "Obserwujący {0}"