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
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