Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add view to list all users | Harald Eilertsen | 2018-07-31 | 2 | -11/+25 |
| | |||||
* | Move methods to get display values into user model. | Harald Eilertsen | 2018-07-31 | 1 | -9/+27 |
| | |||||
* | Move routing details into controllers. | Harald Eilertsen | 2018-07-31 | 5 | -25/+39 |
| | |||||
* | Add simple unfinished login controller. | Harald Eilertsen | 2018-01-20 | 4 | -1/+51 |
| | | | | | It will not actually log you in yet, but will check email/password and report back if it is good or not. More tbd. | ||||
* | Add markdown support for posts using comrak. | Harald Eilertsen | 2018-01-20 | 2 | -0/+8 |
| | |||||
* | Refactor index template. | Harald Eilertsen | 2018-01-20 | 2 | -4/+7 |
| | | | | | Use a vector of show post templates instead of manually decoding posts in the index view. | ||||
* | Implement new/create user logic. | Harald Eilertsen | 2018-01-19 | 3 | -1/+47 |
| | |||||
* | Fix user model, and include in build. | Harald Eilertsen | 2018-01-19 | 2 | -4/+10 |
| | |||||
* | Begin implementing user model. | Harald Eilertsen | 2018-01-18 | 1 | -0/+36 |
| | |||||
* | Add users table to schema. | Harald Eilertsen | 2018-01-18 | 1 | -0/+15 |
| | |||||
* | Upgrade to Diesel 1.1 and r2d2 0.8.2. | Harald Eilertsen | 2018-01-18 | 3 | -8/+7 |
| | | | | Also drop the now obsolete diesel_codegen crate. | ||||
* | Be explicit about the schema instead of infering it. | Harald Eilertsen | 2018-01-18 | 1 | -1/+8 |
| | | | | | We don't want to depend on having a correctly set up database just to be able to build the program. | ||||
* | Add flash messages when adding/editing/deleting posts. | Harald Eilertsen | 2018-01-14 | 3 | -8/+13 |
| | |||||
* | Serve static files from public directory if no other route match. | Harald Eilertsen | 2018-01-14 | 2 | -1/+12 |
| | |||||
* | Improve error message with missing database url. | Harald Eilertsen | 2018-01-14 | 1 | -22/+20 |
| | |||||
* | Split out layout from templates. | Harald Eilertsen | 2018-01-14 | 3 | -15/+39 |
| | |||||
* | Implement deleting posts. | Harald Eilertsen | 2018-01-12 | 3 | -1/+15 |
| | |||||
* | Read .env file in main. | Harald Eilertsen | 2018-01-11 | 2 | -9/+9 |
| | |||||
* | Move homepage processing to separate controller. | Harald Eilertsen | 2018-01-11 | 3 | -22/+27 |
| | |||||
* | Move controller code to own module. | Harald Eilertsen | 2018-01-11 | 3 | -2/+10 |
| | |||||
* | Drop the lib. | Harald Eilertsen | 2018-01-11 | 4 | -34/+26 |
| | | | | | | The misc stuff from the lib root was moved to the utils module (terrible name, it's meant to be temporary.) The modules under the lib has been moved directly under the app. | ||||
* | Implement actually updating database. | Harald Eilertsen | 2018-01-10 | 1 | -10/+14 |
| | |||||
* | Make proper module of models | Harald Eilertsen | 2018-01-10 | 2 | -4/+7 |
| | |||||
* | Adding edit/update logic. | Harald Eilertsen | 2018-01-10 | 3 | -4/+31 |
| | | | | The model is not done yet, though. No net on the train. | ||||
* | Order and cosmetics on extern crate declarations. | Harald Eilertsen | 2017-12-30 | 2 | -12/+10 |
| | |||||
* | Move creating post in db to Post model impl. | Harald Eilertsen | 2017-12-23 | 3 | -16/+19 |
| | |||||
* | Implement posts/show handler. | Harald Eilertsen | 2017-12-23 | 3 | -1/+21 |
| | |||||
* | Don't import modules in macro. | Harald Eilertsen | 2017-12-23 | 1 | -10/+5 |
| | | | | | Didn't work well when macro was invoked more than once for each source file. Use full references to all symbols instead. | ||||
* | Move get_post into impl and rename. | Harald Eilertsen | 2017-12-23 | 2 | -8/+10 |
| | |||||
* | Move get_posts function to models. | Harald Eilertsen | 2017-12-23 | 2 | -11/+11 |
| | |||||
* | Move implement_responder_for macro into crate. | Harald Eilertsen | 2017-12-23 | 3 | -25/+28 |
| | | | | | This is so we can use it in other modules too. Besides it makes things slightly cleaner. | ||||
* | Move posts module to it's own source file. | Harald Eilertsen | 2017-12-17 | 2 | -30/+29 |
| | |||||
* | Move responder impl's for templates to a macro. | Harald Eilertsen | 2017-11-22 | 1 | -15/+19 |
| | |||||
* | Add handlers for creating new Posts. | Harald Eilertsen | 2017-11-22 | 2 | -1/+51 |
| | |||||
* | Derive FromForm for models::Post. | Harald Eilertsen | 2017-11-21 | 2 | -1/+4 |
| | | | | | This allows us to pass in forms that will translate into proper form objects. | ||||
* | Implement default trait for Posts using derive. | Harald Eilertsen | 2017-11-21 | 1 | -1/+1 |
| | |||||
* | Use route decorators to produce different output formats. | Harald Eilertsen | 2017-11-20 | 1 | -22/+21 |
| | | | | | | This seems to be the more proper way of doing it. Also makes it much clearer which routes exists, and what formats they accept. Both in the code and in the status output. | ||||
* | Use serde_json to create json response when requested by client. | Harald Eilertsen | 2017-11-20 | 3 | -8/+22 |
| | |||||
* | Implement responder for IndexTemplate. | Harald Eilertsen | 2017-11-17 | 1 | -3/+15 |
| | | | | | | | This means the actual handler just returns the template, which is then rendered by the responder for that type. Looking into making this generic so the responder can return data in other formats as well, like json or xml. | ||||
* | Set correct content-type for response. | Harald Eilertsen | 2017-11-16 | 1 | -2/+3 |
| | |||||
* | Pass posts to the template and iterate over them. | Harald Eilertsen | 2017-11-16 | 1 | -6/+2 |
| | |||||
* | Add Bart templating engine. | Harald Eilertsen | 2017-11-16 | 1 | -10/+15 |
| | |||||
* | Add schema for posts, and display them on index page. | Harald Eilertsen | 2017-10-01 | 4 | -4/+32 |
| | |||||
* | Get database connection on request | Harald Eilertsen | 2017-10-01 | 2 | -1/+34 |
| | |||||
* | Move database setup to lib.rs. | Harald Eilertsen | 2017-10-01 | 2 | -28/+29 |
| | |||||
* | Connect to database pool when igniting. | Harald Eilertsen | 2017-10-01 | 1 | -1/+29 |
| | |||||
* | Initial launch! | Harald Eilertsen | 2017-10-01 | 1 | -0/+15 |