Commit graph

72 commits

Author SHA1 Message Date
Andreas Nedbal
32456a0f30 Add empty hint for questions 2023-12-10 22:39:58 +01:00
Karina Kwiatek
b55e6da9a5 Use subqueries to check reaction/subscription state 2023-11-26 19:32:50 +01:00
Karina Kwiatek
f91d2f2d7f Pre-emptively fetch answer reaction state 2023-11-07 22:53:10 +01:00
Andreas Nedbal
c4959ae548 Remove obsolete question-related partials 2023-10-22 21:04:30 +02:00
Andreas Nedbal
e6bd19790a Replace question markup with QuestionComponent 2023-10-22 21:04:30 +02:00
Andreas Nedbal
a58e902a01 Replace plain avatar usage with AvatarComponent 2023-10-20 11:45:53 +02:00
Karina Kwiatek
bbc0afe292 Move subscribed answer IDs to an ivar 2023-05-05 16:01:46 +02:00
Karina Kwiatek
7aed99d187 Appease the dog overlords 2023-05-05 16:01:38 +02:00
Karina Kwiatek
655b822e54 Add Stimulus controller for handling hotkeys 2023-04-29 09:34:28 +02:00
Karina Kwiatek
0eb9a4d089 Add hotkey for loading more entries 2023-04-29 09:34:28 +02:00
Karina Kwiatek
b22fc0bd16 Apply hotkeys on question pages 2023-04-29 09:34:28 +02:00
Andreas Nedbal
52ae7fbb81 Remove service-related views 2023-02-05 21:54:51 +01:00
Georg Gadinger
14f32aa3c0 question: only provide #show as GET 2023-01-22 00:04:33 +01:00
Andreas Nedbal
d4c2ca5e5e Don't set the collapse controller for entries that aren't long 2023-01-21 04:43:48 +01:00
Andreas Nedbal
a3b902b747 Add collapse to answerboxes and questions 2023-01-12 21:03:44 +01:00
Andreas Nedbal
cea1190ab9 Remove and replace usage of media classes 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
Georg Gadinger
caf73558d6 views: rename .haml to .html.haml 2022-10-25 20:10:31 +02:00
Andreas Nedbal
ec6f25e16b Use appropriate image sizes and lazy loading in questions 2022-10-10 23:16:44 +02:00
Andreas Nedbal
fe922d7aa2 Fix identation 2022-09-08 23:35:41 +02:00
Andreas Nedbal
6ae03dbd7f Refactor questions to use a Turbo Stream-backed pagination 2022-09-08 23:35:41 +02:00
Andreas Nedbal
24be74a5a2 Split and reuse question actions in partial 2022-08-21 15:04:54 +02:00
Andreas Nedbal
2a8711e7db Fix asked header in question and answerbox 2022-08-17 22:18:37 +02:00
Andreas Nedbal
14221aea71 Fix legacy locale references 2022-08-02 19:13:23 +02:00
Andreas Nedbal
416bf19132 Fix HAML codestyle in views 2022-08-02 19:13:23 +02:00
Andreas Nedbal
77abb202d7 Add new translation for questionbox title 2022-08-02 19:13:23 +02:00
Karina Kwiatek
e887e8c4fc Refactor action strings 2022-07-30 18:50:46 +02:00
Karina Kwiatek
328746f7be Fix missing "Post to …" translation on question page 2022-07-28 23:54:03 +02:00
Andreas Nedbal
c894551ffc Add Rails Admin link to question partials 2022-07-24 21:44:46 +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
e64f206f5b Replace anonymous_identifier with author_identifier 2022-06-26 21:07:28 +02:00
Karina Kwiatek
ddd7cfd81d Pass author_identifier in question/question partial 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
Andreas Nedbal
d5e317d3fe Fix missing translation on question view 2022-04-26 08:20:54 +02:00
Andreas Nedbal
a4041e5da6 Remove another paragraph where questions are rendered 2022-01-01 02:04:49 +01:00
Andreas Nedbal
67ee589b5b Add question markup renderer 2021-12-31 22:40:38 +01:00
Dominik M. Kwiatek
abf78d4f49 Don't center content on Desktop
Suggestions from @pixeldesu's review

Co-authored-by: Andreas Nedbal <andy@pixelde.su>
2020-05-29 23:05:38 +02:00
Dominik M. Kwiatek
ee947f2428 Make the "Load more" button center-aligned and give it "button" styling
Fixes #107
2020-05-29 23:05:38 +02:00
Andreas Nedbal
66b2afc976 Turn single-word strings into symbols 2020-05-11 19:40:45 +02:00
Andreas Nedbal
7f17a2995e Fix lints in app/views/question 2020-05-11 19:38:07 +02:00
Andreas Nedbal
0db1de9552 Fix question page dropdowns using old Bootstrap layout 2020-05-09 05:39:01 +02:00
Andreas Nedbal
adf5968ad0 Fix some layout issues on question pages 2020-05-09 04:10:40 +02:00
Georg Gadinger
ae8e0b651a Fix Question#show view when user is nil 2020-05-09 02:43:43 +02:00
Andreas Nedbal
85d97b0c71 Rename changed classes across templates 2020-05-02 20:35:48 +02:00
Andreas Nedbal
d61fa91f0d Refactor question styles
- Created styles in component/question
- Removed old styles from scss/panel
- Moved question partial to question controller resource, as it is only used there, not shared
2020-04-30 00:44:43 +02:00
Andreas Nedbal
7513ef2b9e Clean up answerbox layout 2020-04-26 17:13:31 +02:00
Andreas Nedbal
7767eeae9f Merge branch 'master' into feature/bootstrap 2020-04-25 13:14:01 +02:00
Georg Gadinger
101b3b68d3 Use cursored pagination, remove WillPaginate 2020-04-20 23:13:24 +02:00
Andreas Nedbal
b5a833e917 Remove superfluous card-default class 2020-04-19 23:31:24 +02:00