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

26 commits

Auteur SHA1 Message Date
PantsuDev 994ea62eab
fix typos 2017-06-07 11:14:57 +10:00
akuma06 752544a52c New User status (#957)
Status for scrapped user
They can't log in and an explicit error message is shown when they try
explaining that they need to contact the moderators
They are displayed as simple members on the front-end however
2017-06-07 10:59:46 +10:00
kipukun 7a9c4cd13e Misc. changes to profile edit and notifications page 2017-06-05 14:21:20 -04:00
kipukun c4511f7238 Style error texts on form inputs, everywhere (#877) 2017-06-02 12:50:56 +10:00
akuma06 3ec367a759 CSRF Support + better key for context
* Added new dep: gorilla/csrf
* CSRF field in forms
* CSRF variable in commontemplatevariables
* New key for messages and user context

Please change EnableSecureCSRF to false when testing locally and don't
merge config/env.go with the changes
2017-05-29 17:07:18 +02:00
akuma06 c570557477 Added Theme field in user settings 2017-05-29 15:15:04 +02:00
kipukun 7007755166 Make account settings not look like dogshit 2017-05-27 18:18:45 -04:00
kipukun 74c6e0d6b3 slightly tweak profile edit page 2017-05-26 16:02:32 -04:00
akuma06 80ab45d81e New profile user menu (#761)
* Fixing user profile page

* Modified css rule word-break to break-word
* Modified torrents table in user page to look like home listing
* Made the button reset api look like a button according to actual
design
* Modified user menu to have the same spacing accross templates
* User menu is in another template file loaded dynamically

* Fixing the access to userprofile variable

* Menu needs to access the user profile with $.UserProfile
* User Notification template variable removed, instead using user
profile variable

* Reverting back theme flickering fix
2017-05-26 14:33:55 +02:00
akuma06 6481e90a0c Golint friendly next (#756)
* Gofmt friendly

Keeping Go source code in line with what they preconize

* Golint Friendly Next

So I have made some variables unexported
Added comments in every function that I know what it does
Removed some deprecated stuff that I was sure of
Added a comment on possible deprecated methods "Is it deprecated?"
Changed some variable/method name according to golint recommendations

* Update filelist.go
2017-05-26 12:12:52 +02:00
akuma06 0b8a39c506 Fix error on user profile edit
* Missing ">" in a close tag
* Changing route name for apireset doing a conflict route on badgemenu
2017-05-25 18:54:34 +02:00
Eliot Whalan bc3f1aa577
start work on api reset stuff 2017-05-25 12:18:31 +10:00
kipukun e9825a2683 Frontend rewrite (DONE) (#723)
* Remove Bootstrap and Jquery, and create basic nav

* More improvements to navbar, as well as work on _badgemenu

* Complete navbar HTML, obviously it still looks horrendous

* Change layout on torrent table, using grids.

* Remove Bootstrap and Jquery, and create basic nav

* More improvements to navbar, as well as work on _badgemenu

* Complete navbar HTML, obviously it still looks horrendous

* Change layout on torrent table, using grids.

* HOLY FUCK INDEX IS /DONE/

* DO UPLOAD PAGE, DELETE OLD SHITTY CSS

* Complete login page

* Remove Bootstrap and Jquery, and create basic nav

* More improvements to navbar, as well as work on _badgemenu

* Complete navbar HTML, obviously it still looks horrendous

* Change layout on torrent table, using grids.

* Remove Bootstrap and Jquery, and create basic nav

* More improvements to navbar, as well as work on _badgemenu

* Complete navbar HTML, obviously it still looks horrendous

* HOLY FUCK INDEX IS /DONE/

* DO UPLOAD PAGE, DELETE OLD SHITTY CSS

* Complete login page

* Begin work on profile page

* fucking git, man

* Damn, that looks sexy

* Complete login and register pages, include very minimal grid system, and delete all of view template

* Do view page!

* Finish view even more

* Fix dates and filesizes in torrent table

* Improve comment/captcha input

* Actually add magnet and torrent buttons

* Add open-iconic instead of fontawesome

* Improve user side-panel

* Rename Category_* to CategoryName

* Beginning to finish up

* Implement themes and add basic mobile support to front page

* Fix some slight color errors

* Fix captcha on dark

* magnet and torrent links on view
2017-05-24 14:20:51 +10:00
akuma06 07c120407e Finished 2017-05-22 00:22:42 +02:00
akuma06 95bd3011ef Fixed route to delete account 2017-05-21 02:37:44 +02:00
Ramon Dantas 1968d2ae54 Move translation func to template variables (#652)
* Add T field to template variables

* Remove languages.SetTranslationFromRequest

* Add Tfunc on handlers

* Remove T and Ts from template_functions

* Update templates

Change the templates to use the local Tfunc, instead of the global one.
Also changed the signature of the fields on template_variables.go, so that
they return a template.HTML to avoid escaping problems.

* Remove unnecessary variable
2017-05-21 08:38:28 +10:00
Atvaark cd844aec45 Replace 'en-us' literals with the default language
This consolidates the places where a default language has to be set.

- Removed import of the 'userService' package into the 'languages' util
  package
  This was required to prevent a cyclic import between the two packages.
- Added a 'UserRetriever' interface to read the language setting of users
  inside the 'languages' package
2017-05-14 22:10:07 +02:00
xqm 44a6eaf524 Add new translations
Add new translations
2017-05-15 01:32:25 +08:00
ayame-git b28e7657e1 api token on profile page 2017-05-14 07:15:58 +03:00
tomleb b0982f07a6 Change color for bg-danger and fix night theme flickering issue (#370)
* Change color for bg-danger

* Fix annoying flickering with night theme

* use new class instead of overriding bootstrap's
2017-05-11 16:54:53 -05:00
sfan5 a96902a737 Fix minor display bug on profile edit page 2017-05-11 16:54:28 -05:00
sfan5 500f5bda02 Fix editing other profiles as a mod 2017-05-11 11:58:44 +02:00
Ramon Dantas c84140964b Add language selector (#298) 2017-05-10 14:45:39 -05:00
sfan5 eddeed572f Fix text on profile edit page 2017-05-10 15:49:46 +02:00
Chris MacLeod c9b72206a5 Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245)
* Checkpoint: it builds

The config, db, model, network, os, and public packages have had some
fixes to glaringly obvious flaws, dead code removed, and stylistic
changes.

* Style changes and old code removal in router

Router needs a lot of work done to its (lack of) error handling.

* Dead code removal and style changes

Now up to util/email/email.go. After I'm finished with the initial sweep
I'll go back and fix error handling and security issues. Then I'll fix
the broken API. Then I'll go through to add documentation and fix code
visibility.

* Finish dead code removal and style changes

Vendored libraries not touched. Everything still needs security fixes
and documentation. There's also one case of broken functionality.

* Fix accidental find-and-replace

* Style, error checking, saftey, bug fix changes

* Redo error checking erased during merge

* Re-add merge-erased fix. Make Safe safe.
2017-05-09 21:34:40 -05:00
akuma06 8aa8a0593c Added delete account and edit profile 2017-05-09 17:47:12 +02:00