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 -22
View File
@@ -46,6 +46,18 @@ msgstr "Du må være logget inn for å lage en ny blogg"
msgid "You are not allowed to delete this blog."
msgstr "Du er ikke denne bloggens forfatter."
#, fuzzy
msgid "You are not allowed to edit this blog."
msgstr "Du er ikke denne bloggens forfatter."
#, fuzzy
msgid "You can't use this media as blog icon."
msgstr "Du er ikke denne bloggens forfatter."
#, fuzzy
msgid "You can't use this media as blog banner."
msgstr "Du er ikke denne bloggens forfatter."
#, fuzzy
msgid "You need to be logged in order to like a post"
msgstr "Du må være logget inn for å like et innlegg"
@@ -411,6 +423,13 @@ msgstr ""
msgid "Read the detailed rules"
msgstr "Les reglene"
msgid "None"
msgstr ""
#, fuzzy
msgid "No description"
msgstr "Lang beskrivelse"
msgid "View all"
msgstr ""
@@ -600,9 +619,6 @@ msgstr ""
msgid "Illustration"
msgstr "Administrasjon"
msgid "None"
msgstr ""
msgid "This is a draft, don't publish it yet."
msgstr ""
@@ -720,6 +736,38 @@ msgstr ""
"Beklager så mye. Dersom du tror dette er en bug, vær grei å rapportér det "
"til oss."
#, fuzzy
msgid "Edit \"{}\""
msgstr "Kommentér \"{0}\""
#, fuzzy
msgid "Description"
msgstr "Lang beskrivelse"
msgid ""
"You can upload images to your gallery, to use them as blog icons or banners."
msgstr ""
#, fuzzy
msgid "Upload images"
msgstr "Din kommentar"
msgid "Blog icon"
msgstr ""
msgid "Blog banner"
msgstr ""
#, fuzzy
msgid "Update blog"
msgstr "Opprett blogg"
msgid "Be very careful, any action taken here can't be reversed."
msgstr ""
msgid "Permanently delete this blog"
msgstr ""
#, fuzzy
msgid "New Blog"
msgstr "Ny blogg"
@@ -730,30 +778,21 @@ msgstr "Lag en ny blogg"
msgid "Create blog"
msgstr "Opprett blogg"
msgid "{}'s icon"
msgstr ""
msgid "New article"
msgstr "Ny artikkel"
#, fuzzy
msgid "There's one author on this blog: "
msgid_plural "There are {0} authors on this blog: "
msgstr[0] "Én forfatter av denne bloggen: "
msgstr[1] "{0} forfattere av denne bloggen: "
#, fuzzy
msgid "There's one article on this blog"
msgid_plural "There are {0} articles on this blog"
msgstr[0] "Én artikkel i denne bloggen"
msgstr[1] "{0} artikler i denne bloggen"
msgid "No posts to see here yet."
msgstr "Ingen innlegg å vise enda."
msgid "New article"
msgstr "Ny artikkel"
msgid "Be very careful, any action taken here can't be reversed."
msgstr ""
msgid "Permanently delete this blog"
msgstr ""
#, fuzzy
msgid "Articles tagged \"{0}\""
msgstr "Om {0}"
@@ -780,10 +819,6 @@ msgstr ""
msgid "Media upload"
msgstr ""
#, fuzzy
msgid "Description"
msgstr "Lang beskrivelse"
msgid "Useful for visually impaired people, as well as licensing information"
msgstr ""
@@ -812,6 +847,12 @@ msgstr ""
msgid "Use as avatar"
msgstr ""
#, fuzzy
#~ msgid "There's one article on this blog"
#~ msgid_plural "There are {0} articles on this blog"
#~ msgstr[0] "Én artikkel i denne bloggen"
#~ msgstr[1] "{0} artikler i denne bloggen"
#, fuzzy
#~ msgid "{0}'s followers"
#~ msgstr "Én følger"