Commit graph

65 commits

Author SHA1 Message Date
Carl Chenet 49dd502de2 Comment: don't show downvote summary if we're not showing 2017-05-23 14:16:32 +02:00
Carl Chenet 653d8e64a9 experiment with hiding fresh but boring comment scores 2017-05-23 14:13:12 +02:00
Carl Chenet 6a336b7cee comments: simplify highlighting, use css selector - merged with i18n 2017-05-23 13:28:25 +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 82a8a7155a here be dragons - merged with i18n 2017-05-17 10:23:25 +02:00
Carl Chenet d2a873a4e9 when highlighting a comment, force it and its parents to show 2017-05-16 18:41:52 +02:00
Carl Chenet e8d11e28d7 Comment: cap downvotes to -5, only collapse when it reaches 2017-05-11 12:37:38 +02:00
Carl Chenet 63a7c3402d fix variable length 2016-11-10 15:06:23 +01:00
Carl Chenet 588ab40e7d i18n of comment/_comment view 2016-11-09 17:25:40 +01:00
joshua stein 13529cf296 comment: move 'on:' label before score summary 2016-06-22 15:30:44 -05:00
joshua stein 84394c5de6 when comments are -1, just collapse them
avoids piling on and engaging with trolls
2016-03-24 13:55:25 -05:00
joshua stein d54427df21 make 'link' on comments use very short url 2016-03-24 13:19:26 -05:00
joshua stein 28bbc9c8f7 moderators have to provide a reason for deleting others' comments 2016-02-10 08:57:38 -06:00
joshua stein e0b7c25758 comments: show usernames in vote summaries to moderators 2016-02-10 08:38:28 -06:00
joshua stein 0ec9c3a2ac turn on avatars by default 2016-01-21 11:59:06 -06:00
joshua stein 77e2000cb3 comment: put merge icon before avatar 2015-11-18 11:35:34 -06:00
joshua stein 14bf26f339 for story comments by author of story, color blue as well 2015-10-16 13:08:05 -05: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
Agustin Borgna 803a036a26 Implement comment folding in pure css 2015-09-23 00:44:46 -03:00
joshua stein 3f425a7abc make story/comment avatars link to user profile 2015-07-31 13:10:44 -05:00
joshua stein 117aaaf3db move avatars to the far left 2015-07-31 10:51:33 -05:00
joshua stein 6ac294470d when replying to a comment, if text is selected, quote it
Because the browser unselects text when you click on something, make
the reply link "unselectable" with CSS and an HTML attribute for
various browsers.

Implements #206
2015-07-24 00:51:46 -05:00
joshua stein 92c2e85b0a move folding to left side of username, move text to css 2015-07-24 00:51:11 -05:00
BennyHallett 4ddfaa8964 Fixes #181. Add comment folding as decribed in: https://lobste.rs/s/m5dlun/comment_folding 2015-07-24 00:51:10 -05:00
joshua stein 4b3a9ec2e9 move avatars after username 2015-04-09 20:59:20 -05:00
joshua stein d286eab325 add option to show user avatars on stories and comments
just because
2015-03-12 23:23:15 -05:00
joshua stein 270401db3f comment: show downvote summaries to moderators 2015-02-07 12:23:51 -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
Serge Paquet a1f5052f99 fix cancel button in comment forms 2014-12-14 01:24:18 -05: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 5b94406640 Comment: include page anchor in urls 2014-11-14 12:46:09 -06:00
joshua stein 8958ce76c2 for direct-comment links, just use an anchor instead of js to scroll
closes #156
2014-07-03 11:25:30 -05:00
joshua stein 416a5de6e4 fade out downvoted comments less dramatically 2014-06-30 17:13:07 -05:00
joshua stein 013662e50b only show comment downvote summary if its total score is <= 0
when a comment has a few upvotes and one downvote, users tend to
focus too much on the one downvote and edit or reply and debate the
downvote.  if more upvoted than downvoted, don't discourage the user
by pointing out the haters
2014-06-11 19:35:37 -05:00
joshua stein 73b8df5eb7 implement story merging
closes #137
2014-04-08 17:51:12 -05:00
joshua stein 67fc2cc75c set maximum time during which comments and stories can be downvoted
always allow a user to "unvote" if they're previously downvoted, but
after a certain number of days, don't accept new downvotes

there isn't really any benefit in downvoting old stuff that is
already off the front pages or on a dead comment thread, other than
to maliciously strip karma for particular users
2014-02-17 12:08:01 -06:00
joshua stein 49a116a12e "edited by e-mail" doesn't make much sense 2014-02-03 14:37:31 -06:00
Serge Paquet 5bca469035 enable "reply" function on the "Comments" page 2014-01-20 21:04:54 -05:00
Serge Paquet 42ce1e3b4c rebuilt comment tree DOM structure as valid HTML 2014-01-20 16:52:19 -05:00
Serge Paquet 41c9dfad5d fix DOM structure when replying to or updating comments 2014-01-20 16:52:19 -05:00
joshua stein 8c3841331d when highlighting one comment, scroll to it
though i wonder with highlighting comments and now scrolling to
them, why we bother excluding all other threads.  we aren't
pagingating threads anyway.
2014-01-18 13:13:58 -06:00
joshua stein 5f6c13b26b Merge pull request #98 from srgpqt/master
remove redundant "story" variable in comment templates
2014-01-14 18:34:07 -08: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
Serge Paquet aabe4ceed7 remove redundant "story" variable in comment templates 2014-01-13 02:11:34 -05: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 ccae78bf34 if user is not logged in, prevent downloading application.js
saves a lot of time for users downloading and processing jquery and
other code that is never used when logged out
2014-01-12 13:28:07 -06:00
joshua stein e63e45af2b record and show which comments were posted by e-mail, for no particular reason 2013-12-28 12:00:29 -06:00
Serge Paquet 6dcb7bbf6b fixed mixed indent style (should be 2 soft spaces as per project guidelines) 2013-12-23 18:19:47 -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