0
0
Fork 0
Commit Graph

162 Commits

Author SHA1 Message Date
Gibheer f3be398c18 add first draft for session handling 2015-01-12 21:09:07 +01:00
Gibheer 0563f1f3e0 remove session handling from main 2015-01-12 21:08:55 +01:00
Gibheer 1d6b22606a mark which functions are supposed to have pages 2015-01-10 13:02:29 +01:00
Gibheer ea99d621bd use two routers instead of one
This change splits the areas up a bit and makes it easier to, maybe,
make two applications out of it.
2015-01-08 21:33:56 +01:00
Gibheer 574b05887a rename files to present easier 2014-12-22 19:35:33 +01:00
Gibheer d3bfe13eba add point to handle sessions in the admin panel 2014-12-18 21:37:53 +01:00
Gibheer 0980b8d0a6 add initial route support for admin panel 2014-12-16 23:43:49 +01:00
Gibheer e6a50c238c add route for a specific blog post 2014-12-16 23:43:30 +01:00
Gibheer c6cd31b2fd add database support 2014-12-14 09:42:25 +01:00
Gibheer e8fcff2cbb better version of the base system
This is a complete redesign of the blog system. This time, we just make
it as simple as possible without layer on layer of abstraction.
2014-12-14 08:08:03 +01:00
Gibheer fce1df3f21 further extension of the system
It is now possible to use the database. The authentication middleware is
the first module to use it. We will see, how it will work out.
2014-08-13 22:45:38 +02:00
Gibheer 0ce5d76e07 add template path from config file 2014-08-09 00:19:45 +02:00
Gibheer e909aea534 add template system to environment 2014-08-09 00:15:25 +02:00
Gibheer bbe90853bc add example config file 2014-08-07 22:33:53 +02:00
Gibheer 972d2e1412 add settings and environment
This commit adds the environment to the stack so that the db connection
can be used by easily without using a global. It also prepares for using
the template system.
2014-08-07 22:30:26 +02:00
Gibheer 5fdfdbf5e1 use middlewares of parents
This adds all middlewares from all parents. This should make it easier
to group endpoints to middlewares.
2014-08-03 10:25:59 +02:00
Gibheer 4c6d6f3976 use append instead of something own built 2014-08-03 09:22:31 +02:00
Gibheer 019ca58e63 add a basic group mechanism
This adds a basic group mechanism to run a bunch of middlewares for the
same path.
2014-08-01 22:41:17 +02:00
Gibheer 53732c24e5 cleanup of addRoute 2014-08-01 08:48:14 +02:00
Gibheer ce036f428d add basic middleware handling
This is an initial spike on how the middleware might be included into
the system. It is inspired/copied from GIN, so I still have to work out,
how to make it nicer than it is at the moment.

What is currently missing is Aborting and the addRoute function looks
very ugly.
2014-08-01 07:58:33 +02:00
Gibheer 7a5cbc3c7a initial commit for routing 2014-07-22 21:27:39 +02:00
Gibheer 2bea1df808 prepare for rebuilding
This is in preparation of remodeling the blog in go.
2014-07-22 20:25:11 +02:00
Gibheer 5570b0b568 don't add query parameters 2014-02-18 23:36:07 +01:00
Gibheer 28dea5e4ec add hgignore to make life easier 2014-02-18 22:16:25 +01:00
Gibheer 1b02e01cf3 update Gemfile to remove rbx specific gems 2014-02-18 22:15:57 +01:00
Gibheer 45ce571448 fix pagination
This fixes the pagination not working at all. After the refactoring the
modification of the SQL query was lost which resulted in pagination not working.
2014-02-18 22:11:30 +01:00
Gibheer dbf63f3451 remove markers from code and quote
These were nice, but didn't work as good as imagined. Best is to leave them out
for the moment.
2014-02-18 21:20:51 +01:00
Gibheer be2ecb0945 add template for RouteNotFound 2014-02-13 22:42:24 +01:00
Gibheer 256b4da778 convert the RouteNotFound route to a controller
This way RouteNotFound can use the renderer to display a more helpful
message in the design of the rest of the page.
2014-02-13 22:41:09 +01:00
Gibheer ea72da5259 rework post controller
To handle errors correctly the post controller needed some rework. Now
instead of single functions running all around the place, there is one
function collecting the data needed and raising errors when needed.

For that to work, the controller class can now return more classes to
keep the chain going. Unless a class is returned, it will call the
renderer.
2014-02-13 22:38:42 +01:00
Gibheer db30448a8e do not jump out when nothing was found 2014-02-11 23:12:59 +01:00
Gibheer 60cdaf7453 update dependencies 2014-02-11 23:10:53 +01:00
Gibheer c4eb4e3363 assign the posts only at one point
This makes it easier to find out, if posts have been found at all. The
next step is to use that information and show a hint when nothing was
found.
2014-02-11 23:09:34 +01:00
Gibheer 3cac0daa68 add initial migration file and further adjustments
The 01_setup.rb contains the old table structure to make it possible to
migrate to the new system.
02_move_to_new on the other hand adjusts the old schema to the new
format and adds the full text function.

With that, the new schema is ready and the completion of the full text
search can continue.
2014-02-03 23:43:46 +01:00
Gibheer ee464a5c15 load render 2014-01-23 22:00:11 +01:00
Gibheer 11ac9461c2 add new helper and implement search
This adds fulltext search for blog posts. Together with the render
object this creates a new possibility to extend the blog.
2014-01-23 21:59:24 +01:00
Gibheer 4ba39351ea added symbol for code tags 2014-01-17 22:29:27 +01:00
Gibheer 297e29a3c8 add quotation mark to blockquotes
This adds a nice little hint, that a blockquote holds a quote.
2014-01-17 22:04:45 +01:00
Gibheer 4350171042 add style to blockquote
Noe the blockquotes look similar to the code tags, but instead of
switching to a monospace font, we use italics to mark it as a quote.
2014-01-16 21:52:11 +01:00
Gibheer dded05bb52 order by id when the timestamp is equal
This can happen when multiple blog posts get inserted at once, so we
should order by id too.
2014-01-16 09:00:18 +01:00
Gibheer f05763ae18 ignore a written config
We don't want a wild config committet.
2014-01-09 19:55:51 +01:00
Gibheer 390c02c011 change the example line to use postgres only 2014-01-02 21:42:10 +01:00
Gibheer 810a16eea8 use / for the index page in the logo 2014-01-02 21:41:28 +01:00
Gibheer 6aa8f1c2a2 new next and previous buttons
When selecting only one post buttons to select the previous and next
blog posts are added. These can then be used to read one blog post per
page.
2014-01-02 21:38:21 +01:00
Gibheer dac1a7ec28 replace do_postgres with pg for better timestamps
do_postgres is using DateTime to fetch timestamps which results in
loosing the milliseconds. But we need the exact timestamp to fetch the
previous and next posts.
2014-01-02 21:36:10 +01:00
Gibheer 7b9576216c don't wrap lines in code and pre elements 2013-12-03 21:45:12 +01:00
Gibheer ada397900f add utf-8 meta header 2013-11-14 16:57:48 +01:00
Gibheer 33c5439cd2 render the html in the atom feed 2013-11-08 19:55:17 +01:00
Gibheer 7ca8100d23 mark headers in section
This commit makes the headers in a section a bit smaller and underlines
them over 75% over the article width, which gives them a nicer look.
2013-11-08 19:53:44 +01:00
Gibheer bcb992b231 adjust the pagination design and header 2013-11-04 20:19:39 +01:00