codecombat/app/templates
Scott Erickson 7bab895dee Generalize new I18N view system
Previously, when diplomats submit translations, the system
would try to figure out whether it should be a 'patch' or a 'change',
and then would either create a patch for an admin or artisan to
review and accept or reject, or would apply the changes immediately
and they would be live. This was done as a compromise between
getting translations live quickly, but also preventing already-translated
text from getting overwritten without oversight.

But having the client handle this added logical complexity. So
this makes all diplomats submit patches, no matter what. The server
is then in charge of deciding if it should auto-accept the patch or not.
Either way, a patch is created.

There was also much refactoring. This commit includes:

* Update jsondiffpatch so changes within array items are handled correctly
* Refactor posting patches to use the new auto-accepting logic, and out of Patch model
* Refactor POST /db/patch/:handle/status so that it doesn't rely on handlers
* Refactor patch stat handling to ensure auto-accepted patches are counted
* Refactor User.incrementStat to use mongodb update commands, to avoid race conditions
* Refactor Patch tests
2016-09-09 10:59:26 -07:00
..
account Update i18n (#3907) 2016-09-08 22:48:28 +01:00
admin 🐛Fix admin student licenses range coloring 2016-08-17 21:08:23 -07:00
artisans Tweaks based on CR from Rob 2016-08-25 15:52:49 -07:00
clans Update i18n (#3907) 2016-09-08 22:48:28 +01:00
common Add course (name, description) translations 2016-08-18 10:10:18 -07:00
contribute #3138 refactor contributor views 2016-06-07 17:09:00 +07:00
core Update i18n (#3907) 2016-09-08 22:48:28 +01:00
courses Update i18n (#3907) 2016-09-08 22:48:28 +01:00
editor Update i18n (#3907) 2016-09-08 22:48:28 +01:00
i18n Generalize new I18N view system 2016-09-09 10:59:26 -07:00
modal Cull recruiting views and translations 2015-12-18 10:34:21 -08:00
play Dang HTTPS 2016-09-08 16:02:39 -07:00
teachers Update i18n (#3907) 2016-09-08 22:48:28 +01:00
user Remove justPlayCourses heuristic, replace with isStudent, remove old HomeView 2016-09-01 10:41:43 -07:00
about.jade Update i18n (#3907) 2016-09-08 22:48:28 +01:00
admin.jade Merge branch 'game-dev-levels' 2016-07-21 10:14:22 -07:00
base-flat.jade Update i18n (#3907) 2016-09-08 22:48:28 +01:00
base.jade Update i18n (#3907) 2016-09-08 22:48:28 +01:00
careers.jade Refactor to use view in template for issue #3138 2015-11-09 21:29:27 +00:00
cla.jade Fixed .spr in cla.jade 2015-10-27 15:07:39 +00:00
community-view.jade fix community page layout 2016-05-18 09:37:32 +07:00
demo.jade Initial work on a demo view. But brunch won't build demo-app.js for some reason. 2014-06-16 11:40:08 -07:00
error.jade Move error_view's dom to template file. 2014-03-28 23:51:15 -04:00
home-view.jade Update i18n (#3907) 2016-09-08 22:48:28 +01:00
legal.jade Update i18n (#3907) 2016-09-08 22:48:28 +01:00
privacy.jade Update our /privacy address 2016-06-21 09:41:21 -07:00
teachers.jade Update /teachers with post-HoC copy 2015-12-18 05:39:25 -08:00
test-view.jade Add clearer reports to client TestView 2016-06-03 16:26:03 -07:00