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

6 commits

Auteur SHA1 Message Date
akuma06
9739610311 Separated Routes and handler from Main
Everything is in the router folder in different file
2017-05-05 16:39:15 +02:00
akuma06
9586f1e731 Rearranged Files
Configurations are separated in files in the folder config
Connection to database by a package to import when needed
Models will be in a model package for better maintenance
Services access to the models
Utils are tools or functions that can be used anywhere
main.go cleaned a bit and other files modifications are there for the above modifications
2017-05-05 14:20:51 +02:00
akuma06
9556ea5ae2 Default Values for Search form
Added a new Variable SearchForm as an argument to replace the list of arguments (cat,order,status,sort,query)
Added a construction function for it so we can have default values (NewSearchForm() output a SearchForm{} with default values)
Fixed the view template so we show one torrent and not a list
Added a ViewTemplateVariables for the page
2017-05-05 10:52:08 +02:00
Eliot Whalan
6adce8eda9 Run go fmt and add swap files to gitignore 2017-05-05 14:07:45 +10:00
akuma06
6f00348cbc Merge branch 'master' of https://github.com/ewhal/nyaa.git
Conflicts:
	main.go
	models.go
	templates/index.html
Saw that some previous modifications were lost due to the previous merge :)
2017-05-05 05:04:04 +02:00
akuma06
634f48a748 Big Update !
Design copied from NyaaTorrents
Reorganised some sql queries
Added dynamic navigation within torrents
Added nesting templates support
Added more variables/functions imported in the templates
Separated templates functions and variables in other files for more clarity
2017-05-05 03:53:38 +02:00