Commit graph

45 commits

Author SHA1 Message Date
Las Zenow
a574a38ccc Cache the tags on the database 2013-03-20 00:54:40 +01:00
Las Zenow
5abab5f5dd Add logs 2012-10-29 21:53:04 +01:00
Las Zenow
ba13a69f4a Use http.StatusFound so the forms don't get redirected 2012-10-29 21:52:02 +01:00
Las Zenow
857dc5f57c Use http.StatusTemporaryRedirect instead of hardcoded 307 2012-10-29 21:43:55 +01:00
Las Zenow
038cac6a62 The /books/ handler now use the BOOKS_PATH constant 2012-10-29 20:59:41 +01:00
Las Zenow
34b48f411c Use config paths to serve files 2012-10-28 19:21:42 +01:00
Las Zenow
15bebb7677 Add settings page to allow users to change their password 2012-10-28 18:47:44 +01:00
Las Zenow
53150466a6 go fmt 2012-10-26 13:44:08 +02:00
Las Zenow
cd9b518284 Displaying most viewed and downloaded books on the front page 2012-10-24 23:22:39 +02:00
Las Zenow
b96215b7ff Generate stats from visits and downloads 2012-09-13 01:03:07 +02:00
Las Zenow
840fd3ed47 New database squema
The collection new is removed, now the books have a field "active" set to true
if the book was aproved.

For update the database:
db.books.update({}, {$set: {active: true}}, true, true)
2012-09-12 00:19:19 +02:00
Las Zenow
a9749e7136 Display the number of results on new page 2012-09-09 22:42:03 +02:00
Las Zenow
7a35b283b5 Don't need ':' for port configuration 2012-08-31 01:00:08 +02:00
Las Zenow
fbed1ab5ab Panic if the http server fails 2012-08-31 00:36:41 +02:00
Las Zenow
90d401e98e Make the port configurable 2012-08-31 00:35:39 +02:00
Las Zenow
ade035eb00 Create new, cover and books if don't exists 2012-08-31 00:32:00 +02:00
Las Zenow
45b2d47bd5 Using iframes for reading books 2012-08-30 20:49:58 +02:00
Las Zenow
ea906a7681 Search was not scrolling fine 2012-08-24 20:18:16 +02:00
Las Zenow
e5d96ef7b7 Move constants to a config file 2012-08-22 19:48:02 +02:00
Las Zenow
88b4809e99 Use Ids for address no titles 2012-08-21 21:22:56 +02:00
Las Zenow
5d9093700d Read books on moderation 2012-08-21 20:54:57 +02:00
Las Zenow
93003534e9 Simple epub reader 2012-08-21 18:15:21 +02:00
Las Zenow
921cea3efb Reorganize code for the taglist 2012-08-21 11:35:06 +02:00
Las Zenow
5d19d3c72f Optimice the partial queries 2012-08-21 11:25:02 +02:00
Las Zenow
8401826db0 Active about on nav bar 2012-08-21 10:57:54 +02:00
Las Zenow
02be9d35b5 Fix the length of the array of tags 2012-08-20 17:28:53 +02:00
Las Zenow
0783521019 Display only 50 tags 2012-08-20 17:25:07 +02:00
Las Zenow
e365103370 Add tags to front page 2012-08-20 17:19:27 +02:00
Las Zenow
ff6d44d821 Moderate incoming epubs 2012-08-20 14:25:18 +02:00
Las Zenow
a0d4acdf89 Added edit page to books 2012-08-19 15:58:37 +02:00
Las Zenow
e68f41445e Add notifications 2012-08-19 02:29:34 +02:00
Las Zenow
c513344169 Sessions with gorilla 2012-08-18 02:06:43 +02:00
Las Zenow
c13899c757 Basic bootstrap design 2012-08-17 08:25:44 +02:00
Las Zenow
106fd5bfaf Regenerate front page in each call 2012-08-15 20:16:13 +02:00
Las Zenow
9f1204db35 Run go fmt 2012-08-15 15:12:59 +02:00
Las Zenow
52812c706b Last books added on index.html 2012-08-15 14:26:10 +02:00
Las Zenow
3db6231762 Use clousures for the http handlers 2012-08-15 13:58:16 +02:00
Las Zenow
f1eab1bebc Add about page 2012-08-15 13:17:27 +02:00
Las Zenow
18454021c3 Restructure templates to use includes 2012-08-15 12:00:44 +02:00
Las Zenow
8e4a37b558 Organize code: move template stuff to it's own file 2012-08-15 11:51:25 +02:00
Las Zenow
b9e39cf57f Upload documents 2012-08-15 11:40:19 +02:00
Las Zenow
3be0a28eb8 Use http.FileServer to serve files 2012-08-15 11:31:05 +02:00
Las Zenow
10db9dae34 Add num of books to front page 2012-08-01 12:11:06 +02:00
Las Zenow
614ce0309a Download books 2012-07-31 00:42:02 +02:00
Las Zenow
c64226ffb9 Basic search and display working 2012-07-30 23:23:38 +02:00