Added description to a few files.
No it's not possible to go to the register or login screen if you are already logged in. Instead you just get redirected to the index-page.
Changed some values in the sprint backlog, logging worked time.
Renamed a relation from collections to posts since that's what it is.
Implemented a render_collection macro and uses it on in collection.html to display a collection.
render_collection_dense macro allows us to render a large amount of collections, such at in /collection/. We do not need to display all posts, just how many there are, and links to the collections.
Added markdown support. Will start using this for the user inputs.
Added some ugly borders around the render_post and render_collection_dense macros to allow me to see where they are.
Use the render_collection_dense macro to render the current_users collections.
Getting a problem with the removal of objects, somehow I'm working with 2 different sessions, so I will have to fix that ifrst.
Updated documentation.
Changed some imports which should improve the programming a bit.
Added a DeletePostForm, which probably will get renamed to DeleteForm, which only has a button. This allows us to delete things in the templates, such as posts and collections.
Changed the collection_has_post and category_has_moderator to have a composite primary_key. Hopefully this works as intended. This allows us to edit the posts and not just view them.
Added a BlogView that just returns CategoryView.get(self, 'blog'). This is so that I can have a development blog easily.
Importing func from sqlalchemy so that I can use the func.lower for categoryname. This should be changed so that categoryname is always lowercase, but I haven't done that yet. TODO.
The same in view_post, which has grown quite a bit. Will have to tackle that soon.
Added macros to render blog, collection and such. These should be renamed and fixed, but they work right now.
New blog template.
Small changes to the other templates.
Removed some warnings about comments in some files.
Updated Sprint Backlog.
changed the categoryname to use the lowercase version. This way we do not need to check it later, and the url will always use the lowercase anyway.
Added the categorytitle to the create_category template.
Adding categorytitle to the form.
add_moderator shell.
Changed some things, idk what.
Adding posts to collections is now possible, but I want to be able to do it some other way. Lets see how that owkrs out. At this moment it's not possible to remove the posts, but that should be solved some time.
Simplified the adding of posts to collections, which also should mean that it is easier to remove posts.
Decided to only use a single view for adding posts, which simplifies the logic and removes unnecessary code. Updating the postcount on a user so that every new post adds 1 to it.
Renamed groupid to collectionid, it was a remnant from when collections were called groups.
Updated some forms.
Checking to see if the user is in category.moderators or post.createdby so that they can remove the post.
Added another macro to render post_without the delete button, since we don't want that if you aren't allowed to remove it.
Changed some macros to compress the displayed data a bit.
Forms doesn't get commited?
Adding moderators should now be possible via the /c/<categoryname>/moderators/add route. Takes a username and adds it. TODO: Error checking
AddModeratorForm added.
Implemented the add moderator functionality.
Swapped out All moderators to a macro instead.
Added some stuff to the createanddrop so that there are some statues and some types.