joshua stein
af24e4e388
if a user has had a story moderated in the past 5 days, show guidelines
2014-03-12 17:52:52 -05:00
joshua stein
7f2c98860d
swap out /newest link for /recent
2014-03-12 17:51:42 -05:00
joshua stein
6cab668a2f
simplify rss <link> generation
2014-03-12 17:50:51 -05:00
joshua stein
9535b05490
remove story downvoting, add story hiding
...
stories should either be reported for spam (coming later), upvoted,
or left alone rather than being downvoted for being uninteresting.
since users don't like leaving uninteresting things alone, they can
now hide stories from their view without affecting the story's
score.
hiding is implemented as a Vote with its vote set to 0 and the
reason set to "H"
add a /hidden url which shows all of a user's hidden stories
while i'm here, simplify Vote guts and add some tests to make sure
all the flip-flopping stuff works right
2014-03-03 17:20:21 -06:00
joshua stein
87d4b8797f
story submission: link to previously submitted url for recent stories
...
if there is only one error and the story has a already_posted_story,
show a custom error dialog that links to that story. if there are
other errors, show the standard error dialog.
closes #135
2014-02-21 11:56:43 -06:00
joshua stein
3a60d3abba
show story downvoting usernames to moderators to detect problems
...
such as voting rings or users downvoting things instead of filtering
tags
2014-02-21 11:29:19 -06:00
joshua stein
57748f9839
message view: show admin/moderator status of sender
2014-02-21 11:20:35 -06:00
joshua stein
d75242f646
tweak story submission guidelines
2014-02-21 10:57:30 -06:00
joshua stein
d4e9e024aa
invitation requests: <em> emails
2014-02-21 10:57:30 -06:00
Radu Voicilas
fa946933ab
Fix typo Invitiation -> Invitation
2014-02-21 11:25:33 +02:00
joshua stein
d0711892f6
messages: implement batch-delete function
...
closes #119
2014-02-19 13:31:48 -06:00
joshua stein
8755384bd8
invitation requests: show confirmed e-mails to moderators
2014-02-19 13:16:23 -06:00
joshua stein
c90486b813
invitation requests: allow moderators to delete confirmed requests
2014-02-19 13:16:23 -06:00
joshua stein
78d9734c26
invitation requests: use a proper form_for, highlight errors
2014-02-19 13:16:16 -06:00
joshua stein
89cdf1101a
add a story-only mailing list mode
...
closes #131
2014-02-19 12:49:12 -06: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
20c870b78b
spacing nit
2014-02-17 10:09:33 -06:00
joshua stein
a16e99c686
avoid leaking object ids in form_fors
2014-02-12 13:28:53 -06:00
joshua stein
354143e9c5
mobile story view: align things a bit better, shorter markdown help label
2014-02-08 14:41:36 -06:00
joshua stein
5d5b920f5b
mobile story list: make comment links easier to click on
2014-02-08 14:28:27 -06:00
joshua stein
a85fbe4ff1
bring back moderation_reason for moderators
2014-02-05 21:01:49 -06:00
joshua stein
49a116a12e
"edited by e-mail" doesn't make much sense
2014-02-03 14:37:31 -06:00
Serge Paquet
22d6ec20a7
fix pushover messages user setting
2014-02-02 14:49:34 -05:00
joshua stein
20cf2bab65
show how many stories have been tagged with each on filters page
...
closes #93
closes #114
2014-01-24 13:53:10 -06:00
joshua stein
71eeb6c7d2
be a good pushover user and let the user specify a sound
...
- move pushover particulars into User model
- Pushover class rescues errors, don't need to do it from User
2014-01-21 01:21:02 -06:00
joshua stein
700d338b23
unbreak story previews
...
@comments is nil, but there's no point in showing an empty comment
tree anyway
2014-01-20 21:18:03 -06:00
Serge Paquet
5bca469035
enable "reply" function on the "Comments" page
2014-01-20 21:04:54 -05:00
Serge Paquet
79b64c3883
use standard create/update comment routes
2014-01-20 16:52:19 -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
Serge Paquet
02a30c66b1
optimize database queries for "Your Threads" page
2014-01-20 16:44:14 -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
566c1090e8
apply comment_text class to private messages to get nicer formatting
2014-01-14 11:39:56 -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
Serge Paquet
aabe4ceed7
remove redundant "story" variable in comment templates
2014-01-13 02:11:34 -05:00
joshua stein
da560f1da4
search: fix radio button labels
2014-01-13 00:55:36 -06:00
joshua stein
65a9a77104
Merge pull request #92 from srgpqt/filters
...
simplify and optimize Filters controller and template
2014-01-12 22:34:09 -08:00
joshua stein
fcfd472723
don't show invitation queue to new users
...
this is just the link to it though, so new users can still invite
from the queue if they know what they're doing
2014-01-13 00:12:43 -06:00
joshua stein
f1f6b3c7e0
alert the user when submitting a long-ago-submitted story
...
show the user a link to the previous story and let them know they
can submit it again if they want to (just by submitting the form
again)
2014-01-13 00:10:31 -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
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
Conor Mongey
a069749c65
Fix issue #96 . Direct users back to root URL via get instead of post
2014-01-10 23:52:40 +00:00
Serge Paquet
2c906efa7e
simplify and optimize Filters controller and template
2014-01-09 01:44:03 -05:00
joshua stein
cd7cb552e7
story detail: don't mock non-users by showing a discuss link
...
fixes #91
2014-01-08 22:20:56 -06:00
joshua stein
d578482e3b
move story comment counts out of keystore
...
it would be nice to use AR's built-in counter cache, but the
comments count has to reflect something custom so stick with what
was there
2014-01-08 22:20:56 -06:00
joshua stein
9bab78634e
don't show endless comment link pages
...
stop when there are no more comments
2014-01-08 20:42:25 -06:00
joshua stein
40e4c10e26
fix busted PM e-mail notifications
...
do e-mail and pushover deliveries separately, catch and log errors
from each
closes #90
2014-01-08 20:42:24 -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
joshua stein
1452e1c34d
rip out default filtered tags
2014-01-07 11:42:21 -06:00
joshua stein
831b576325
only show invitation queue link if there are any pending
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
Serge Paquet
a46194d1be
add Search#page_count method
2014-01-02 12:16:14 -05:00
joshua stein
cc59b4b475
story guidelines toggler was moved to application.js
2014-01-02 10:10:25 -06:00
joshua stein
50aa8434f9
Merge pull request #59 from imwally/master
...
add story submission guidelines to the edit page
2014-01-02 08:09:05 -08:00
joshua stein
f8f35c6177
Merge pull request #73 from srgpqt/jquery-fixes
...
move inline js from story submission page into application.js
2013-12-29 08:09:54 -08:00
Serge Paquet
3c63f930cd
more jQuery.fn.live fixes for the "submit story" page
2013-12-28 22:17:08 -05: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
0aa330d106
user tree: show new users in green
2013-12-02 10:45:21 -06:00
joshua stein
c6191da912
InvitationRequest: require url (memo) for invitations
...
otherwise validating requests is kind of difficult
2013-12-02 10:44:36 -06:00
joshua stein
f53a39db74
auto-apply slides tag for slideshare.net
2013-11-20 11:39:09 -06:00
Kartik Agaram
da438ce18e
typo in invitation_request_mailer
2013-11-19 20:22:58 -08:00
Kartik Agaram
bd61657d62
typos in invitations/build
2013-11-19 20:21:13 -08:00
joshua stein
4914366ffe
auto link invitiation request memos
2013-10-24 11:16:07 -05:00
joshua stein
0373bcdadb
fix moderation log pagination
2013-10-18 16:05:46 -05:00
joshua stein
aeb25d22b6
add a footer link bar, add /privacy and /about
...
if these templates (ignored by git) are not present, just show some
text rather than raise an error
2013-10-18 15:55:20 -05:00
joshua stein
66f433176a
add an invitiation request queue
...
the user tree is pretty big to look through now, so let users submit
a request for an invitation, which logged-in users can browse and
instantly send invites to
2013-10-18 15:49:20 -05:00
joshua stein
3aa412087a
show story downvote summary to everyone
2013-10-18 14:58:23 -05:00
Anton Nikishaev
5f8ccdaac8
Fix markdown formatting help
2013-08-07 22:15:27 +04:00
joshua stein
249dd85ec3
allow non-logged-in users to define tag filters
...
when not logged in, store the filters in a long-lasting cookie and
do not cache the home page
for that one guy on hacker news that complained about lobste.rs not
having this
2013-08-05 02:19:55 -05:00
joshua stein
f639fd21e5
tweak invitation e-mail subject and text
...
"welcome to <site>" makes it sound like you already got signed up,
say "you have been invited to <site>" instead
2013-08-05 01:03:50 -05: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
Wally
ef217e382c
moved story submission guidelines and toggle js to _form.html.erb
2013-07-18 09:49:36 -04:00
Wally
c385b3241c
added story submission guidelines to edit page
2013-07-17 16:12:42 -04:00
Wally
22302a8cd5
fixed formatting on list and added missing </li> tags
2013-07-17 16:10:51 -04: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
a471eb180a
don't hardcode "Lobsters" and "lobste.rs" everywhere, use Rails.application.{name,domain}
2013-06-30 01:50:23 -05:00
joshua stein
2cdd385126
add front-end code to allow users to toggle mailing list reception
2013-06-30 00:54:03 -05:00
joshua stein
5e357f5684
allow moderators to edit story urls if they ever had one
2013-03-26 12:23:47 -05:00
joshua stein
4cae9d38ae
show the tag description as the tag link title
2013-03-23 21:09:41 -05:00
joshua stein
6c914528c4
tweak position of some html tags
2013-03-17 15:39:48 -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
464b3c3f80
add support for viewing sent private messages
2013-01-24 14:21:22 -06:00
joshua stein
f130dd7ab0
add some js to allow moderators to enter reason when deleting stories
2013-01-07 17:20:41 -06:00
joshua stein
48bdcfd89c
add 144x144 version of apple-touch-icon.png for ipad
...
the logo font is baskerville semi-bold, just for the record
2013-01-04 00:12:44 -06:00
joshua stein
19ba94fd31
don't collapse moderated threads, remove them entirely
2012-12-30 12:11:47 -06:00
joshua stein
f7cac129b4
when comments are moderated, collapse their replies
...
also try to show which moderator deleted the comment and the reason
2012-12-18 21:36:32 -06:00
joshua stein
9cc54edb5b
move avatar url generation into User model
2012-12-16 20:02:02 -06:00
joshua stein
a9e169175b
show story vote summaries to submitters and mods if it has any downvotes
2012-12-08 22:39:06 -06:00
joshua stein
90a57ef8c9
whitespace
2012-12-08 22:39:05 -06:00
joshua stein
ef1b2e9dda
on login and signup page, mention open signup isn't available and link to user tree
2012-12-08 13:14:43 -06:00
joshua stein
ffa9d35477
whitespace
2012-12-08 13:14:33 -06:00
joshua stein
f34607f17f
set meta referrer tag to "always"
...
http://wiki.whatwg.org/wiki/Meta_referrer
lobsters isn't secret, but because it's all behind https, browsers
don't send a referrer header when visiting linked stories that
aren't behind ssl. for site owners, it can be useful to see where a
sudden burst of traffic is coming from and view comments, so force
supporting browsers (currently only chrome) to send the lobsters
referral url.
2012-12-08 13:08:27 -06:00
joshua stein
ad762d233a
rss: comments link must be encoded as well
2012-11-28 15:18:41 -06:00
joshua stein
91b1255d96
story form: auto-apply video tag to vimeo links, too
2012-11-27 11:47:44 -06:00
joshua stein
088084965c
rss: only hide comments link when no url
...
stories with a url but also a description were previously not
getting comments link shown
2012-11-21 22:15:00 -06:00
joshua stein
3e689b1c35
check for show_story first
2012-11-21 22:13:50 -06:00
joshua stein
cb8901473c
add an #invite anchor to the settings url
2012-11-21 22:04:29 -06:00
joshua stein
70f9208a7b
shorten top links to avoid running into each other on small screens
2012-11-21 22:04:29 -06:00
joshua stein
367982adef
whitespace cleanup
2012-11-21 22:04:29 -06:00
wilkie
e37053cea4
Removes link to reply on comment when not on a story page.
...
The reply link does not work on any page that isn't a story page because
it replies on the fact that a comment_form div exists on a page. That
form is the base comment field present on a story page. Therefore,
removing the link when the story is displayed next to the comment
selects for that case easily.
Closes #36 by virtue of removing the link.
2012-11-15 21:25:34 -05:00
joshua stein
0eac1c375a
show user count on user tree page
2012-10-26 17:08:19 -05:00
joshua stein
5ee6c227a3
<> -> < />, add noarchive robots header
2012-10-24 11:53:43 -05:00
Alan P. Laudicina
1ab6f592b6
Wrap long line
2012-10-24 07:03:25 -04:00
Alan P. Laudicina
ba284f7f29
Add default description, which points to comments
2012-10-24 06:57:12 -04:00
joshua stein
b04f3dfe51
rss: set isPermaLink="false" on guid because google reader is stupid
...
closes #25
2012-09-20 19:00:14 -05:00
joshua stein
78a000a0b8
bring back selected tags for editing existing stories
2012-09-20 10:50:19 -05:00
Robert J Samson
7fd75a7f3a
More descriptive method and attribute names
2012-09-19 20:28:09 -04:00
Robert J Samson
5ada55f10d
Add a 'private' attribute to tags to allow for admin / mod specific tags
...
Private tags would allow admins to create tags that only admins could
use, and that regular users could not filter. The best example use case
for this is an 'announements' tag for site announements that all users
should see.
2012-09-19 16:44:57 -04:00
joshua stein
64c6949edf
paginate /comments
2012-09-19 13:40:02 -05:00
joshua stein
2c6eeeca1b
link to /comments in the header
2012-09-19 13:32:52 -05:00
joshua stein
d9bd724c1d
button_to_function is deprecated
2012-09-19 12:37:42 -05:00
joshua stein
0663ea0fed
show how many users are filtering each tag
2012-09-19 12:25:11 -05:00
joshua stein
d5cf5bc4f5
use autofocus attribute for text boxes instead of javascript
2012-09-18 09:44:22 -05:00
joshua stein
40a5f3f8b8
fix back link to page 2, fixes #21
2012-09-17 14:30:41 -05:00
joshua stein
b7e5447c1d
allow embedded images in story text, but still not in comments
2012-09-17 13:24:29 -05:00
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
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
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
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
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
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
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
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