Las Zenow
bbbd35e928
Use seelog instead of the default log pkg
2014-02-11 11:20:38 +01:00
Las Zenow
41b376992a
Database stops being a global variable
...
With it now every handler creates it's own copy of the session.
2013-09-23 16:27:31 +02:00
Las Zenow
cfdd4817e2
Add user roles
2013-06-01 20:54:39 +02:00
Las Zenow
e72fd6e4d4
Pass the session to the 404 page
2013-06-01 20:51:21 +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
206775fa6a
Store statistics on mongodb
2013-04-22 23:28:00 +02:00
Las Zenow
402dbabdbd
Use gorilla/mux patterns
2013-04-15 00:59:19 +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
0190a83253
go fmt
2012-12-05 15:23:49 +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
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
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
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
15bebb7677
Add settings page to allow users to change their password
2012-10-28 18:47:44 +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
2f2908e4fe
A file name must not contain '#'
2012-10-25 01:08:05 +02:00
Las Zenow
11d24f2f20
go fmt
2012-09-14 00:34:13 +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
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
f167d6a12f
Recalculate keywords after edit record
2012-09-04 00:05:46 +02:00
Las Zenow
de0fd4227c
Remove '/' from titles for use them on paths
2012-09-02 23:07:21 +02:00
Las Zenow
efbd3b3c09
Send the epub moderating files
2012-08-25 16:41:54 +02:00
Las Zenow
7a3f47bb97
Store books preserving the _id
2012-08-25 16:22:56 +02:00
Las Zenow
4351d9ec84
Redirect properly after edit
2012-08-23 10:57:23 +02:00
Las Zenow
e5d96ef7b7
Move constants to a config file
2012-08-22 19:48:02 +02:00
Las Zenow
1d49e6b791
Remove covers only if exist
2012-08-22 10:42:38 +02:00
Las Zenow
5d19d3c72f
Optimice the partial queries
2012-08-21 11:25:02 +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
Las Zenow
c513344169
Sessions with gorilla
2012-08-18 02:06:43 +02:00