Commit graph

67 commits

Author SHA1 Message Date
Carl Chenet 6668b1a992 users: move hats down to other personal things - merged with i18n 2017-05-23 13:10:38 +02:00
Carl Chenet 4537718dce user trees: hide moderator karma, as done on profiles - merged with i18n 2017-05-23 13:01:21 +02:00
Carl Chenet 5a3ac372b8 user tree: users with no parents don't descend from anything 2017-05-23 12:55:45 +02:00
Carl Chenet e14d9194c3 users/show: wrap hats in a div, for fancy people with many - merged with i18n 2017-05-23 12:46:59 +02:00
Carl Chenet ec93040614 user profile: show twitter info here too 2017-05-23 10:46:33 +02:00
Carl Chenet cd554c410c User: show github username in profile 2017-05-20 14:06:20 +02:00
Carl Chenet 9ae80b1e9e factor out avatar <img> code to show 2x version everywhere 2017-05-19 14:06:09 +02:00
Carl Chenet f4b9fe9ff4 Update views with email entry to use email_field - merged with i18n 2017-05-18 19:14:01 +02:00
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
Carl Chenet 7af03b4ff4 i18n of invitation form view (used by settings view) 2016-07-09 14:32:34 +02: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 d8c240dc46 switch to an image-less user tree, properly hide lines on last branch 2016-04-27 16:26:18 -05: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 620389ab95 add /u/?moderators=1 to list all moderators and admins 2015-02-23 16:56:06 -06: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 1eb9413f8a user tree: show newest 10 users 2015-01-27 12:14:26 -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 1af0edd268 add a flat version of the user tree, ordered by karma 2014-05-06 21:29:45 -05: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 22b77573a5 prevent new users from downvoting
don't show downvote arrows for logged-out and new users

color comments from new users in green like in the user tree,
and banned users in gray
2014-01-12 23:17:09 -06:00
joshua stein 287be48187 add stuff to deal with banning users 2014-01-12 15:09:32 -06:00
joshua stein 1c3597004f Merge pull request #81 from srgpqt/master
simplify user tree controller action and template
2014-01-07 09:57:09 -08:00
joshua stein e6db99c956 disable autocomplete for text fields that shouldn't use it
new password on settings form and user invitation form (would be
another e-mail address, not the stored user's)

closes #85
2014-01-07 11:42:21 -06:00
Serge Paquet b8652d80cc simplify user tree controller action and template 2014-01-04 03:14:41 -05:00
joshua stein 0aa330d106 user tree: show new users in green 2013-12-02 10:45:21 -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 1c0a8dfd03 move after-signup invite page into signup controller 2013-02-25 11:13:44 -06:00
joshua stein de1dc1d430 after a new user signs up, nag them to invite someone 2013-02-22 14:52:22 -06: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 0eac1c375a show user count on user tree page 2012-10-26 17:08:19 -05: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 857f2964d7 issue#18: show admin/moderator status on user tree 2012-09-16 15:14:05 -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