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
Las Zenow
3146c64166
Display the images rounded
2012-09-09 01:19:06 +02:00
Las Zenow
3194ede748
Add the lang=en to the html tag
2012-09-09 01:08:14 +02:00
Las Zenow
06f8e0efb0
Use description for book data
2012-09-06 01:41:11 +02:00
Las Zenow
f167d6a12f
Recalculate keywords after edit record
2012-09-04 00:05:46 +02:00
Las Zenow
ddbb5d946a
Add favicon
2012-09-03 13:52:48 +02:00
Las Zenow
3337ffaf82
Fix reader for new books
2012-09-02 23:32:17 +02:00
Las Zenow
de0fd4227c
Remove '/' from titles for use them on paths
2012-09-02 23:07:21 +02:00
Las Zenow
f72f06c9a3
Don't display scroll bar
2012-09-02 17:05:20 +02:00
Las Zenow
7449fbd877
Resize properly the iframe
2012-09-02 15:40:43 +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
e7adec0988
go fmt code
2012-08-31 00:24:42 +02:00