Commit graph

181 commits

Author SHA1 Message Date
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
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
Georg Gadinger
3e7497a144 Upgrade to Rails 5 2020-04-19 00:59:22 +02:00
Georg Gadinger
b8701e7626 Make user_screen_name helper use kwargs, add link_only arg 2017-03-30 19:17:25 +02:00
Yuki
71caf3cce5 Several changes to theming, solving a bunch of bugs 2015-08-27 05:30:26 +05:30
Yuki
a7c3acea76 ISHYGDDT 2015-08-26 02:14:14 +05:30
Yuki
cd6c746e4d paperclip is dead to me 2015-08-26 01:41:30 +05:30
Yuki
906692e78f Theming is finished
Previews, settings pane and presets!
2015-08-25 23:57:06 +05:30
Yuki
1912fc3766 Model goop
also made the theme selection logic for user profiles and current user, and the saving logic
2015-08-25 13:56:36 +05:30
Yuki
e7e28efcab Theme Progress
Link color
Notification dropdown text fix
Dropdown select color
Panels
Modals
Buttons, Labels and Alerts
nprogress
fix and rename __THEME_CSS_CACHE to __THEME_CSS_CACHE_V1
2015-08-25 01:26:59 +05:30
Yuki
5f8dc8a24f Cache CSS if in production 2015-07-29 22:29:52 +05:30
Yuki
47344a5774 ThemeHelper.render_theme_with_context 2015-07-29 22:24:33 +05:30
Yuki
b60823abe2 minor fixes 2015-06-09 21:35:35 +05:30
Yuki
607574cfce don't need this function 2015-06-09 08:56:10 +05:30
Yuki
339ddf5204 I woke up 2 minutes ago 2015-06-09 08:54:17 +05:30
Yuki
d2511dea42 Fix retrospring/bugs#76 2015-06-09 08:51:58 +05:30
Yuki
52890707c5 less logic in views 2015-05-27 06:51:06 +05:30
Yuki
74bbbdf4ca FILTHY 2015-05-27 06:41:21 +05:30
pixeldesu
9c83972105 localized answerbox (trigger warning: horrible code) 2015-05-27 02:58:03 +02:00
Yuki
cd904ae1bc Fix FAQ 2015-05-26 04:56:58 +05:30
Yuki
9d93bbf9b1 Allow loading markdown files from FS 2015-05-24 18:18:54 +05:30
Yuki
db75f3dd36 Answers show question content, not answer content (makes more sense) 2015-05-15 06:46:02 +05:30
pixeldesu
773b2917cb Merge branch 'feature-discover' 2015-05-14 00:47:23 +02:00
Yuki
6c5f97f3da Case-sensitivity fix. 2015-05-14 03:40:34 +05:30
Yuki
2e1cb4d273 Made titles functional, because functional programming is the future 2015-05-14 03:32:19 +05:30
Georg G
c9a268ebdf added empty DiscoverController 2015-05-13 20:39:04 +02:00
Yuki
ecffd07344 Support for post subscriptions 2015-04-21 06:42:11 +05:30
pixeldesu
4e185bbaa7 change Bootswatch theme, general theme changes, list group helper 2015-04-19 16:49:53 +02:00
nilsding
0bf46a888f added a new Markdown renderer (TwitteredMarkdown) which will be used for sharing to Twitter 2015-01-29 16:45:58 +01:00
nilsding
1bb369aa7d implemented basic functionality of YE OLDE BANHAMMER! 2015-01-12 22:44:13 +01:00
nilsding
38e5550241 strip blank spaces 2015-01-12 13:08:10 +01:00
nilsding
9de917fb23 closes GitHub issue #57 2015-01-12 13:00:00 +01:00
nilsding
d97763eda0 Revert "Le Funny Emoji Meme Face x--DD"
This reverts commit 5118ba9761.
2015-01-08 22:34:50 +01:00
nilsding
5118ba9761 Le Funny Emoji Meme Face x--DD 2015-01-08 22:28:56 +01:00
nilsding
6b28c35d4a the pointy face should work again???? 2015-01-08 18:10:20 +01:00
nilsding
f7cb3478be :medium everywhere 2014-12-29 14:57:16 +01:00
nilsding
7074a1edf7 mark gravatar-url as deprecated 2014-12-29 12:56:41 +01:00
nilsding
501f039e7f gravatar_url returns the users' profile_picture 2014-12-29 10:18:38 +01:00
nilsding
b3f165b12b reporting and deleting comments works now 2014-12-28 21:14:01 +01:00
nilsding
7bfa5132dd added link to the reported object 2014-12-28 20:05:30 +01:00
nilsding
90fe42e643 Merge remote-tracking branch 'origin/master' into moderation
Conflicts:
	app/models/user.rb
2014-12-28 19:29:01 +01:00
nilsding
0e4d744478 added Markdown to answers 2014-12-28 19:06:49 +01:00
pixeldesu
2107ec6270 init moderation controller 2014-12-25 23:00:33 +01:00
nilsding
dec91d474d added notification_count 2014-12-14 15:15:15 +01:00