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
Karina Kwiatek
da71744a0d
Disallow all tags in anon names
2022-06-25 10:38:06 +02:00
Karina Kwiatek
3bb48270a2
Sanitize anon names
2022-06-25 10:38:06 +02:00
Karina Kwiatek
15052e203e
Appease the dog overlords
2022-06-23 21:29:27 +02:00
Karina Kwiatek
d1ad34eb9c
Apply anon display name settings to question author display
2022-06-23 21:29:27 +02:00
Andreas Nedbal
3711c676da
Fix Ruby codestyle
2022-01-22 22:50:32 +01:00
Andreas Nedbal
7374aba6d3
Add generation of the Canny SSO token
2022-01-22 22:50:32 +01:00
Andreas Nedbal
0a52c09684
Apply review suggestion from @nilsding
...
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-01-16 14:17:29 +01:00
Andreas Nedbal
a438e414c9
Fix code style in ApplicationHelper
2022-01-16 14:17:29 +01:00
Karina Kwiatek
45854894dc
Upgrade to Rails 6.0
2022-01-13 21:42:06 +01:00
Andreas Nedbal
515e6d09ff
Use text ellipsis instead of three single dots for shortening
...
Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
2022-01-10 22:53:58 +01:00
Andreas Nedbal
b9c968d3fd
Move title and bootstrap related helpers into their own files
2022-01-10 22:53:58 +01:00
Karina Kwiatek
683fffd734
Add the ability to post to services with a tag
2022-01-05 19:49:59 +01:00
Andreas Nedbal
02a5e7029e
Add linkfilter logic to existing renderers
2021-12-31 22:40:38 +01:00
Andreas Nedbal
a6dc7661ee
Extend theme helper to show themes on answer pages
2021-12-30 01:41:27 +01:00
Andreas Nedbal
a1ba1a8082
Apply review suggestion from @raccube
...
Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
2021-12-26 23:41:23 +01:00
Andreas Nedbal
08a0f2e1ca
Don't include `Rails.application.routes.url_helpers` in `SocialHelper::`
...
It badly trips up things
2021-12-26 22:40:27 +01:00
Andreas Nedbal
ed64a0990e
Move tumblr post formatting into a separate helper class
2021-12-26 22:04:46 +01:00
Andreas Nedbal
b64b039d21
Move tweet formatting into a separate helper class
2021-12-26 22:04:16 +01:00
Karina Kwiatek
842f51d745
Replace remaining usages of `user.display_name`
2021-12-23 22:01:56 +01:00
Karina Kwiatek
00496a1596
Update remaining references to profile fields
2021-12-22 00:03:19 +01:00