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
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
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
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
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
Karina Kwiatek
842f51d745
Replace remaining usages of `user.display_name`
2021-12-23 22:01:56 +01:00
Georg Gadinger
b8701e7626
Make user_screen_name helper use kwargs, add link_only arg
2017-03-30 19:17:25 +02:00
Yuki
b60823abe2
minor fixes
2015-06-09 21:35:35 +05:30
nilsding
1bb369aa7d
implemented basic functionality of YE OLDE BANHAMMER!
2015-01-12 22:44:13 +01:00
nilsding
5bb879ae7c
fixed fuckup
2014-11-13 19:27:24 +01:00
nilsding
e39f82882b
link
2014-11-13 13:02:47 +01:00
nilsding
a7c9181fc5
fixed fuckups (again)
2014-11-11 18:09:28 +01:00
nilsding
0765677555
added a helper!
2014-11-11 07:09:36 +01:00
nilsding
c211b29395
new users controller
2014-11-02 17:57:37 +01:00