Commit Graph

177 Commits

Author SHA1 Message Date
Ahmed Ejaz dee298fe33 1448, remove share#copyToClipboard changes 2023-11-26 17:12:56 +01:00
Ahmed Ejaz 93d67a8307 #1448, add copy to clipboard option 2023-11-26 17:12:56 +01:00
Andreas Nedbal f95e11cffc Fix rubocop nits 2023-10-19 23:53:21 +02:00
Andreas Nedbal 6e8f8bcc67
Merge branch 'main' into bugfix/inbox-sharing 2023-10-19 23:44:57 +02:00
Andreas Nedbal 25adb11df3 Fix rubocop nits in helper code and specs 2023-10-19 23:41:14 +02:00
Andreas Nedbal f76c4e236b Fix rubocop nits 2023-10-18 21:12:42 +02:00
Andreas Nedbal dc8c5fbf82 Add option to omit URL to `prepare_tweet` helper 2023-10-18 20:01:07 +02:00
Andreas Nedbal 5f0fed8c94 Fix rubocop nits 2023-10-17 20:14:28 +02:00
Andreas Nedbal 9f999189cd Add Stimulus sharing feature to answerboxes 2023-10-17 20:14:28 +02:00
Karina Kwiatek cb89d42813 Put IDs directly on nav entries 2023-08-16 21:17:18 +02:00
Karina Kwiatek ab81fc0c1b Use `present?` for badge check 2023-05-30 22:29:31 +02:00
Karina Kwiatek 1826da1e0a Allow navigation items to have their badge persist if they have a Stimulus controller
This fixes a bug which caused the PWA app badge to persist even though the user's inbox was empty.
2023-05-30 21:58:02 +02:00
Karina Kwiatek 6643a4763f Make `target` a keyword argument for `user_screen_name` helper
Co-authored-by: nilsding <nilsding@nilsding.org>
2023-05-09 23:20:36 +02:00
Karina Kwiatek e096ddc999 Prevent links from notifications from being opened in the dropdown frame 2023-05-09 22:51:40 +02:00
Karina Kwiatek dbd6f96f53 Add navigation shortcuts 2023-04-29 09:34:15 +02:00
Karina Kwiatek 1ec5ffa6d2 Cache inbox and notification counters 2023-03-07 19:14:14 +01:00
Karina Kwiatek febcf42b61 Update PWA notification page on page load 2023-03-07 19:14:14 +01:00
Georg Gadinger 4ee2b46b32 add sharing to telegram 2023-02-19 20:58:47 +01:00
Karina Kwiatek f5050971e9 Remove raw markdown options 2023-02-18 20:19:31 +01:00
Karina Kwiatek 7650bae75c Appease the dog overlords 2023-02-16 00:00:04 +01:00
Karina Kwiatek e85aaadb63 Pass Markdown renderer options into renderer 2023-02-15 23:50:55 +01:00
Andreas Nedbal 63b16fd39a Appease the dog overlords 2023-01-29 21:13:38 +01:00
Andreas Nedbal a0a7f4e124 Add raised-text and raised-accent-text theme variables 2023-01-23 23:36:38 +01:00
Andreas Nedbal a8fb9fd701 Refactor render_theme method
Co-Authored-By: Georg Gadinger <nilsding@nilsding.org>
2023-01-12 21:03:44 +01:00
Andreas Nedbal 07a13d39da Add support for theme helper mapping specifying multiple target values 2023-01-12 21:03:44 +01:00
Karina Kwiatek 5db058cb73 Fix nav badge pills not being marked as HTML safe 2023-01-05 14:32:04 +01:00
Andreas Nedbal 5c583acf05 Give `bootstrap_color` a proper argument 2023-01-05 10:35:52 +01:00
Andreas Nedbal c9b39ad1e5 Appease the dog overlords 2023-01-05 10:35:52 +01:00
Andreas Nedbal 09954c15d2 Fix data attributes for functionality in Bootstrap 5 2023-01-05 10:35:52 +01:00
Andreas Nedbal ff811edfe6 Apply review suggestion from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-12-18 22:01:43 +01:00
Andreas Nedbal 19e5837ce5 get rid of N+1 query in `notification_count` method 2022-12-18 22:01:43 +01:00
Karina Kwiatek 63436d3464 Remove `ios_web_app?` helper 2022-12-04 23:11:59 +01:00
Andreas Nedbal 921f02c4c9 Fix lints in ThemeHelper 2022-11-15 00:32:54 +01:00
Andreas Nedbal f35d49e575 Properly handle placeholder fields in theme application 2022-11-14 23:13:22 +01:00
Georg Gadinger cffb962194 fix parent_layout for HAML 6 2022-10-25 19:35:53 +02:00
Andreas Nedbal b00a12b322 Always return a boolean value from `moderation_view?` 2022-08-20 17:21:47 +02:00
Andreas Nedbal 6693864fbc Move `belongs_to_current_user?` to UserController 2022-08-20 17:21:47 +02:00
Andreas Nedbal 87c2ed3ab7 List direct questions for current users or mods 2022-08-20 17:21:47 +02:00
Karina Kwiatek afa1a102d6 Prevent Twitter markdown from stripping `<///3` 2022-07-30 19:41:47 +02:00
Georg Gadinger 434d176ebe appease the Cyber Canine 9000 2022-07-23 12:19:47 +02:00
Georg Gadinger 66efa5d4f4 clean up routes
- replace `match` with `get`/`post`/`patch`/`delete`
- format routes.rb
- rename the `show_user_{profile,question,answer}` routes to
  `profile`, `question`, `answer` so `url_for` (used by Rails Admin)
  works fine for these things
- also add `to_param` to the `User` model so that `url_for(some_user)`
  uses the user name
2022-07-23 12:14:06 +02:00
Karina Kwiatek a39960d269 Add tests for `TimelineController` 2022-07-21 16:08:51 +02:00
Karina Kwiatek 38d6a47372 Appease the dog overlords 2022-06-27 00:41:26 +02:00
Karina Kwiatek 597f8b74cb Fix everyone showing up as anonymous outside of moderation view 2022-06-27 00:41:26 +02:00
Karina Kwiatek 93c62a3008 Fix `moderation_view?` breaking when not logged in 2022-06-26 23:41:29 +02:00
Karina Kwiatek e64f206f5b Replace `anonymous_identifier` with `author_identifier` 2022-06-26 21:07:28 +02:00
Karina Kwiatek 8fb4256432 Use `content_tag` for generating markup in `unmask` method 2022-06-26 21:07:28 +02:00
Karina Kwiatek e5b8ea017c Show anon identifier in tooltip when unmasking 2022-06-26 21:07:28 +02:00
Karina Kwiatek 93f8bf35d2 Unmask author when in moderation mode 2022-06-26 21:07:28 +02:00
Karina Kwiatek 1b09d51443 Add toggle for moderation view 2022-06-26 21:07:28 +02:00