Commit graph

41 commits

Author SHA1 Message Date
Carl Chenet b36bc14980 merged de41a9546514344c3c9415c9e340daf868963134 with i18n 2017-05-16 18:34:22 +02:00
Carl Chenet 9aec18155b i18n of users/{list,show,tree} 2016-11-15 14:40:55 +01:00
joshua stein 68a9a871ea user profile: inactive users don't need further qualifiers 2016-06-22 15:30:44 -05:00
joshua stein f2602432c9 separate can_invite? and banned_from_inviting? 2016-06-22 15:30:44 -05:00
joshua stein 0a4df290ab user profile: show when story submissions are disabled too 2016-06-22 15:30:44 -05:00
nyanpasu aa0ffeb37b Allow admin/moderator to disable user from inviting 2016-05-16 02:40:46 +08:00
joshua stein 869f83e285 fix @user vs @showing_user in unban section 2016-02-11 09:59:05 -06:00
joshua stein 9d79f2c76b include both urls in srcset, use 1x/2x instead of image width
seems to work better in firefox
2015-11-05 11:58:34 -06:00
joshua stein 1e6b892005 show hidpi images for avatars, site load icon, and favicon 2015-11-01 19:56:30 -06:00
joshua stein 2a30511117 time_ago_in_words_label: put "ago" in the text since it's used everywhere
closes #222
2015-09-23 13:24:47 -05:00
joshua stein 6dcf35dc25 my karma means nothing 2015-07-31 22:43:16 -05:00
joshua stein cbc1c50cd2 add user banning/unbanning from user view page 2015-07-24 00:51:11 -05:00
joshua stein fd00205625 for admins, show some private info about users in user profiles 2015-02-17 11:47:27 -06:00
joshua stein 5efe3ce6c3 make time_ago_in_words_label actually do what was intended 2015-01-06 14:08:15 -06:00
joshua stein 9f5e04bbba use _path for most things instead of _url
Instead of hard-coding the scheme and host everywhere, use _path
methods to show relative URLs.

Except that our previous setting of
Rails.application.routes.default_url_options in
config.after_initialize made this moot because Rails inserts that
host into all _path helpers for some reason.  So revert that
setting.

But then anything that wants an absolute URL doesn't know the
hostname and the root_url helper throws an exception.  So make a
Rails.application.root_url shortcut to pass the per-app settings in
Rails.application to root_url.

Now we can just use _path helpers most places but still use _url
ones where we need them, such as in RSS views and e-mail templates.
2015-01-02 17:02:55 -06:00
joshua stein 31d4e97858 implement hats
https://lobste.rs/s/bkeYe9/about_lobsters/comments/ZD2tL3#c_ZD2tL3
2014-11-14 14:12:29 -06:00
joshua stein 3241f34f75 don't interact with inactive users 2014-01-14 11:39:56 -06:00
joshua stein e12d91cd43 allow users to delete their own accounts
not much can actually be deleted, but it can be put into a deleted
state
2014-01-13 10:12:17 -06:00
joshua stein 287be48187 add stuff to deal with banning users 2014-01-12 15:09:32 -06:00
joshua stein dbc2e40684 move tag css class building to Tag model
add a tag_is_media class to tags with that type, use that for
matching in application.css instead
2013-08-05 01:02:48 -05:00
joshua stein 2858fea247 tweak display of user profile data a bit 2013-07-01 16:01:05 -05:00
joshua stein eeda7668b6 on user pages, show their most commonly used tag 2013-07-01 15:53:43 -05:00
joshua stein 87cb2cb45b add time_ago_in_words_label helper that shows the real time as a label title 2013-02-22 11:22:39 -06:00
joshua stein d0459974cd so long whitespace 2013-02-13 18:50:51 -06:00
joshua stein 9cc54edb5b move avatar url generation into User model 2012-12-16 20:02:02 -06:00
joshua stein dae138cddd show in a user profile who the user was invited by 2012-09-16 15:16:32 -05:00
joshua stein 7b1ec6fc3d some mobile css fixes 2012-09-16 15:05:48 -05:00
joshua stein e8d34910a6 put faces to names 2012-09-08 19:32:21 -05:00
Robert J Samson b15710d107 Show average karma in parentheses 2012-09-07 13:56:26 -04:00
Robert J Samson 6554983fd7 Add average karma to user profiles 2012-09-07 13:25:59 -04:00
joshua stein 6ae36ea492 route /newest/:user to show all stories by that user 2012-09-03 17:29:10 -05:00
joshua stein e9e162167d route /threads/:user to show recent threads for that user 2012-09-03 17:11:53 -05:00
joshua stein e6c74e8251 add moderation logging
- add users.is_moderator and look at that for most things, not
is_admin

- make default user in readme be a moderator

- log moderator actions in story edits, comment
  deletions/undeletions (and later, user disabling).

- remove ability for moderators to edit comments, there's really no
  reason to.
2012-09-02 12:18:52 -05:00
joshua stein ab6316a1cf add link on user profile to send them a message (kind of ugly) 2012-08-24 11:41:35 -05:00
joshua stein e47a054e75 focus certain text boxes on load where appropriate; minor tweaks 2012-08-24 11:41:34 -05:00
joshua stein 2e87af1259 showing_user, not current user 2012-08-24 10:57:42 -05:00
joshua stein c38fb2ed95 fixes 2012-08-24 10:57:42 -05:00
joshua stein ada1571a53 invitation system, user settings 2012-08-24 10:57:11 -05:00
joshua stein 22ae6bc1b2 show about text properly 2012-08-24 10:57:11 -05:00
joshua stein a35784c3ea raw linkified text 2012-08-24 10:57:11 -05:00
joshua stein 578c96d653 more work 2012-06-30 14:14:35 -05:00