Commit Graph

123 Commits

Author SHA1 Message Date
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
Karina Kwiatek d81641ac18 Add theme model spec 2021-08-13 01:23:07 +02:00
Karina Kwiatek bd5995ef65 Add specs for `nav_entry` helper 2021-08-13 00:53:11 +02:00
Karina Kwiatek d76af263ce Style and position badges on mobile nav 2021-08-12 21:56:28 +02:00
Karina Kwiatek d27ae910c2 Adjust theme-color for mobile layout 2021-08-12 00:37:47 +02:00
Karina Kwiatek 86d179d590
Merge branch 'master' into feature/opengraph 2021-08-08 14:24:05 +02:00
Karina Kwiatek d08d0156dc Move graph helpers to separate module 2021-08-06 22:24:21 +02:00
Karina Kwiatek 7249e45989 Add tests for user_twitter_card and answer_opengraph 2021-08-06 21:38:51 +02:00
Karina Kwiatek 3570171b25 Create rails_admin_path_for_resource helper 2021-08-06 13:38:24 +02:00
Karina Kwiatek cf4d6bd100 Add OpenGraph metadata on user profiles and answers 2021-08-06 13:24:04 +02:00
Karina Kwiatek ba709cdcf6 Update theme-color meta value to match the current page's theme 2021-06-19 21:37:04 +02:00
Karina Kwiatek 1eb256ee88 Apply theme colours to turbolinks progress bar 2021-04-05 09:00:03 +02:00
Georg Gadinger ea0685136e Rename Groups to Lists
haha regexp go brrr

special thanks to @seatsea for helping me out with the French locales
2020-05-25 18:04:54 +02:00
Georg Gadinger 9b4c8027b8 Fix pagination for ajax views 2020-05-09 04:39:09 +02:00
Georg Gadinger 65f152b762 Move user theme to the end of the body --> turbolinks has turbo links again 2020-05-09 02:08:31 +02:00
Andreas Nedbal 3a4b04b5da Don't track theme style tags with turbolinks 2020-05-07 02:13:07 +02:00
Andreas Nedbal f8448405a4 Remove empty Helper classes 2020-05-06 18:42:53 +02:00
Andreas Nedbal e1c1357d9b Fix missing arguments on current_page? 2020-05-06 14:49:35 +02:00
Andreas Nedbal 9961796e3b Apply review suggestion for navigation tag helpers 2020-05-06 14:30:12 +02:00
Andreas Nedbal 892b708c6f Implement changes to ThemeHelper requested by review
- turned theme_attribute_map into frozen constant ATTRIBUTE_MAP
- early return if no theme exists, instead of if-block
- usage of Hash#key? instead Hash[k] to confirm existence of key in hash
- Early skip/next if key is not present in Hash instead of if-block
2020-05-06 13:36:43 +02:00
Andreas Nedbal d9f67e86d9 Fix get_active_theme to return proper theme for user 2020-05-05 20:17:49 +02:00
Andreas Nedbal 0bc4a5b968 Fix hidespan helper using not existing Bootstrap class 2020-05-05 05:04:43 +02:00
Andreas Nedbal 880429f5f9 Add new fields for themes
- In the settings view
- In the model validation
- In the controller parameter permissions
- In the CoffeeScript/Ruby helpers
2020-05-05 02:02:16 +02:00
Andreas Nedbal d93548891d Remove obsolete render_theme_with_context 2020-05-04 17:26:57 +02:00
Andreas Nedbal 241b8cbdcb Rename card variables to "raised" 2020-05-03 20:10:50 +02:00
Andreas Nedbal 02cc1c418d WIP: Initial implementation of CSS variable based theming 2020-05-03 17:28:41 +02:00
Andreas Nedbal e9e0a222b0 Merge branch 'master' into feature/bootstrap 2020-04-27 02:11:54 +02:00
Andreas Nedbal 8d9f1d5efb Adjust list_group_item helper for Bootstrap 4 2020-04-26 21:48:02 +02:00
Andreas Nedbal 4917ce46d3 Fix "nav-item" assigning class in nav_entry helper 2020-04-26 14:30:23 +02:00
Andreas Nedbal 8b8a5a1e72 Add parent_layout helper 2020-04-25 17:02:59 +02:00
Andreas Nedbal 7767eeae9f Merge branch 'master' into feature/bootstrap 2020-04-25 13:14:01 +02:00
Karina Kwiatek 47fde17560 Remove deprecated gravatar_url method 2020-04-20 23:18:14 +01:00
Andreas Nedbal 2b39888679 Adjust base navigations Bootstrap 4 2020-04-19 23:03:34 +02:00
Karina Kwiatek 8a632a09cd Create Announcement model & controller 2020-04-19 20:12:22 +01:00
Georg Gadinger 76f4ec35e2 get rid of "Fixnum is deprecated" warning 2020-04-19 14:39:59 +02:00