Commit graph

1113 commits

Author SHA1 Message Date
Andy Zhao
4e120b8a8e Add more logging to sign in failures (#2038)
* Actually redirect when rescuing an error

* Use inspect to view class as string

* Use a slightly more descriptive flash message
2019-03-12 16:33:10 -07:00
Andy Zhao
be8e139e3e Fix charts and add nav buttons (#2044)
* Add navigation links for pro dashboard

* Move styles to stylesheet

* Use the correct dates for charts
2019-03-12 13:31:00 -07:00
Andy Zhao
1922a55739 Add initial charts implementation to pro dashboard (#2037)
* Refactor and optimize article ids a bit

* Add chartJS to package.json

* Add new queries for charts

* Add past week charts for rxns and comments

* Use real data oops

* Round followers percent to 2 decimals

Co-Authored-By: Zhao-Andy <andyzhao.zhao@gmail.com>

* Round all percentages to 2 decimals

Co-Authored-By: Zhao-Andy <andyzhao.zhao@gmail.com>
2019-03-12 10:21:12 -07:00
James Turner
a9254eac40 Fix typo in surrogate key header (#2013) 2019-03-11 17:40:45 -04:00
Ben Halpern
ecb9f6da3d
Remove some hardcoded shecoded stuff (#2011) 2019-03-08 18:08:48 -08:00
David Celis
1ceda51e88 Add xoxo.zone to the allowed Mastodon instances (#2009) 2019-03-08 16:00:02 -05:00
rhymes
3c6a7d4574 Display comment published timestamp according to user's locale (#1970) 2019-03-08 15:19:37 -05:00
HKrogstie
060c82aa32 Fix timeAgo's edge-case (#2002) 2019-03-08 13:07:23 -05:00
Ali Spittel
2a9421bf4b Update shecoded.html.erb (#2005) 2019-03-08 12:31:05 -05:00
rhymes
ca79dac1bc Fix sidebar widget header for she coded (#2004) 2019-03-08 12:26:53 -05:00
Ben Halpern
27662eb924
Ben/shecoded tweaks (#2007)
* A few shecoded tweaks

* Refactor code
2019-03-08 08:16:10 -08:00
Ben Halpern
cd36d097ca
Fix social card aspect ratio problem (#2006) 2019-03-08 07:12:53 -08:00
Ben Halpern
138278462a
Add shecoded sidebar/homepage decorations (#2003)
* Add shecoded sidebar/homepage decorations

* Add additional functioanlity to /shecoded

* Fix typo
2019-03-08 04:47:31 -08:00
Ben Halpern
8149a72efb
Nevertheless, She Coded (#2000) 2019-03-07 18:52:09 -08:00
Gabriel Lebec
5626fbe622 Fix runkit's strict preamble (#1938) 2019-03-07 16:41:14 -05:00
Ben Halpern
825aa9be91
Add page_view model (#1985)
* Add page_view model

* Uncomment DJ routes

* Add time on site max and don't update article page views every time
2019-03-07 11:53:33 -08:00
Mikhail Korolev
7f94b2c2e5 Clean relative paths for both anchors and images in GitHub liquid embeds. Fixes #1976 (#1987) 2019-03-07 07:38:59 -08:00
Glenn Carremans
cb7ee46e35 Fix Mixed Content error in O RLY Parody Book Generator (#1993)
* Fixed image not loading + hide invalid gif

* Replaced other URLs with HTTPS
2019-03-07 07:10:58 -08:00
Andy Zhao
5c116c4881 Update tag admin page(#1990) 2019-03-06 14:28:30 -05:00
Ben Halpern
a17cfe7d33
Add time ago to recent posts in feed (#1981)
* Add time ago to recent posts in feed

* Modify time details
2019-03-05 13:40:27 -08:00
Ali Spittel
0c7690333b change media query to 950 instead of 800px (#1983) 2019-03-05 11:49:15 -08:00
Andy Zhao
d94f11fbf7 Add ability to add pro role to internal (#1980)
* Add ability to add pro role in internal

* Remove debug statement
2019-03-05 10:44:56 -08:00
Ben Halpern
3f25d52aba
Adjust rankings to squash lingering popular stuff (#1982) 2019-03-05 10:43:40 -08:00
Conlin Durbin
14beb68fd3 Add new gifs to random_gif.rb (#1944)
* Add new gifs to random_gif.rb

* Update app/labor/random_gif.rb

Co-Authored-By: wuz <conlindurbin@protonmail.com>
2019-03-05 08:09:06 -08:00
Anna Buianova
0ac8eb1f73 Make less queries when displaying articles flare tags (#1957)
* Make less queries when displaying flare tag

* Make less sql queries to display articles flare tags
2019-03-05 07:27:51 -08:00
Ben Halpern
e491cf1f65
Allow non-logged-in proper redirect for template posts (#1977) 2019-03-04 15:50:36 -08:00
Ben Halpern
b271e96965
Add shecoded social preview template (#1975) 2019-03-04 13:18:32 -08:00
Ali Spittel
99f2383ded update shecoded copy (#1974) 2019-03-04 12:42:06 -08:00
Ben Halpern
fd83b33603
Add shecoded template to v2 (#1972) 2019-03-04 12:41:37 -08:00
Ben Halpern
8d0f0946a0
Basics of pro dashboard (#1971) 2019-03-04 12:10:09 -08:00
Ben Halpern
7f37d88ce7
Add shecoded meta tags (#1969) 2019-03-04 08:54:31 -08:00
Ben Halpern
263b698686
Add shecoded page (#1968)
* Add shecoded page

* Fix copy
2019-03-04 07:50:49 -08:00
Anna Buianova
854c7a773c Rubocop fixes (#1966) 2019-03-04 06:18:09 -08:00
Ben Halpern
044b088d4f
Switch satellite view to any: true for tags (#1956) 2019-03-03 18:55:39 -08:00
Ben Halpern
f280d9e266
Fix a couple things and modify dev digest logic (#1954) 2019-03-03 18:25:39 -08:00
Steve Layton
3cc0f27eb3 Remove stray forward slash in RSS feed builder (#1943)
closes #1942

- removed stray `/` from lines 17 and 18.
2019-03-02 07:50:57 -08:00
Dmitrii Krasnov
9375d2436f Fix articles feed not filtering articles by user/organization (#1941)
* Fix articles feed not filtering articles by user/organization
fix #1940

* add specs for articles fetching in articles#feed controller action
2019-03-02 07:48:55 -08:00
Glenn Carremans
bcce614a80 Last general linting sweep (#1947)
* Fixed HTML errors in /app/views/additional_content_boxes

* Fixed indentation

* Fixed linting error in /app/views/comments

* Fixed indentation in /app/views/html_variants

* Fixed HTML errors + Fixed indentation in /app/views/internal

* Fixed HTML errors + Fixed indentation in /app/views/layouts

* Fixed indentation in /app/views/mailers

* Fixed indentation in /app/views/moderations

* Fixed HTML errors + Fixed indentation in /app/views/notifications

* Fixed HTML errors in /app/views/pages

* Fixed HTML errors + Fixed indentation in /app/views/social_previews

* Fixed indentation in /app/views/stories

* Fixed indentation in /app/views/stripe_subscriptions

* Fixed indentation in /app/views/tags

* Fixed indentation in /app/views/users
2019-03-02 07:47:14 -08:00
Pavel Sušický
40e6078a32 add gifs to random_gif.rb (#1945) 2019-03-02 07:21:43 -08:00
Ben Halpern
c93bc48010
Fix issue with boosted article in email digest (#1936)
* Adjust email digest

* Fix for missing user.experience_level

* Fix direction of greater than

* Adjust tests for new criteria
2019-03-01 13:51:06 -08:00
Andy Zhao
b157190ef0 Add missing data for org milestone notifications (#1939)
* Remove duplicate line

* Add missing json_data for org notifications
2019-03-01 13:42:38 -08:00
Andy Zhao
8b8dbd0172 Add Milestone Notifications (#1920)
* Test milestone notifications

* Add initial milestone notifications

* Add extra milestone goalposts

* Move send reaction milestone

* Use proper twilio-video package version

* Add random giphys gifs to milestones

* Make images responsive and add addl gifs

* Add guard statement for older articles

* Update app/views/notifications/_milestone.html.erb

Link to Giphy page instead of source page

* Generate gifs via class and factor in aspect ratio

* Add border radius to gifs

Co-Authored-By: Zhao-Andy <andyzhao.zhao@gmail.com>
2019-03-01 12:25:45 -08:00
Glenn Carremans
e56cc57d8f Fix linting issues in app/views/videos (#1907) [ci skip] 2019-03-01 12:11:51 -05:00
rhymes
996ca23ed1 Simplify ArticlesController#feed (#1932)
* Simplify ArticlesController#feed

There's unneeded complexity in the logic of the feed method, this way what separates each path should be clearer

* Update app/controllers/articles_controller.rb

Co-Authored-By: rhymes <rhymesete@gmail.com>
2019-03-01 07:32:59 -08:00
Anna Buianova
b1995fd980 Update reading button states after articles loaded (#1927) 2019-03-01 06:11:13 -08:00
Glenn Carremans
281330fe16 Fix linting issues in app/views/articles (#1848) 2019-02-28 17:23:06 -05:00
Mario See
16a8aaa6f3 quick exit if comment is on podcast ep (#1931)
via andy's suggestion
2019-02-28 13:33:27 -08:00
Miguel Piedrafita
eb37d75c85 Implement Blogcast liquid tag (#1891) 2019-02-28 15:51:20 -05:00
Ben Halpern
d33c607211
Add non-mod functionality to /mod (#1930) 2019-02-28 11:02:19 -08:00
Ben Halpern
b2e3320ea4
Slight modification in /mod for exp level stuff (#1929) 2019-02-28 10:22:30 -08:00