joshua stein
b1b463f1bb
some root_url fallout
2015-01-02 17:47:26 -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
ad272a8f11
2015!
2015-01-01 18:54:49 -06:00
joshua stein
439f5702ee
show a byline for for merged stories
2015-01-01 18:54:26 -06:00
joshua stein
0b85f3db23
Merge remote-tracking branch 'origin/pr/184'
2015-01-01 10:32:57 -06:00
joshua stein
3e5473229d
fix code line height in comments
2015-01-01 10:25:36 -06:00
joshua stein
c151fbeeb8
better tag hotness mod calculation
2015-01-01 10:25:14 -06:00
joshua stein
1cc16ecfbf
tweak code formatting
2014-12-15 15:06:53 -06:00
joshua stein
606f5c9849
experiment with factoring comment scores into story hotness
...
might keep an active story alive on the front page and bury a story
with a "comment graveyard"
2014-12-15 15:06:53 -06:00
joshua stein
73f93ba09d
cater to chrome on android
2014-12-15 15:06:53 -06:00
joshua stein
5c1cc0ae38
Hat: if link isn't a url, don't href to it (probably shouldn't call it link then)
2014-12-15 15:06:53 -06:00
joshua stein
0ba64f444a
Merge pull request #185 from srgpqt/fix-cancel-comment
...
Fix cancel button in comment forms
2014-12-15 15:06:15 -06:00
Serge Paquet
a1f5052f99
fix cancel button in comment forms
2014-12-14 01:24:18 -05:00
Serge Paquet
aa326da6d8
remove deprecated configuration for implicit join references
2014-12-14 00:09:15 -05:00
Serge Paquet
b7b93d0bf9
update to rails 4.1.8
2014-12-13 23:47:44 -05:00
Serge Paquet
346fec4ef9
update to thinking-sphinx 3.1.2
2014-12-13 23:43:20 -05:00
joshua stein
ddb9215aa0
log a moderation when hats are granted, since we're open and all that
2014-11-15 09:52:29 -06:00
joshua stein
31d4e97858
implement hats
...
https://lobste.rs/s/bkeYe9/about_lobsters/comments/ZD2tL3#c_ZD2tL3
2014-11-14 14:12:29 -06:00
joshua stein
4b0caa2752
fix display of comment box after editing and posting
...
should close #178
2014-11-14 14:02:16 -06:00
joshua stein
d6447ac249
comment view: ignore multiple clicks on "reply" link
2014-11-14 13:49:00 -06:00
joshua stein
f161af71b1
minor spacing nit
2014-11-14 12:48:00 -06:00
joshua stein
5b94406640
Comment: include page anchor in urls
2014-11-14 12:46:09 -06:00
joshua stein
c95ac10ad9
show green usernames for new users in story lists too
2014-11-07 13:42:33 -06:00
joshua stein
b0b9654a29
use https for the root route according to config.force_ssl
2014-10-18 22:26:56 -05:00
joshua stein
9e8b89be1c
cast story.{upvotes,downvotes} to signed on mysql, integer on postgres
...
old mysql doesn't support 'cast(1 as integer)', but new/mariadb does
postgres doesn't support 'cast(1 as signed)'
should fix #145
2014-10-06 14:07:53 -05:00
joshua stein
8b3e62d010
move setting of default route host to Rails.application.domain to after initialization
...
fixes #177
2014-10-03 18:59:06 -05:00
joshua stein
98cd470c74
set the default site domain and name to examples, like in the README
2014-10-03 17:19:27 -05:00
joshua stein
5497fbd7bb
allow disabling public invitation requests through a setting
2014-10-03 17:19:00 -05:00
joshua stein
b7ede71b31
on home page, show site title instead of "Home"
2014-10-03 17:17:46 -05:00
joshua stein
09bd0026d3
ignore a story's submitter's comments when calculating hotness
2014-09-16 10:53:25 -05:00
joshua stein
d5474de775
add short ids into search indicies
2014-09-12 10:42:22 -05:00
joshua stein
dfe6db4849
revert 85cb7c20
, give up on planet rss aggregation
2014-08-31 20:35:41 -05:00
joshua stein
962b7e8d59
add per-tag story hotness modifiers
2014-08-31 20:27:54 -05:00
joshua stein
e252d2d66e
StoryRepository: positive_ranked should end at -1
2014-08-25 17:57:26 -05:00
joshua stein
c4b6772828
update to rails 4.0.8 for no particular reason
2014-08-17 19:25:02 -05:00
joshua stein
6329041ee8
tweak page title for /upvoted
2014-08-17 19:10:32 -05:00
joshua stein
e3f6a4edd8
Merge pull request #163 from walle/upvoted_fix
...
add /upvoted page to show a logged-in user's upvoted stories
2014-08-17 19:09:04 -05:00
joshua stein
64bdb6f446
Merge pull request #167 from walle/issue_140
...
fix some after-comment issues
2014-08-17 19:07:46 -05:00
joshua stein
ebdea913bf
Merge pull request #168 from walle/issue_128
...
Add cancel button to comment editing.
2014-08-17 19:05:02 -05:00
joshua stein
13de40df34
order newest stories by id, not created_at
...
same order (most likely) but id has an index on it and created_at
will need a full table scan
2014-08-17 18:58:45 -05:00
joshua stein
ea2fa1b177
Merge pull request #166 from walle/issue_165
...
fix ordering of newest stories by user
2014-08-17 12:56:01 -05:00
Fredrik Wallgren
2ffe322f64
Rename by_user to newest_by_user and sort accordingly.
2014-08-17 14:18:23 +02:00
Fredrik Wallgren
ee8b50f9c0
Add cancel button to comment editing.
...
This should fix issue #128 .
2014-08-16 18:37:36 +02:00
Fredrik Wallgren
9a774d082d
Let the comment form remain when posting a top-level comment.
2014-08-16 16:47:24 +02:00
Fredrik Wallgren
94716a0dcb
Fix comment preview length bug.
2014-08-16 16:27:11 +02:00
Fredrik Wallgren
ab8f8f3a72
Add upvoted route.
...
Upvoted route shows all stories a logged in user have upvoted
in reverse chronological order, latest upvote first.
It is not shown in the gui, but reachable at /upvoted.
2014-08-16 00:27:18 +02:00
joshua stein
bdbfedfb23
for normal requests to /login, save the referrer and redir back there
...
properly closes #164
2014-08-08 10:31:06 -05:00
joshua stein
243b29240a
when redirecting to /login, save the url and params to redirect back to
...
closes #164
2014-08-08 10:16:06 -05:00
joshua stein
85cb7c2057
first stab at planet rss aggregation
...
could probably use a prettier layout and auto-posting a weblog url
to the main site (carrying tags)
2014-08-03 22:07:57 -05:00
joshua stein
8d17638085
update README to reflect secret_key_base change in rails
2014-08-03 22:07:57 -05:00