Commit Graph

55 Commits

Author SHA1 Message Date
William Karsten b531a50aa8
Correct an erb html escape (#1164) 2023-04-05 07:22:49 -05:00
William Karsten 5b6b4349ab
Prevent wrap at various zoom levels. Fix #1161 2023-02-17 00:38:59 +00:00
William Karsten c809053168 Change local files and routes to support TomSelect 2022-09-28 08:27:58 -05:00
William Karsten 769e136c8c Update fetchURLTitle() to remove jquery, & remove html script tags 2022-06-30 11:06:47 -05:00
Peter Bhat Harkins 4e96034253 Revert "only load select2 on story submit form"
This reverts commit 71045a52ee.

This only has a small effect on js size and is flaky. Need a significantly
bigger change, like dropping jquery altogether.
2022-05-20 09:17:46 -05:00
Peter Bhat Harkins 71045a52ee only load select2 on story submit form
Saves me seeing a distracting 'event' on every element on the page. The latest
version of select2 (2021-01-23) is entirely rewritten so I don't want the risk
of an update.
2022-05-11 09:06:18 -05:00
Andrew 4ca6d1603d
Use <details> instead of js for story guidelines (#878) 2020-07-14 00:38:16 +00:00
Peter Bhat Harkins 1b55c6fc36 attempt to reduce story text misuse
Makes it a less prominent element on the page and instructions darker.
Recently a lot of submitters have been using the box for comments.
2020-06-20 07:46:41 -05:00
Peter Bhat Harkins 1a185f28d8 improve placeholder help text 2020-02-05 09:17:41 -06:00
Alan Post dd1ac8774b typo: s/recieve/receive/ on the /stories/new slug. h/t jjuran. 2019-05-04 16:36:55 -06:00
Peter Bhat Harkins 62d4121aaf Merge branch '161-follow-story' 2019-05-04 14:04:33 -05:00
Abdallah Samman 028065f42f notify story author about comment replies
Merge #616
2019-05-04 12:31:53 -05:00
Peter Bhat Harkins 4e653a9896 show all suggested tags/titles, lift work from view to db
Also extracted tag_link helper to dedupe that snippet of repeated code.
2019-03-13 08:46:51 -05:00
Peter Bhat Harkins bac3fe9179 hint hint 2018-12-05 08:15:12 -06:00
Brian Gerson 5eb0a40aee Surface duplicate stories on submission + display 2018-11-07 08:42:59 -06:00
Peter Bhat Harkins 8cf5eefcef guideline hint when title has separator
Closes #523 and (hopefully) eliminates a chore for me.
2018-08-14 10:26:17 -05:00
Peter Bhat Harkins 44d7126910 mod dashboard: list most-downvoted commenters by stddev 2018-07-10 11:37:28 -05:00
Peter Bhat Harkins c3fa28c494 Story description is not a summary 2018-04-24 19:38:59 -05:00
Jack Klika 22ed4f4663 Added link to tags list on story submission page 2018-04-18 15:22:47 -05:00
Peter Bhat Harkins 33b333c7ed note to rm blog/author from titles 2018-02-07 18:39:54 -06:00
Andrew Shu fe907c4c96 submit: fix resubmitting old URLs (#441)
also now only requires hitting Submit a single time,
instead of twice, if you already see the AJAX warning
2018-01-10 07:24:58 -06:00
Andrew Shu c44017ce88 story: smaller check_already_posted method
and cleanup style
2017-10-05 19:14:42 -07:00
Andrew Shu dc2c52e668 story: check for duplicate URL on blur 2017-10-05 18:55:33 -07:00
joshua stein 9d99801ee6 don't disable autocomplete on free-text fields 2017-04-11 08:50:19 -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
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 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 b21f96cb1a story submission: make tag select box match tag description too
fixes #247
2015-12-09 11:51:15 -06:00
joshua stein d4f375ce11 story submission bookmarklet: open to lobste.rs in a new tab 2015-10-24 18:25:07 -05:00
joshua stein 3439b93b12 when editing a story, show suggested titles and tags 2015-10-15 10:23:25 -05:00
joshua stein e940601a2f start on automated story title and tagging suggestions
Rather than keep "poorly titled" and "poorly tagged" as reasons for
flagging, make the user do the work of suggesting new ones.

At some point, suggested taggings will flip to real taggings once
they reach a certain count (to be determined later).  This also has
to take into account tagging sets that don't contain current tags,
for when they need to be removed.

For titles, I'm not yet sure how to handle this in an automated
fashion except for the (probably rare) case of multiple users
submitting the same exact thing, but at least collect them for now.

Issue #207
2015-10-14 20:32:24 -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
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 2c3b155862 disclose per-tag hotness modifiers 2015-01-06 17:31:45 -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
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 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 d75242f646 tweak story submission guidelines 2014-02-21 10:57:30 -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 cc59b4b475 story guidelines toggler was moved to application.js 2014-01-02 10:10:25 -06:00
Wally ef217e382c moved story submission guidelines and toggle js to _form.html.erb 2013-07-18 09:49:36 -04: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 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 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 41b6d7620a add some post guidelines 2012-08-24 11:42:23 -05:00
joshua stein e0da3a7039 little spacing tweaks 2012-08-24 11:41:36 -05:00