Commit graph

148 commits

Author SHA1 Message Date
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
Las Zenow
53150466a6 go fmt 2012-10-26 13:44:08 +02:00
Las Zenow
a262b66dda Fix a typographic error 2012-10-26 00:41:58 +02:00
Las Zenow
2f2908e4fe A file name must not contain '#' 2012-10-25 01:08:05 +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
d87351d946 Clean up the code 2012-10-24 22:36:20 +02:00
Las Zenow
68e999777a Convert templates to global
The templates will be parsed only on startup
2012-10-24 21:08:34 +02:00
Ál Cano Santana
689be55708 Adding README 2012-10-13 01:33:32 +02:00
Las Zenow
11d24f2f20 go fmt 2012-09-14 00:34:13 +02:00
Las Zenow
b96215b7ff Generate stats from visits and downloads 2012-09-13 01:03:07 +02:00
Las Zenow
f3882881ce Store or remove all the books at once 2012-09-13 00:05:21 +02:00
Las Zenow
de89cbc931 Do the redirections properly 2012-09-12 21:47:43 +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
61d301df5b Display the thumbnails properly on the front page 2012-09-09 13:54:51 +02:00
Las Zenow
12e3edc2d0 Don't use pre, is ugly 2012-09-09 13:19:48 +02:00
Las Zenow
4fdfbc6537 Use pre for book description 2012-09-09 13:16:51 +02:00
Las Zenow
75bb911aaa The iframe should be as big as the book menu, so the covers are well align 2012-09-09 12:42:22 +02:00
Las Zenow
3d69ce8e03 Remove '?' from filenames 2012-09-09 03:18:47 +02:00
Las Zenow
4b30b5c091 If the file exists didn't work 2012-09-09 03:16:43 +02:00
Las Zenow
e7934c0483 Display the lang and editorial on search 2012-09-09 01:26:23 +02:00