Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

2539 commits

Auteur SHA1 Message Date
kilo
089d898b76 Update search.jet.html 2017-07-03 17:41:42 +02:00
kilo
ada9c3c8fb add flag search in search refiner 2017-07-03 17:17:34 +02:00
akuma06
c23a86413d Update listing.jet.html 2017-07-03 17:02:12 +02:00
8zIWLjcB
8469cdaa6a Add css sprite support for category images (for real this time) (#1095)
* add torrent sprite

* fix sprite

* Delete index.png

* add sprite support in css

* fix sprite css

* Update main.css

* Add files via upload

* Delete index2.png

* update css to reflect filename change
2017-07-03 16:57:47 +02:00
kilo
fcb4499fd0 make comma disappear at the end 2017-07-03 16:36:08 +02:00
kilo
6d5181a024 Update main.css 2017-07-03 16:32:30 +02:00
kilo
7f1069167a Update listing.jet.html 2017-07-03 16:29:15 +02:00
PantsuDev
a4f6ced19c Fix dates thanks tomleb 2017-07-03 15:10:21 +10:00
kilo
8915485c7d Update main.css (#1091) 2017-07-03 12:11:58 +10:00
PantsuDev
2204207dd9 fix rss 2017-07-03 11:41:45 +10:00
akuma06
d16871d91a Fix rss magnet link 2017-07-03 02:37:36 +02:00
akuma06
5feec8748b Profile edit page works now 2017-07-03 02:31:17 +02:00
akuma06
b2e00dce1f Removing debug message 2017-07-03 02:19:37 +02:00
akuma06
929bf0e71b Fixing profile_edit 2017-07-03 02:16:39 +02:00
akuma06
1ca1f364a0 Fixing log in 2017-07-03 02:03:57 +02:00
akuma06
d84c294c1b Binding requirements for gin 2017-07-03 01:47:31 +02:00
akuma06
f3a323d7b8 Fixing html flags rendering 2017-07-03 01:30:06 +02:00
akuma06
caa7e499f3 Final fix for nil pointer 2017-07-03 01:22:54 +02:00
akuma06
baccce78e2 Added some check on User variable
User is now a pointer, so doing User.xxx will make an error nil pointer dereference. So we have to check that User is not nil
2017-07-03 01:11:45 +02:00
akuma06
5794704961 Another fix for nil pointer 2017-07-03 01:04:14 +02:00
akuma06
a02976ef57 Fixed pointer dereference
Limiting number of languages to 1 in listing view
2017-07-03 00:59:59 +02:00
akuma06
b10d5e32b5 Merge branch 'refactor' into second-batch 2017-07-03 00:44:50 +02:00
akuma06
b11c02e54e Fixed templates with new functions 2017-07-03 00:34:18 +02:00
akuma06
5b92c69cb8 Updated dependencies
Removed govalidator
Added validator
2017-07-02 23:56:53 +02:00
akuma06
47e1fd2169 Removed errors, changing old functions to new ones 2017-07-02 23:53:23 +02:00
akuma06
7846d999ff No errors on api controllers 2017-07-02 18:00:12 +02:00
akuma06
97b3a1d7ea Remove common package
Common is no more a thing
Use of TorrentParam instead of SearchParam now
Common structs for search are exported in utils/search/structs
Util has been renamed utils
2017-07-02 16:54:55 +02:00
kilo
716ca543a4 remove old list 2017-07-01 23:25:44 +02:00
akuma06
188c196fd3 Removed some unused dependencies 2017-07-01 23:23:15 +02:00
akuma06
205daea027 Finally services are nearly empty 👍
Moved api services. All validations are now in validator util and all upload functions are in upload util
2017-07-01 23:09:35 +02:00
akuma06
1316062c9a Refactored user forms struct + tests 2017-07-01 19:44:36 +02:00
kilo
d1f5fe99e6 margin for flags in view.html 2017-07-01 14:15:38 +02:00
akuma06
b142ee75a4 The validator work
Tests are passed
2017-07-01 02:59:39 +02:00
kilo
2ecc6d7019 change width: 45% to max-width: 470px 2017-07-01 02:25:30 +02:00
kilo
8a3a7f9946 more css changes 2017-07-01 02:18:11 +02:00
akuma06
946f02d0fc Use of validator pkg now
Use of validator pkg replacing modelHelper.

ValidateForm adds translated errors in messages context. To know if we have errors, we have to call messages.HasErrors() after the validation check.

New translation strings for some field check. I didn't add every tag as an error since it seems we won't use them (isbn, ...). This would overload the translation files that are already big.
2017-07-01 01:25:11 +02:00
kilo
5c108eadd5 position improvements 2017-06-30 23:05:39 +02:00
kilo
7cb2d8d8a0 changes to make it into label HTML 2017-06-30 22:46:31 +02:00
kilo
789f97d26b change pictures to label (CSS) 2017-06-30 22:43:02 +02:00
kilo
6fd17a62f4 flag spacing (margin) 2017-06-30 22:00:52 +02:00
kilo
265613c837 fix class name & add form-input in class 2017-06-30 22:00:16 +02:00
kilo
b4529f6312 css changes 2017-06-30 21:59:41 +02:00
kilo
0953f753d4 html changes 2017-06-30 21:50:53 +02:00
kilo
fae254c404 <kilo> u want me to re-make the PR but on the refactor branch, right? (#1087)
* margin-top removal

* flag-other background: none

* torrent language on other - upload.htl

* torrent language edit.html

* torrent language admin edit
2017-06-29 22:16:21 +10:00
PantsuDev
ba1f48b08c Fix typo'd variable 2017-06-29 21:20:52 +10:00
PantsuDev
e139f5e4db Fix most compiler errors 2017-06-29 21:15:23 +10:00
akuma06
4c8306a6fc Too much file to save :') 2017-06-29 01:11:03 +02:00
akuma06
210bf84d13 Forgot to commitsave these files 2017-06-29 01:06:30 +02:00
akuma06
2646bc2db8 This is a prelimenary work
Showing how we can remove services, preventing cyclic imports and lessing the number of imports.
Now db is in models. Db and models are highly tightened, according to go standards, you should put them in the same package.
In models, there are folders separating the different methods used to modify the models. For example, if you want to create a user, you have to use /models (for the user struct) and /models/user (for creating a user.
However, if you want to delete a torrent, you just have to import /models and do torrent.Delete(definitely bool).

By the way packages in models are the plural name of a model. For example, you have torrent.go for a torrent model and its package torrents for db stuff related functions (Find, Create, Some helpers)
2017-06-29 00:44:07 +02:00
Myrmece
39e4b6df36 Updated translation. (#1082) 2017-06-28 21:44:37 +10:00