joshua stein
cb5e05c461
minor cleanups after last merge
2012-09-16 15:51:25 -05:00
joshua stein
17d8213bc7
merge @username mentions and notifications from @rjsamson
2012-09-16 15:41:21 -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
ad1d925c61
prevent double clicking of the post comment button from creating two comments
2012-09-14 16:17:45 -05:00
joshua stein
45a498ea51
comments have an initial upvote of 1, which has a non-zero confidence
2012-09-14 15:54:45 -05:00
joshua stein
a51ca8c533
set editor_user_id unconditionally in delete
2012-09-10 15:46:52 -05:00
joshua stein
66917339cc
automatically assign the video tag for youtube.com urls
2012-09-10 13:57:08 -05:00
Robert J Samson
ec1bcb9704
Added mentions in comments using @username convention. @username is linked to user profile in comment text, and notifications are available via email and pushover (with notification preferences) when a user is mention.
2012-09-10 13:40:33 -04:00
joshua stein
09508f3ad6
don't hardcode lobste.rs url (which wasn't using ssl anyway), use root_url
2012-09-09 11:56:10 -05:00
joshua stein
0abe41bd6d
mention that profile e-mail addresses are gravatarized
2012-09-08 19:37:30 -05:00
joshua stein
729c38d4c7
how did those tabs get there
2012-09-08 19:37:21 -05:00
joshua stein
e8d34910a6
put faces to names
2012-09-08 19:32:21 -05:00
joshua stein
af5b00572c
whenever a story/comment is moderated, send a message to the user
2012-09-08 18:32:56 -05:00
joshua stein
ec7389d9a0
Merge pull request #15 from rjsamson/avg-karma
...
show average karma in user profile
2012-09-07 11:06:26 -07:00
Robert J Samson
b15710d107
Show average karma in parentheses
2012-09-07 13:56:26 -04:00
joshua stein
fb9c0228b0
remove red text from cancel button, make post button bold
2012-09-07 12:40:07 -05:00
joshua stein
96ee762fdf
Merge pull request #3 from prezjordan/master
...
add cancel button for comment form
2012-09-07 10:37:45 -07:00
Robert J Samson
6554983fd7
Add average karma to user profiles
2012-09-07 13:25:59 -04:00
joshua stein
ea143e6fbb
reject email addresses with spaces
2012-09-07 09:25:00 -05:00
joshua stein
f0bc4e7c8d
reject email addresses with spaces, catch mailer delivery errors
2012-09-07 09:24:29 -05:00
joshua stein
1987a24a2a
properly set @title/@heading everywhere
2012-09-07 09:18:15 -05:00
joshua stein
c093431898
allow tags to be filtered by default for new and non-logged-in users
2012-09-06 13:44:42 -05:00
joshua stein
d986952870
remove unused footer partial
2012-09-06 13:43:38 -05:00
joshua stein
e61f8ea386
bail properly if the message isn't found
2012-09-06 12:43:51 -05:00
joshua stein
61f45092f8
cope with tag filters being on deleted tags
2012-09-06 12:07:35 -05:00
joshua stein
6be5150bb0
cleanup
2012-09-04 20:59:51 -05:00
joshua stein
913aa30827
Merge pull request #9 from maxpow4h/master
...
properly implement Keystore.incremented_value_for for sqlite
2012-09-04 18:42:17 -07:00
Maxwell Swadling
3c65a3332f
Fixed the sqlite FIXME for keystore
2012-09-05 09:01:59 +10:00
joshua stein
17ce13d49e
move previewed/posted comment outside of <form>, fixes duplicate comment problem
...
a comment would get posted and then displayed inside the original
<form>. when that comment would get edited, its <form> would be
nested inside the original one, and on webkit browsers, submitting
the inside form would submit the outside one.
2012-09-04 11:33:49 -05: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
1b60604806
if a url looks like a pdf, select the pdf tag
2012-09-03 16:54:32 -05:00
joshua stein
b91a637535
Story#url has a custom validator, remove duplicate
2012-09-03 16:53:58 -05:00
joshua stein
061f540506
remove stray line
2012-09-03 16:42:50 -05:00
joshua stein
621dde2dc5
show new messages in red so it's obvious
2012-09-03 13:08:31 -05:00
joshua stein
89a32886e1
warn users about inviting strangers
2012-09-03 12:56:06 -05:00
joshua stein
5a72a9d6a7
if a comment is downvoted, show the comment's user a summary of its downvote reasons
2012-09-03 12:42:32 -05:00
joshua stein
49feb9ba43
use the invitation's e-mail address as the default for the new user
2012-09-03 11:44:29 -05:00
joshua stein
9f0747a46b
move score down 1 pixel, looks better in webkit
2012-09-03 11:30:42 -05:00
joshua stein
0691235882
suppress deleted messages from message list since they're not actually wiped out until both parties delete
2012-09-03 11:25:14 -05:00
joshua stein
9b5310a1eb
Merge pull request #5 from kevinburke/responsive-for-all
...
Use max-width instead of max-device-width
2012-09-02 10:34:59 -07: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
Jordan Scales
d410f4f424
cancel link is now a button, js formatting consistency, removed extra styling
2012-09-02 12:51:32 -04:00
Kevin Burke
31f5c110fc
Use max-width instead of max-device-width
...
Max-device-width will only kick in on physical devices with width smaller than
480px. It makes sense though to trigger the responsive layout on any device
where the viewport is that narrow, not just ones where the device itself is
that narrow.
For an example of this in practice, visit barackobama.com on a desktop, resize
your browser window and watch the layout change responsively.
2012-09-01 22:45:05 -07:00
joshua stein
3bd2e6b8a7
show traffic value in link title
2012-09-01 22:56:07 -05:00
joshua stein
88894a66fc
catch sphinx errors
2012-09-01 22:56:07 -05:00
Jordan Scales
56e061db72
styling for comment reply cancel button
2012-08-30 16:50:01 -04:00
Jordan Scales
14fe4e6623
comment reply form now has a cancel button
2012-08-30 16:49:49 -04:00
joshua stein
d6255916e8
fix story hiding when downvoted; don't count comment votes
2012-08-29 08:48:57 -05:00
joshua stein
a921d3eeb5
add readme, do some cleanup before open sourcing
2012-08-24 11:42:23 -05:00
joshua stein
6fb3e5ebd8
only hide submission guidelines when the user has more than 2 submissions
2012-08-24 11:42:23 -05:00
joshua stein
a016086b44
increase line-height of comments to match textarea, color links gray
2012-08-24 11:42:23 -05:00
joshua stein
41b6d7620a
add some post guidelines
2012-08-24 11:42:23 -05:00
joshua stein
fc1f7fe5ee
move header into layout, no need for another file
2012-08-24 11:42:23 -05:00
joshua stein
3e7cdbe253
tweak traffic decay to be a little slower
2012-08-24 11:42:23 -05:00
joshua stein
43444f179b
implement traffic counter that adjusts redness of lobsters logo
2012-08-24 11:42:23 -05:00
joshua stein
342ede4d4c
reload user's tag filters after modifying, before showing again
2012-08-24 11:42:23 -05:00
joshua stein
9a51d7d1f8
raw the memo, we don't need xss protection here
2012-08-24 11:42:23 -05:00
joshua stein
f34ad51891
log some more things on countinual
2012-08-24 11:42:23 -05:00
joshua stein
49c6e64aac
count user creation on countinual
2012-08-24 11:42:20 -05:00
joshua stein
776bf89dea
implement /comments.rss
2012-08-24 11:41:37 -05:00
joshua stein
f6b252e456
a tiny bit taller textareas
2012-08-24 11:41:37 -05:00
joshua stein
f541d4118c
fix
2012-08-24 11:41:37 -05:00
joshua stein
0c0aa465bb
make /comments show latest comments
2012-08-24 11:41:37 -05:00
joshua stein
c34abddc3d
pre overflow auto
2012-08-24 11:41:37 -05:00
joshua stein
edcee1bddd
<< strikes again
2012-08-24 11:41:37 -05:00
joshua stein
c945f29040
add similar-url check for www\d*\., rewrite checker to be simpler
2012-08-24 11:41:37 -05:00
joshua stein
70db7a5879
short ids in urls should be case insensitive, so make them that way anyway
2012-08-24 11:41:37 -05:00
joshua stein
33e6eee4e0
don't count deleted comments for stories, update comment counts after comment del/undel
2012-08-24 11:41:37 -05:00
joshua stein
3640e1e7a3
comment deleting and undeleting
2012-08-24 11:41:37 -05:00
joshua stein
7dd4b99ac2
escape slashes in search queries
2012-08-24 11:41:37 -05:00
joshua stein
208e1832d6
use @title
2012-08-24 11:41:37 -05:00
joshua stein
fd8ec36608
story previews
2012-08-24 11:41:37 -05:00
joshua stein
bc0d934d5e
focus search box if there is no search yet
2012-08-24 11:41:37 -05:00
joshua stein
abb8392c16
search engine!
2012-08-24 11:41:36 -05:00
joshua stein
b01f9e9027
fixup header current page stuff
2012-08-24 11:41:36 -05:00
joshua stein
dd9966c0a3
color pdf tags purpleish
2012-08-24 11:41:36 -05:00
joshua stein
bd9d2aa3c4
put tags in alpha order, but put pdf first
2012-08-24 11:41:36 -05:00
joshua stein
82ae95f8ca
disable trimming threads to our own reply for now, it's busted
2012-08-24 11:41:36 -05:00
joshua stein
e0da3a7039
little spacing tweaks
2012-08-24 11:41:36 -05:00
joshua stein
a51147b5d0
fix bug; don't show downvote reason for stories
2012-08-24 11:41:36 -05:00
joshua stein
389b4c61ec
do better at finding near-similar urls already posted recently
...
http -> https, trailing slash, etc.
2012-08-24 11:41:36 -05:00
joshua stein
6f3f018598
fix back link to page 1
2012-08-24 11:41:36 -05:00
joshua stein
da5c04504a
fix voting on stories where the user previously commented on
2012-08-24 11:41:36 -05:00
joshua stein
88f01210d3
enable activerecord attribute whitelisting just in case
2012-08-24 11:41:36 -05:00
joshua stein
75f026b182
do some short caching for guest views of story indexes
2012-08-24 11:41:36 -05:00
joshua stein
c2206f46cd
fix appearance of other tags when viewing single tag
...
don't just pull taggings where the tag id matches, pull all stories
where the id is in the list of stories tagged with that tag
2012-08-24 11:41:36 -05:00
joshua stein
2ba78cc10e
downcase vote reasons
2012-08-24 11:41:36 -05:00
joshua stein
361a689b13
link to invited user profile
2012-08-24 11:41:36 -05:00
joshua stein
43aa0047e9
simplify markdown help link
2012-08-24 11:41:36 -05:00
joshua stein
9f6a1a7e4a
try to collect some about info from the new user
2012-08-24 11:41:36 -05:00
joshua stein
c17ea7b638
while we're slow, allow upvoted stories to stick around longer
2012-08-24 11:41:36 -05:00
joshua stein
b9c8f1d371
oops, confidence desc
2012-08-24 11:41:36 -05:00
joshua stein
db10cd115f
explain text field better
2012-08-24 11:41:36 -05:00
joshua stein
f664734a40
fix markdown links that have trailing punctuation inside the url
2012-08-24 11:41:36 -05:00
joshua stein
be578454a9
taller line-height too
2012-08-24 11:41:36 -05:00
joshua stein
f8b1cc0443
tweak comment spacing a bit
2012-08-24 11:41:36 -05:00
joshua stein
10faafc8af
no need to say that
2012-08-24 11:41:36 -05:00
joshua stein
2a5b60fbb1
color root too
2012-08-24 11:41:36 -05:00
joshua stein
758d62304a
move l.png to data uri
2012-08-24 11:41:36 -05:00
joshua stein
a407bad2d6
better tree style
2012-08-24 11:41:36 -05:00
joshua stein
543f5c12bc
user tree
2012-08-24 11:41:35 -05:00
joshua stein
54af096f60
tweak spacing a bit
2012-08-24 11:41:35 -05:00
joshua stein
b86dae0331
ditch the comment vertical lines for now
2012-08-24 11:41:35 -05:00
joshua stein
038d33bf8b
prevent <pre> from taking over the page, fix blockquote example in markdown help
2012-08-24 11:41:35 -05:00
joshua stein
e453ba8b81
add meta tag for short story url
2012-08-24 11:41:35 -05:00
joshua stein
911bc2d088
only rstrip comments to preserve leading spaces for <pre> wrapping
2012-08-24 11:41:35 -05:00
joshua stein
40bc2003ab
fit more on a page
2012-08-24 11:41:35 -05:00
joshua stein
c63d35a65d
use a common class for rdiscount options, filter out <h#> tags, add rel=nofollow
2012-08-24 11:41:35 -05:00
joshua stein
6e17272e9d
story pagination
2012-08-24 11:41:35 -05:00
joshua stein
342d6ff911
move markeddown html into sql so it doesn't have to be generated every time
...
it's unlikely to change and if it does, we can just re-generate
everything in sql at once
2012-08-24 11:41:35 -05:00
joshua stein
d170d36fd0
only show a description if there is a body
2012-08-24 11:41:35 -05:00
joshua stein
08fade9e9d
may as well not render the footer while there's nothing there
2012-08-24 11:41:35 -05:00
joshua stein
f8dd75fde4
comment editing, looks weird for now but it works
2012-08-24 11:41:35 -05:00
joshua stein
cd568eaa38
fix deleting/undeleting stories for users and moderators
2012-08-24 11:41:35 -05:00
joshua stein
805b0fd1a0
fix blockquote style for comments
2012-08-24 11:41:35 -05:00
joshua stein
647fc5f446
disable autocomplete everywhere
2012-08-24 11:41:35 -05:00
joshua stein
453ead19c0
tweak mobile sizes
2012-08-24 11:41:35 -05:00
joshua stein
80f02beee8
a mobile stylesheet
2012-08-24 11:41:35 -05:00
joshua stein
e177b769fc
a comment vote is not a vote for the story
2012-08-24 11:41:35 -05:00
joshua stein
b5fc3d2e1f
allow admins to edit everything forever
2012-08-24 11:41:35 -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
59bcaf9512
tweak flash messages
2012-08-24 11:41:35 -05:00
joshua stein
28cd5f8432
fix story edit bug, only check url at new time
2012-08-24 11:41:34 -05:00
joshua stein
a2705a835e
add tag filters
2012-08-24 11:41:34 -05:00
joshua stein
7611e7d297
add apple-touch-icon
2012-08-24 11:41:34 -05:00
joshua stein
fc1c474fb3
implement private messages
2012-08-24 11:41:34 -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
7858dcd212
max width of 1000 seems better
2012-08-24 11:41:34 -05:00
joshua stein
dd64a9c823
max-width to avoid vertical scrolling on small browsers
2012-08-24 11:41:34 -05:00
joshua stein
116d0d6978
use two blue colors for links
2012-08-24 11:41:34 -05:00
joshua stein
95ef42d872
move confidence and hotness into sql tables for proper sorting
2012-08-24 11:41:34 -05:00
joshua stein
906564a6a0
widen page but shrink comments, story text, and comment boxes
2012-08-24 11:41:34 -05:00
joshua stein
6023a81c71
tweak some styles
2012-08-24 11:41:34 -05:00
joshua stein
141ba5f77d
fix root_url stuff
2012-08-24 11:41:34 -05:00
joshua stein
e535a1387f
make linking to specific comments work
2012-08-24 11:41:34 -05:00
joshua stein
d9b95b2a1d
email and pushover reply notifications
2012-08-24 11:41:30 -05:00
joshua stein
da48f74e45
don't show memo if there is none
2012-08-24 10:57:42 -05:00
joshua stein
a5782cbe33
fix an eager loading problem with tags
2012-08-24 10:57:42 -05:00
joshua stein
9de30a870f
use a story's short id url as the rss guid since the title can change
2012-08-24 10:57:42 -05:00
joshua stein
6258cb7f75
remove leading and trailing underscores from title_as_url
2012-08-24 10:57:42 -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
6b76eadcec
sqlite is only in test
2012-08-24 10:57:42 -05:00
joshua stein
c961bd6546
catch no title
2012-08-24 10:57:42 -05:00
joshua stein
73916d6636
going to have to do this sqlite-specific anyway
2012-08-24 10:57:42 -05:00
joshua stein
f6d9905fd9
no underlining in markdown, just strong with **
2012-08-24 10:57:42 -05:00
joshua stein
986e261478
use max width
2012-08-24 10:57:42 -05:00
joshua stein
8dd109c49f
drop custom markdowner for rdiscount
2012-08-24 10:57:42 -05:00
joshua stein
b5b2c92779
show newest in rss url
2012-08-24 10:57:42 -05:00
joshua stein
27304e4bc3
only underscores
2012-08-24 10:57:42 -05:00
joshua stein
3bfea45145
shorter random string to not wrap in email
2012-08-24 10:57:41 -05:00
joshua stein
282f505cf2
pass around root_url from view/controller into model when needed
2012-08-24 10:57:41 -05:00
joshua stein
d85aed9475
value_for
2012-08-24 10:57:41 -05:00
joshua stein
909feb49cb
note submitters in keystore
2012-08-24 10:57:41 -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
f6560d37ad
shorten stories to /s/ instead of /p/
2012-08-24 10:57:11 -05:00
joshua stein
a35784c3ea
raw linkified text
2012-08-24 10:57:11 -05:00
joshua stein
bbaa8f554f
fix markdown help display on story submission
2012-08-24 10:57:11 -05:00
joshua stein
d85b7d8db9
add a guid to point to the comments url rather than the linked url
2012-08-24 10:57:10 -05:00
joshua stein
7b3cbdddee
rss feeds!
2012-08-24 10:57:10 -05:00
joshua stein
13a584854e
stories must have at least one tag
2012-08-24 10:57:10 -05:00
joshua stein
2375e3f210
remove unused stuff
2012-08-24 10:57:10 -05:00
joshua stein
e6083e760d
use new title fetcher
2012-08-24 10:57:10 -05:00
joshua stein
473a026a0e
how did all of these tabs get here
2012-08-24 10:57:10 -05:00
joshua stein
f801932a03
use nokogiri to get doc titles
2012-08-24 10:57:10 -05:00
joshua stein
0feff12043
session_token
2012-08-24 10:57:10 -05:00
joshua stein
cb4f0f9b4e
Utils.random_str
2012-06-30 16:43:18 -05:00
joshua stein
578c96d653
more work
2012-06-30 14:14:35 -05:00
joshua stein
95b4906e6e
working voting/scoring, threaded comments
2012-06-30 11:18:36 -05:00
joshua stein
093747b796
initial work on conversion from php tree
2012-06-16 20:15:46 -05:00