Commit graph

168 commits

Author SHA1 Message Date
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
6971028b9e Fix OpenBook from GridFS 2013-04-12 01:43:23 +02:00
Las Zenow
f075f666ad Merge branch 'epub' into gridfs 2013-04-12 01:08:26 +02:00
Las Zenow
a38d530323 Remove libepub as dependency 2013-04-12 01:07:40 +02:00
Las Zenow
05b641201c Store files on GridFS 2013-04-12 01:05:40 +02:00
Las Zenow
64375b6de5 Store the ISBN 2013-04-08 01:41:46 +02:00
Las Zenow
d994d6b91f Using epubgo to handle epubs 2013-04-01 14:05:04 +02:00
Las Zenow
d46c3b72b6 Fix format 2013-04-01 14:04:43 +02:00
Las Zenow
cf773da9db Use image API for resize images
Some jpeg images won't load correctly with it until Go 1.1
2013-03-20 21:25:53 +01:00
Las Zenow
35fd980692 Merge branch 'master' into gridfs
Conflicts:
	database.go
2013-03-20 00:57:59 +01:00
Las Zenow
a574a38ccc Cache the tags on the database 2013-03-20 00:54:40 +01:00
Las Zenow
c306e00867 Use intermediate variables 2013-03-19 20:29:26 +01:00
Las Zenow
d1edf9e222 Add the tools folder 2013-03-19 20:27:52 +01:00
Las Zenow
5aff86e83f Use intermediate variables 2013-03-18 00:52:51 +01:00
Las Zenow
2797ba97f1 Use the tags of the active books only 2013-03-08 16:17:38 +01:00
Las Zenow
66a4a2de4c Don't hardcode paths 2013-03-03 02:39:25 +01:00
Las Zenow
15614a147c Display 20 results on search page 2013-03-03 02:13:48 +01:00
Las Zenow
6dd51c2fbc Make the navbar black 2012-12-18 16:02:33 +01:00
Las Zenow
22631be152 Use webfonts 2012-12-18 15:55:30 +01:00
Las Zenow
53191356b5 Change the background to bright_squares 2012-12-18 15:36:54 +01:00
Las Zenow
8f7192e68d Add copyright information to the README 2012-12-17 22:06:21 +01:00
Las Zenow
adea6aba51 Add a pattern for the background 2012-12-17 21:57:44 +01:00
Las Zenow
b890d46e36 Move the custom css to it's own css file 2012-12-17 21:57:08 +01:00
Las Zenow
2e092f0c99 Update bootstrap to version 2.2.2 2012-12-17 21:12:16 +01:00
Las Zenow
0190a83253 go fmt 2012-12-05 15:23:49 +01:00
Las Zenow
c3f7068bfc Gorilla has moved to github 2012-12-04 23:40:46 +01:00
Las Zenow
d98a5974c1 Display 50 items on "new" page 2012-11-20 01:25:36 +01:00
Las Zenow
ef2802f0e9 NEW_BOOKS_COLL is not use anymore 2012-11-11 17:38:00 +01:00
Las Zenow
436e8de1f2 Fix the pagination on moderation 2012-10-31 10:37:21 +01:00
Las Zenow
bbe10b76ff Add pagination on moderation page 2012-10-31 10:24:17 +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
4805d926f0 Log in case of errors on store 2012-10-29 20:14:45 +01:00
Las Zenow
19068d048d go fmt 2012-10-29 19:18:57 +01:00
Las Zenow
32077534c7 Reorganize notifications
(but still don't work properly)
2012-10-29 19:17:38 +01:00
Las Zenow
54f4ebcbf9 Create folders only if they are necessary 2012-10-29 19:17:10 +01:00
Las Zenow
6af9db50a4 Handle utf characters properly
If the title of the book start with a non-ascii character create the folder with the first character properly.
2012-10-28 23:19:22 +01:00
Las Zenow
93bd567f8d Change the paths stored on the database
The paths in the database now are relative of the config BOOKS_PATH and COVER_PATH

For updating the database this query should be use:
for (var i = db.books.find(); i.hasNext(); ) {
        var book = i.next();
        db.books.update({_id: book["_id"]}, {$set: {path: book["path"].slice(6), cover: book["cover"].slice(7), coversmall: book["coversmall"].slice(7)}});
}
2012-10-28 20:21:46 +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
d8815c002a Use user icon for loggin 2012-10-28 17:49:31 +01:00
Las Zenow
1f6fb8565b Refactoring admin/delete code 2012-10-28 17:27:01 +01:00
Las Zenow
2e043af31a Refactor the admin/store code 2012-10-28 17:22:23 +01:00
Las Zenow
85111946ed Refactoring code
Take all the storing stuff out of upload file
2012-10-28 17:04:38 +01:00
Las Zenow
9c28f8926f Fixing bad english 2012-10-26 13:53:11 +02:00