Commit graph

20 commits

Author SHA1 Message Date
Sacha Greif
755451b394 modularising the user edit page 2014-12-08 20:36:46 +09:00
Sacha Greif
bb486793e1 making user profile modular 2014-12-08 14:53:26 +09:00
Charlie DeTar
ea7efc3550 Replace "throwError" with "flashMessage" and type
Currently, ``throwError`` is used for all manner of messages, including
errors, "success" messages, and "info" messages.  This makes appropriate
styling of the error message difficult.  In addition, the name
``throwError`` seems to create confusion, implying that an error will
actually be thrown (e.g. stopping execution when a user isn't logged in
[0][1]), when in fact it just displays a message.

Replace ``throwError`` with ``flashMessage``, and reliably include a
message "type" (e.g. "error", "success", "info") every time.  rename
``lib/errors.js`` to ``lib/messages.js`` to more accurately reflect its
function.

This commit doesn't rename the message collection (``Errors``), nor the
template responsible for rendering the messages (``error_item.html``) --
that should probably still be done, but has higher likelihood of
trouble for existing alternate themes and installations.

[0] 6ccf7d7d47/client/views/users/user_edit.js (L43)
[1] 083a4c4dc4/client/views/users/user_email.js (L13)
2014-11-05 13:12:09 -07:00
shaialon
94e114cc6f Lint clean the code. 2014-09-26 22:50:37 +03:00
Mitchell Wulfman
6fc6b9eb78 cleanup while getting familiar with the codebase 2014-09-16 15:18:27 -04:00
Sacha Greif
6dee86463a paginating user profile on the client 2014-09-03 09:46:39 +09:00
Sacha Greif
d25f644c2c Profile tweaks; display more posts 2014-09-01 09:52:40 +09:00
Sacha Greif
735f0645db move votes to their own object on user object 2014-08-23 11:53:37 +09:00
Sacha Greif
df479d43c3 Stop tracking comments in User object; Refactor publications; add data property to user 2014-08-23 11:28:05 +09:00
Sacha Greif
9b8e16f177 now showing comments on user profile page 2014-08-22 17:06:22 +09:00
Sacha Greif
509972f18a Now keeping track of upvoted/downvoted posts & comments. 2014-08-11 10:14:53 +09:00
Sacha Greif
c483464f4d making all template helpers dynamic 2014-07-05 11:24:28 +09:00
Sacha Greif
ad9bea13ed refactored invites and user dashboard a bit 2013-11-14 10:49:37 +09:00
Sacha Greif
0bed5aa609 cleaned up user profiles a bit 2013-11-08 11:42:00 +09:00
Sacha Greif
f876eb263e added profile fields for github, twitter, and personal site, and fixed profile avatar 2013-11-07 09:57:57 +09:00
Sacha Greif
65e59767d1 got rid of digest publications; simplified digest subscription; publishing comment author user 2013-10-26 10:37:32 +09:00
Sacha Greif
78bba0e915 invite system 2013-10-23 19:43:42 +09:00
Sacha Greif
a9fac1ed9a working on user profile and user edit 2013-10-09 20:50:26 +09:00
Sacha Greif
159492d12e cleaned up router 2012-10-11 08:23:52 +09:00
Tom Coleman
e4f55a6377 Start of reorganization. 2012-10-04 11:17:57 +10:00
Renamed from client/templates/user_profile.js (Browse further)