Commit graph

846 commits

Author SHA1 Message Date
joshua stein 4e573b4ac6 mail_new_activity: use Story method for determining if user hid the story
Fixes #141
2015-08-03 09:49:45 -05:00
joshua stein 4c8335d32f shrink story summary to 2 lines 2015-07-31 22:43:16 -05:00
joshua stein 6dcf35dc25 my karma means nothing 2015-07-31 22:43:16 -05:00
joshua stein 3f425a7abc make story/comment avatars link to user profile 2015-07-31 13:10:44 -05:00
joshua stein 229b2da008 settings: sort 2015-07-31 13:06:42 -05:00
joshua stein 0799fe33d7 specify a width for folder/unfolder to avoid shifting 2015-07-31 13:05:33 -05:00
joshua stein 27e2f0e5e5 fix magical path to sprockets manifest for our stupid hack 2015-07-31 12:53:28 -05:00
joshua stein 3ceb309577 when collapsing comment trees, collapse the comment itself 2015-07-31 12:52:52 -05:00
joshua stein 117aaaf3db move avatars to the far left 2015-07-31 10:51:33 -05:00
joshua stein f90276acb1 Merge pull request #213 from owen/master
Truncate at end-of-string, not at every EOL
2015-07-31 10:29:49 -05:00
Owen Marshall 8fae63929d Truncate at end-of-string, not at every EOL 2015-07-31 09:03:10 -04:00
joshua stein 09f65774c2 Story#description_or_story_cache: handle truncation properly 2015-07-30 18:12:57 -05:00
joshua stein 81b3be6165 add setting to show inline story previews in story list
Closes #148
2015-07-30 17:56:09 -05:00
joshua stein 0d61e0cf68 add "i am the author of this" checkbox for stories
Highlights username in a different color and says "authored by"
instead of just "by".

Move html class printing into a method in Story to use in the future
for friends, admin posts, etc.

Closes #171
2015-07-30 17:15:48 -05:00
joshua stein befee851c8 update to rails 4.1.12 2015-07-24 01:38:51 -05:00
joshua stein ff097813ad autosize comment textareas
closes #194
2015-07-24 01:26:58 -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 a31ecc80ac change tags.hotness_mod to float 2015-07-24 00:51:11 -05:00
joshua stein 8282181e49 Story: shrink hotness window to 24 hours 2015-07-24 00:51:11 -05:00
joshua stein 5bef185dda story list: use negative_* classes for flagged stories 2015-07-24 00:51:11 -05:00
joshua stein ecb20668ce SignupController: add an explicit action for invite 2015-07-24 00:51:11 -05:00
joshua stein 55bab8003d Story: validate url length according to db field length 2015-07-24 00:51:11 -05:00
joshua stein cbc1c50cd2 add user banning/unbanning from user view page 2015-07-24 00:51:11 -05:00
joshua stein 38ac6a4c3f Story: halve comment score weights in hotness 2015-07-24 00:51:11 -05:00
joshua stein 5989e9c808 Story: fix up bogus chars in title before saving, only 160 for now 2015-07-24 00:51:11 -05:00
joshua stein db63d22b83 use identicon for blank gravatars, makes conversations easier to follow 2015-07-24 00:51:11 -05:00
joshua stein 6eca2ed75d set ceiling for traffic counter 2015-07-24 00:51:11 -05:00
joshua stein 92c2e85b0a move folding to left side of username, move text to css 2015-07-24 00:51:11 -05:00
joshua stein 6cc5f196bf Tag: remove accessible_to, use valid_for?
They do the same thing now but a scope might be too limited in the
future so just pick one now.

Closes #100
2015-07-24 00:51:11 -05:00
joshua stein 434ad81752 Story: do url validation case insensitively 2015-07-24 00:51:10 -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
amalrik 440d060820 added seed to populate initial data. 2015-05-10 12:17:57 -03:00
joshua stein c04c752648 always color story a:visited 2015-04-28 09:52:44 -05:00
joshua stein c2442a5881 add comments rss feed
The RSS view was already here but never setup in a controller.

Closes #202
2015-04-28 09:51:50 -05:00
joshua stein b4444c58c9 twitter stupidly "shortens" find.com into http://t.co/u44JiITiuc, cope
try to pluck out simple urls in basic tlds and treat their length as
a t.co url if it's longer than the url being shortened

of course this will not catch all urls, but i'm not going to load a
whole suffix list or library just to deal with this stupid shit
2015-04-17 09:16:08 -05:00
joshua stein 8f8ad57135 export a json version of user page, include karma and about text 2015-04-09 21:05:50 -05:00
joshua stein 4b3a9ec2e9 move avatars after username 2015-04-09 20:59:20 -05:00
joshua stein 4fcbf8b257 minimal changes to let the bbs hook in if it's present 2015-04-03 13:53:31 -05:00
joshua stein 88602f7535 StoriesPaginator: make per_page configurable 2015-04-03 12:58:14 -05:00
joshua stein fdf892e7f9 move user unread message count into a scope 2015-04-03 12:57:12 -05:00
joshua stein 97c70d3efc don't do css link header hack in development 2015-04-01 01:05:50 -05:00
joshua stein 73bd2e4c7b there is no team in i 2015-04-01 01:02:38 -05:00
joshua stein 18e027feb9 add a short id redirector for comments 2015-04-01 01:02:22 -05:00
joshua stein e9f005d83b User: a few more reserved usernames 2015-04-01 01:02:01 -05:00
joshua stein 168d9bfec3 story list: break up long words in titles and domains with <wbr> 2015-03-21 21:56:34 -05:00
joshua stein 21f3334155 moderations: fix table column widths 2015-03-19 12:11:05 -05:00
joshua stein e974083413 Story: inactive tags that are marked for destruction are ok 2015-03-19 12:10:52 -05:00
joshua stein 26f17ae928 User: add some banned usernames from a long-ago comment by @kevinburke 2015-03-19 12:10:18 -05:00
joshua stein cb850bd9e6 recent comments: hide comments on user's hidden stories
closes #142
2015-03-13 00:31:34 -05:00
joshua stein ab00313b20 css: shrink the page width a little 2015-03-13 00:15:46 -05:00