Commit graph

888 commits

Author SHA1 Message Date
Carl Chenet f1677cc783 translate flash info about deleted messages. fixes #17 2016-11-24 14:12:47 +01:00
Carl Chenet c7f13fc9b8 fix typo. fixes #18 2016-11-24 11:57:57 +01:00
Carl Chenet fc2441dda5 fix type. fixes #19 2016-11-24 11:56:57 +01:00
Carl Chenet 66a1913735 translate invitations_controller 2016-11-24 11:52:54 +01:00
Carl Chenet 42e374f3c1 fix missing translation for invitations_controller. fixes #22 2016-11-24 11:30:08 +01:00
Carl Chenet 8ad2ab80da fix missing translation. fixes #27 2016-11-24 11:20:51 +01:00
Carl Chenet 63a2e0ab6b set traffic bubble on the main logo.fixes #28 2016-11-24 11:14:12 +01:00
Carl Chenet 8e60bc3829 fix flash message for updating filters. fixes #25 2016-11-23 17:39:59 +01:00
Carl Chenet 49360a8c69 fix translation for license in privacy section. fixes #26 2016-11-23 17:34:57 +01:00
Carl Chenet 519a89230a i18n of current traffic. fixes #29 2016-11-22 17:53:11 +01:00
Carl Chenet fac9efc706 translate suggest view and controller. fixes #6 2016-11-21 11:59:38 +01:00
Carl Chenet 1650a91851 translate possible uses of markdown. fixes #5 2016-11-18 16:05:51 +01:00
Carl Chenet 88c82096be translate title of the page messages sent. fixes #3 2016-11-18 15:10:43 +01:00
Carl Chenet 29990e9b91 add logo 2016-11-17 16:08:35 +01:00
Carl Chenet 1bb466c4d9 add link to the logo 2016-11-17 16:08:02 +01:00
Carl Chenet ff43374367 add about and privacy texts 2016-11-17 15:55:58 +01:00
Carl Chenet ba3af3df0b add links for blog, twitter and d* 2016-11-17 15:48:20 +01:00
Carl Chenet 6e333afc76 i18n of controller/messages_controller 2016-11-15 17:37:01 +01:00
Carl Chenet 9b22508225 i18n of controller/filters_controller 2016-11-15 17:34:00 +01:00
Carl Chenet dff09bbc12 i18n of controller/search_controller 2016-11-15 17:30:30 +01:00
Carl Chenet a587e2d32c i18n of controllers/comments_controllers 2016-11-15 17:26:01 +01:00
Carl Chenet 8def5c46da fix bad path to stories_controller 2016-11-15 17:14:37 +01:00
Carl Chenet 516edc5038 i18n of controllers/stories_controllers 2016-11-15 17:11:32 +01:00
Carl Chenet 286f25e712 i18n of controllers/home_controllers 2016-11-15 17:05:42 +01:00
Carl Chenet 22afc46e5e i18n of messages/show 2016-11-15 16:16:22 +01:00
Carl Chenet b38e57ac8c i18n of messages/index 2016-11-15 15:52:45 +01:00
Carl Chenet 9aec18155b i18n of users/{list,show,tree} 2016-11-15 14:40:55 +01:00
Carl Chenet 74052c7637 i18n of login/set_new_password view 2016-11-10 15:29:51 +01:00
Carl Chenet a212829528 i18n of login/forgot_password view 2016-11-10 15:20:07 +01:00
Carl Chenet 29978d3ce7 fix typo 2016-11-10 15:11:57 +01:00
Carl Chenet d6858b320d i18n of login/index view 2016-11-10 15:06:52 +01:00
Carl Chenet 63a7c3402d fix variable length 2016-11-10 15:06:23 +01:00
Carl Chenet 26d909e58f i18n of stories/edit 2016-11-10 12:10:21 +01:00
Carl Chenet ef03140149 i18n of stories/listdetail view 2016-11-10 11:47:41 +01:00
Carl Chenet 588ab40e7d i18n of comment/_comment view 2016-11-09 17:25:40 +01:00
Carl Chenet 3e3ef423f2 i18n of comments/_commentbox 2016-11-09 16:10:40 +01:00
Carl Chenet 06c58f136b i18n of stories/_form view 2016-11-09 15:50:22 +01:00
Carl Chenet c751792f9f i18n of stories/new view 2016-11-09 11:36:01 +01:00
Carl Chenet b2cbdf4521 i18n of search view 2016-11-09 11:24:21 +01:00
Carl Chenet 5b86bab8ce i18n of home view 2016-11-09 10:35:47 +01:00
Carl Chenet dd255f15be i18n of filters view 2016-11-08 17:46:43 +01:00
Carl Chenet cee4920216 Merge branch 'lobsters313' 2016-11-08 16:09:17 +01:00
joshua stein 335e1fd0c4 User: experiment with a minimum karma required to downvote comments 2016-11-03 16:20:39 -05:00
joshua stein de4df43c7c not using tor anymore, add some more bot UAs 2016-11-03 16:19:39 -05:00
Peter Bhat Harkins d8e31fb000 Auto-tag Twitch as video (#324) 2016-10-31 14:30:42 -05:00
joshua stein ef0601f65b remove comment downvoting 2016-10-30 13:10:49 -05:00
joshua stein cf6ac62827 decrement traffic faster 2016-10-30 13:10:29 -05:00
joshua stein 5c2437d645 css: bump up font sizes a hair 2016-09-22 13:36:26 -05:00
joshua stein 955c52b5bb clamp pagination
avoids a sql error when trying to offset a huge number
2016-08-19 00:00:18 -05:00
joshua stein b5f6ab36a8 don't count deleted comments towards user's comment count 2016-08-19 00:00:18 -05:00
joshua stein c602b01965 Story: revert cb300450f, using newest created_at of all merged
This behavior is confusing.
2016-08-19 00:00:18 -05:00
Eric Case 108baedb39 Typo fix: "has mention" -> "mentioned" (#322) 2016-08-16 12:08:12 -05:00
SiDevesh 66833bdba5 Fix error when a tag has no stories yet (#321) 2016-08-16 12:07:57 -05:00
Carl Chenet 7af03b4ff4 i18n of invitation form view (used by settings view) 2016-07-09 14:32:34 +02:00
Carl Chenet 04777f3e6f i18n of settings controller 2016-07-09 14:31:32 +02:00
Carl Chenet 160579bfa2 i18n of settings view 2016-07-09 14:31:09 +02:00
chaica 9506b1ce10 I18n moderations (#301)
* translate moderation view, controller and model

* support for i18n in the moderation controller

* support for i18n in the moderation model - use interpolation for variables inside strings

* support for i18n in controller model - localize time and date string format for printing time and date of the moderation action
2016-07-05 10:02:14 -05:00
joshua stein 6a637dfe83 signup: also send total users to countinual now that they're being tracked 2016-06-28 09:53:44 -05:00
joshua stein 68a9a871ea user profile: inactive users don't need further qualifiers 2016-06-22 15:30:44 -05:00
joshua stein 13529cf296 comment: move 'on:' label before score summary 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
joshua stein b2182f5ca7 Story: in checking for previous duplicates, fetch moderated ones
this will block a moderated story from being submitted again inside
the window

closes #291
2016-06-22 15:30:44 -05:00
joshua stein cb300450fb Story: use newest created_at of all merged stories for calculating hotness
we already take their points, but if they have a much newer
created_at and we've been moved off the front page, points won't
save us.  use their created_at to be fresher.

should fix #300
2016-06-22 15:30:44 -05:00
joshua stein d8c7f98cfd prevent users with much negative karma from submitting new stories 2016-06-22 15:30:44 -05:00
joshua stein ac3347b9cc 1 in 2 million! 2016-06-18 19:25:57 -05:00
joshua stein b10da3e495 cleanup broken html for new message count, add pluralized version 2016-06-14 11:18:25 -05:00
joshua stein 30b8c18e3e css: make highlighted comment background match tags 2016-06-13 11:05:30 -05:00
joshua stein b391a8d527 speed up traffic decrementer 2016-06-10 16:35:32 -05:00
joshua stein 884208a7b7 fix hat request link from locale fallout 2016-06-10 16:35:24 -05:00
joshua stein 3bebdb80a7 User: clear deleted_at when unbanning, since we probably set it 2016-06-10 16:31:13 -05:00
joshua stein 71fb5bdaf3 t(), remove bbs link 2016-06-10 16:28:00 -05:00
chaica c962520680 I18n support for layout/application.html view (#294)
* i18n support for layout/application.html view

* i18n english strings for layout/application.html

* i18n french strings for layout/application.html
2016-06-10 17:24:02 -04:00
joshua stein 30166dd120 Merge pull request #293 from nyanpasu/master
Allow admin/moderator to disable user from inviting
2016-06-10 17:20:48 -04:00
joshua stein d3a826d80e Story: fix saving old stories with inactive tags 2016-06-01 14:36:09 -05:00
joshua stein ba8a39ee93 new story: re-order guidelines in order that i have to deal with them 2016-06-01 14:36:09 -05:00
joshua stein 647d7d5da8 new story: make bookmarklet look less like a button
closes #276
2016-06-01 14:36:09 -05:00
nyanpasu 99f78ad10c Send pm instead of email on invite disable 2016-05-19 09:01:27 +08:00
nyanpasu 19526c2d3f Don't delete user after disabling invites 2016-05-19 09:01:27 +08:00
nyanpasu 39b911963e Remove redundant return 2016-05-16 11:55:16 +08:00
nyanpasu aa0ffeb37b Allow admin/moderator to disable user from inviting 2016-05-16 02:40:46 +08:00
joshua stein d1c9aeaaa3 Story: make title_as_url output shorter urls 2016-05-04 14:40:06 -05:00
joshua stein 4c5cf4a542 require a minimum karma to suggest story title/tag suggestions 2016-05-02 17:57:19 -05:00
joshua stein 98ab3796b3 add simple @titles for about, chat, privacy 2016-05-02 17:56:16 -05:00
David R. MacIver 0f38779d7a Add RSS and JSON feeds for newest by user 2016-04-29 17:41:14 +01: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 db3c62597c strikethrough in markdown does not work, so don't advertise it
but it's just temporary, so comment it out until issue #288 is
resolved
2016-04-27 12:50:31 -05:00
joshua stein b204775e8f Story: don't allow a story to be merged into itself 2016-04-25 13:24:50 -05:00
Peter Bhat Harkins b886ea1413 Clean up mysqlism (booleans are also usable as int(1)) (#285)
Clean up mysqlism (booleans are also usable as int(1))
2016-04-23 21:20:10 -04:00
Peter Bhat Harkins 540095667b Use asset_path in select2 image URLs 2016-04-15 21:34:14 -05:00
joshua stein 0e90347956 stories: include url to big icon in twitter card 2016-04-14 11:18:44 -05:00
joshua stein f05cb03b0c Merge pull request #283 from pushcx/chat-default
Don't 500 if someone hasn't added a chat template
2016-04-13 10:00:30 -05:00
Peter Bhat Harkins 01f1a71a18 Remove unused assets 2016-04-13 09:10:06 -05:00
Peter Bhat Harkins bfe7a67156 Don't 500 if someone hasn't added a chat template 2016-04-12 21:34:04 -05:00
joshua stein 239379ea51 shrink TRAFFIC_DECREMENTER 2016-04-12 11:49:36 -05:00
joshua stein 94ce8cbcc0 clarify hat rules 2016-04-12 11:49:10 -05:00
joshua stein a7d426581d Story: shrink hotness window to 22 hours 2016-04-12 11:48:47 -05:00
joshua stein 3b14a9ba54 hats: sort hat groups without case sensitivity 2016-04-06 19:20:25 -05:00
joshua stein a694b2a499 css: nowrap on hats, splitting/wrapping them looks very weird 2016-04-06 19:15:45 -05:00
joshua stein 92117e9947 hats: clear button 2016-04-06 19:15:31 -05:00
joshua stein 2e1f8d9f33 hats: don't require a logged-in user to browse hats
closes #282
2016-04-06 15:23:22 -05:00
joshua stein 1fb6eb6eb2 drop SUGGESTION_QUORUM to 2 2016-04-06 13:22:46 -05:00
joshua stein d88b03b4b3 add some more bot UAs 2016-04-06 13:22:37 -05:00
joshua stein a5928b675d implement hats list and request/approval system
closes #281
2016-04-06 13:19:46 -05:00
joshua stein e3750172c6 Revert "Prettier messaging"
This reverts commit c6d6413ff7.

I don't really like this.
2016-04-05 19:31:13 -05:00
wally fa39374d30 Fixes #272. Add runSelect2 method to call after previewStory.
The select2 code failed to run after previewing a story
submission. This fix creates a new method that can be called upon
completion of the previewStory load() call.
2016-04-05 16:10:31 -04:00
crertel c6d6413ff7 Prettier messaging
Put compose message at the top
2016-04-01 21:20:21 -05:00
joshua stein 8a62b530aa apply a basic style to #l_holder
lobste.rs is overriding this in local.css but at least other sites
can get a basic thing there.

mention in README that local css should go into a directory.
2016-03-31 14:24:57 -05:00
joshua stein c77f1d7269 rm a css file that was only for the fake hn interface years ago 2016-03-29 09:44:15 -05:00
joshua stein e85afa2425 StoryRepository: simplify 2016-03-28 17:14:55 -05:00
joshua stein 437124da4e StoryRepository: make positive_ranked honest 2016-03-28 17:14:43 -05:00
joshua stein 7b5aad85d6 css: move some lobsters-specific things to local 2016-03-24 15:13:50 -05:00
joshua stein d9ff6eb188 bring in stylesheets/local/* which are ignored in git 2016-03-24 15:08:10 -05:00
joshua stein 41ba0b20dd Hat: add css class of hat_(actual_hat_name) 2016-03-24 14:58:06 -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 e515caaea1 don't increase traffic for tor users 2016-03-22 14:07:39 -05:00
joshua stein bd1ffe171b settings: link to /threads, put delete at bottom, fix typo 2016-03-09 10:00:14 -06:00
joshua stein 2e1cf36ee0 css: apparently safari still doesn't support min-resolution
add webkit-specific thing to show high-res L logo

closes #267
2016-03-02 09:41:52 -06:00
joshua stein 192a6c8a02 give up on "discuss"
closes issue #265
2016-02-21 09:43:17 -06:00
joshua stein 869f83e285 fix @user vs @showing_user in unban section 2016-02-11 09:59:05 -06:00
joshua stein 2b5ba63087 Comment: if user is banned, make gone text reflect that 2016-02-10 16:12:11 -06:00
joshua stein d66648ff68 moderations: show comment username to avoid a click through 2016-02-10 16:11:34 -06:00
joshua stein 28bbc9c8f7 moderators have to provide a reason for deleting others' comments 2016-02-10 08:57:38 -06:00
joshua stein 3afe1538f8 stories: show archive link to archive.is 2016-02-10 08:39:42 -06:00
joshua stein c3b62cc166 User#grant_moderatorship_by_user! 2016-02-10 08:39:10 -06:00
joshua stein e0b7c25758 comments: show usernames in vote summaries to moderators 2016-02-10 08:38:28 -06:00
joshua stein 61b08c7dee story list detail: flip flop again, show 'no comments' for non-users
I've changed this a few times because I didn't want to show
"discuss" to non-users, but they at least need a link to the story
to copy, so show a link with "no comments" to them.
2016-02-02 11:56:10 -06:00
joshua stein 0ec9c3a2ac turn on avatars by default 2016-01-21 11:59:06 -06:00
joshua stein f53aced518 add a comment explaining why this code is so verbose 2016-01-21 11:58:54 -06:00
joshua stein d10f567a26 Search: just use Riddle.escape, sorry boolean 2016-01-21 11:58:54 -06:00
joshua stein 200e4f7dd2 css: remove white background colors that were driving me nuts 2016-01-12 16:39:23 -06:00
joshua stein ffa1b879da use span tag for time_ago_in_words_label 2015-12-31 09:15:02 -06:00
joshua stein 13df4537f3 make merged story points count towards the winning story
but not take them into its score, just its hotness value.  this way
when a new winning story takes over an upvoted story, the hotness
value will be near the losing one.
2015-12-31 09:14:09 -06:00
joshua stein 9e238647e0 print any meta tags in @meta_tags in layout, add twitter ones for story pages 2015-12-31 09:13:34 -06:00
joshua stein 5129733b04 when showing another user's threads, don't include story threads 2015-12-18 10:51:01 -06:00
J. Ryan Stinnett 4c3c6094d0 Remove white background from .legend 2015-12-18 09:33:48 -06:00
joshua stein ec92478bc9 use time_ago_in_words_label to show missing 'ago' part
pr #252
2015-12-16 12:36:23 -06:00
joshua stein ce8a148cbe Story: don't count comments towards hotness when tag hotness mods < 0 2015-12-15 12:35:18 -06:00
joshua stein de176d80dd story tags: sort by exact tag matches first, then description matches
select2 has sortResults in newer versions but so much crap changed
there that it's easier to just hack in support for this here

fixes #251
2015-12-14 10:44:28 -06:00
joshua stein 46ebed367d Comment, Story: crank MAX_EDIT_MINS to 6 hours 2015-12-09 11:52:48 -06:00
joshua stein b21f96cb1a story submission: make tag select box match tag description too
fixes #247
2015-12-09 11:51:15 -06:00
joshua stein 850131873b link to /chat when talking about requesting invites
issue #244
2015-12-07 13:17:11 -06:00
joshua stein 6b636ac8c5 add setting to show threads on a user's submitted stories in 'Your Threads'
closes #231
2015-12-07 12:27:09 -06:00
joshua stein 3850fa7d54 Story: reduce suggestion quorum to 3 2015-12-07 12:27:09 -06:00
joshua stein 9f9e608fc8 fix fetched_attributes fallout 2015-12-03 14:57:33 -06:00
joshua stein 4e94bc9e29 Comment: for emailed comments, show that in the message id used for mailing list 2015-12-02 13:46:19 -06:00
joshua stein 5d8c7f7167 make time_ago_in_words_label use a custom time_ago_in_words
"36 hours ago" is more useful than "1 day ago", so tweak the times
used to jump to the next divisor
2015-12-02 13:46:19 -06:00
joshua stein c05f526a57 make story description icon a link to the story page, revert c1d1a44472
i don't like showing "discuss" to logged out users, and now that we
have a story description icon that can link to the story text, back
out the change that made logged out users see discuss when they
can't discuss it.
2015-12-02 13:46:19 -06:00
joshua stein 45b63935af Story: move fetched_* stuff into a single fetched_attributes 2015-12-02 13:46:19 -06:00