Plume/plume-models/src
Baptiste Gelez bdfad844d7
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
2019-03-22 19:51:36 +01:00
..
search Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
admin.rs Add unit tests for main model parts (#310) 2018-11-24 12:44:17 +01:00
api_tokens.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
apps.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
blog_authors.rs Avoid panics (#392) 2018-12-29 09:36:07 +01:00
blogs.rs Edit blogs, and add blog icons and banners (#460) 2019-03-22 19:51:36 +01:00
comment_seers.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
comments.rs Edit blogs, and add blog icons and banners (#460) 2019-03-22 19:51:36 +01:00
config.rs Edit blogs, and add blog icons and banners (#460) 2019-03-22 19:51:36 +01:00
db_conn.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
follows.rs Edit blogs, and add blog icons and banners (#460) 2019-03-22 19:51:36 +01:00
headers.rs Add unit tests for main model parts (#310) 2018-11-24 12:44:17 +01:00
instance.rs Edit blogs, and add blog icons and banners (#460) 2019-03-22 19:51:36 +01:00
lib.rs Edit blogs, and add blog icons and banners (#460) 2019-03-22 19:51:36 +01:00
likes.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
medias.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
mentions.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
notifications.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
post_authors.rs Avoid panics (#392) 2018-12-29 09:36:07 +01:00
posts.rs Edit blogs, and add blog icons and banners (#460) 2019-03-22 19:51:36 +01:00
reshares.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
safe_string.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
schema.rs Edit blogs, and add blog icons and banners (#460) 2019-03-22 19:51:36 +01:00
tags.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
users.rs Edit blogs, and add blog icons and banners (#460) 2019-03-22 19:51:36 +01:00