docbrown/app/controllers
Dana Scheider b2a8f69f83 Allow archiving of posts (#2798)
* This commit adds the "archived" attribute to the Article model, which will
enable users to automatically filter archived articles/drafts from appearing
on their dashboard. It also adds an ellipsis menu with a link to archive the
article. I've also moved the Mute Notifications button into the ellipsis menu
as well.

* Add ellipsis menu and make it work

* Fix logic error

* Hide ellipsis menus when you click elsewhere on the body

* Extract function to remove duplication

* Ensure that menu is hidden when the ellipsis button is clicked on an open menu

* Ensure that archiving post button works and that 'archived' param is accepted by the controller

* Enable link to toggle showing/hiding archived articles

* Make 'mute' and 'archive' buttons in ellipsis dropdown list work

* Refactor to make Code Climate happy

* Minor JS refactors
2019-05-13 15:40:52 -04:00
..
admin Add Twitch to Profile Links (#2557) 2019-04-25 16:14:28 -04:00
api/v0 [WIP] Move both v1 and v2 editor to v2 preact-driven editor (#2797) 2019-05-13 12:27:36 -04:00
concerns Edem/improvements/pundit coverage (#498) 2018-06-28 09:38:20 -04:00
internal Add listings to /internal pages (#2725) 2019-05-06 18:16:23 -04:00
notifications Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
additional_content_boxes_controller.rb Improve performance for additional content boxes and tags index (#1750) 2019-02-06 16:50:35 -04:00
api_secrets_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
application_controller.rb Remove extra param and add message for prefill (#2487) 2019-04-18 15:34:50 -04:00
article_mutes_controller.rb Allow archiving of posts (#2798) 2019-05-13 15:40:52 -04:00
articles_controller.rb Allow archiving of posts (#2798) 2019-05-13 15:40:52 -04:00
async_info_controller.rb Allow users to follow podcasts (#2690) 2019-05-04 15:30:40 -04:00
badges_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
blocks_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
buffer_updates_controller.rb Add page for users to "manage" their posts after publication (distribution, etc.) (#2627) 2019-05-01 09:00:09 -04:00
buffered_articles_controller.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
chat_channel_memberships_controller.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
chat_channels_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
classified_listings_controller.rb WIP Add proper error handling when creating a listing (#2755) 2019-05-07 18:25:25 -04:00
comment_mutes_controller.rb Mute notifications for a comment thread (#1636) 2019-01-24 17:20:38 -05:00
comments_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
credits_controller.rb Fix listings form styles (#2729) 2019-05-06 20:11:41 -04:00
dashboards_controller.rb Update following page with podcasts (#2724) 2019-05-06 18:10:58 -04:00
email_subscriptions_controller.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
events_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
feedback_messages_controller.rb Removed bug reports from app (#1565) 2019-01-16 11:28:59 -05:00
followed_articles_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
follows_controller.rb Allow users to follow podcasts (#2690) 2019-05-04 15:30:40 -04:00
ga_events_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
github_repos_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
giveaways_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
html_variant_successes_controller.rb Add HTML variants for cta optimization and other nav bar adjustments (#970) 2018-10-22 17:03:57 -04:00
html_variant_trials_controller.rb Add HTML variants for cta optimization and other nav bar adjustments (#970) 2018-10-22 17:03:57 -04:00
html_variants_controller.rb Rubocop fixes (#2232) 2019-03-28 07:35:17 -04:00
image_uploads_controller.rb Implement image upload's error handling (#2018) 2019-03-21 12:31:51 -04:00
live_articles_controller.rb Fix rubocop lints (#794) 2018-10-03 13:00:09 -04:00
messages_controller.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
moderations_controller.rb Use published scope for articles (#2374) 2019-04-11 13:18:26 -04:00
notifications_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
omniauth_callbacks_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
organizations_controller.rb Add OrganizationMembership model (#2471) 2019-04-22 14:08:02 -04:00
page_views_controller.rb Fix/augment dashboard and article view count issues (#2449) 2019-04-15 10:24:38 -04:00
pages_controller.rb Add security and faq pages as generatable via the Page model (#2792) 2019-05-10 16:20:40 -04:00
podcast_episodes_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
push_notification_subscriptions_controller.rb Add more test coverage (#1829) 2019-02-22 09:16:57 -08:00
pusher_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
rating_votes_controller.rb Add experience level averaging to articles (#1922) 2019-02-28 08:17:29 -08:00
reactions_controller.rb Remove Honeycomb from the app (#2366) 2019-04-11 10:49:35 -04:00
reading_list_items_controller.rb [WIP] Move both v1 and v2 editor to v2 preact-driven editor (#2797) 2019-05-13 12:27:36 -04:00
registrations_controller.rb Use timezone aware methods (#893) 2018-10-18 16:26:29 -04:00
social_previews_controller.rb Social Card upgrade - Part 1 (#2090) 2019-03-22 16:28:02 -04:00
stories_controller.rb Allow users to follow podcasts (#2690) 2019-05-04 15:30:40 -04:00
stripe_active_cards_controller.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
stripe_cancellations_controller.rb Add Stripe Cancellation Webhook (#1682) 2019-02-13 15:56:19 -05:00
stripe_subscriptions_controller.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
tag_adjustments_controller.rb Fix braces around hash params Rubocop offense (#1453) 2019-01-11 13:08:45 -05:00
tags_controller.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
twilio_tokens_controller.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
twitch_live_streams_controller.rb Embed Twitch Live Streaming (#2591) 2019-04-29 18:11:53 -04:00
twitch_stream_updates_controller.rb Twitch Webhook Fixes (#2692) 2019-05-05 11:52:43 -04:00
users_controller.rb Change format of the user languages_settings #2369 (#2496) 2019-04-30 17:01:19 -04:00
video_states_controller.rb Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
videos_controller.rb Use published scope for articles (#2374) 2019-04-11 13:18:26 -04:00