Commit graph

64 commits

Author SHA1 Message Date
Las Zenow
cb856b002f Merge branch 'master' into stats 2013-05-31 01:12:23 +02:00
Las Zenow
424a0fad8e Allow multiline descriptions 2013-05-31 00:34:11 +02:00
Las Zenow
68254d359c Merge branch 'master' into stats 2013-05-28 01:44:56 +02:00
Las Zenow
41258ee863 Check if the ObjectIds are valid. 2013-05-09 09:42:58 +02:00
Las Zenow
d0f6b83423 Add a 404 page 2013-05-09 09:42:03 +02:00
Las Zenow
0c0fc5d797 Simple stats page 2013-05-05 01:39:28 +02:00
Las Zenow
137357cd12 Upload files on a separate goroutine 2013-05-03 00:43:26 +02:00
Las Zenow
206775fa6a Store statistics on mongodb 2013-04-22 23:28:00 +02:00
Las Zenow
c4373c8773 Separate router initialization into it's own function 2013-04-16 13:39:22 +02:00
Las Zenow
58447a19cb Split the reader handlers 2013-04-16 03:28:38 +02:00
Las Zenow
d8bfcb2ef2 Split post and get handlers for upload 2013-04-16 02:34:15 +02:00
Las Zenow
5d2f72c229 Search pattern was boggus 2013-04-15 23:53:10 +02:00
Las Zenow
fb9376ab43 The download path now is '/download/id/epub' 2013-04-15 22:29:57 +02:00
Las Zenow
986f834f46 Put the covers on the database 2013-04-15 22:10:48 +02:00
Las Zenow
402dbabdbd Use gorilla/mux patterns 2013-04-15 00:59:19 +02:00
Las Zenow
3a99f86f32 Use gorilla/mux 2013-04-15 00:37:49 +02:00
Las Zenow
98d5074eff error variable don't need to be defined 2013-04-13 21:46:40 +02:00
Las Zenow
49f824802b Remove dependencies from new/ foder 2013-04-12 01:44:00 +02:00
Las Zenow
05b641201c Store files on GridFS 2013-04-12 01:05:40 +02:00
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