25 Commits

Author SHA1 Message Date
dependabot[bot]
df6446cf3e
Bump y18n from 4.0.0 to 4.0.1 (#10)
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-01 11:34:16 +02:00
tshenry
8e24b2ceca
REFACTOR: Simplify logic and use Category.findBySlugPathWithID (#9)
This change swaps out `Category.findById` with `Category.findBySlugPathWithID`. It ends up reducing the necessary code and handles the scenario of using a link without a numeric ID (e.g. `/tags/c/some-category/some-tag` instead of `/tags/c/some-category/4/some-tag`).

This also simplifies the routing logic in line with what was discussed in https://github.com/discourse/discourse-category-banners/pull/8. There's no need to create an `isCategoryTopicList` variable, especially now that the code is a little less busy.
2021-02-01 12:17:26 -08:00
tshenry
93f0a1f556
FEATURE: Support filtering by tag (#8)
Ensure the banner will remain visible when filtering a category by a tag.
2021-01-21 18:07:30 -08:00
Renato Atilio
eeced5b1c4
Setting to show category icon from discourse-category-icons theme component (#7) 2020-11-30 09:46:44 -05:00
awesomerobot
a835aa8e7c didn't need new version listed for compatibility 2020-10-19 17:32:42 -04:00
awesomerobot
bf33e058c7 Padding not needed due to header position change 2020-09-30 21:40:55 -04:00
awesomerobot
2c1632b547 Pin to current version due to upcoming change 2020-09-30 21:37:24 -04:00
Joffrey JAFFEUX
9be0d88905
FEATURE: adds a setting to choose which connector to use (#5)
above_site_header or below_site_header, default is below_site_header
2020-09-28 13:26:06 +02:00
jjaffeux
ac66be7948 REFACTOR: full component refactoring
- drops jquery
- uses new codelayout structure
- more explicit site setting
- apply code standards
- various cleanups
- do not show an empty category-title-desription if we don't show the category description
2020-09-27 11:26:40 +02:00
Penar Musaraj
6dd00a87b4
Use list_type: simple for setting 2020-09-24 15:44:49 -04:00
Kris
c3bf66fadd prefix category name with 'category-banner-' to avoid class collision 2019-11-01 16:43:08 -04:00
Kris
ab78b924b1 Render the category descriptions as HTML 2019-04-10 00:11:08 -04:00
Kris
82812ff1dd Font Awesome 5 support, slug class 2019-01-11 13:19:51 -05:00
Kris
3a49327865
Create LICENSE 2018-11-14 14:43:58 -05:00
Kris
0e60a439da set as component 2018-11-13 14:27:50 -05:00
Kris
b13c0f21ac adding lock to protected categories 2018-06-11 13:54:15 -04:00
Kris
3edf3609f2 padding adjustment 2018-04-26 14:26:57 -04:00
Kris
57ccbf4e09 adding link to about 2018-04-26 14:22:58 -04:00
Kris
30b2a2ebaf
Add link to README 2018-04-26 14:06:18 -04:00
Kris
2b74bb2f7a
Update README 2018-04-26 14:05:27 -04:00
Kris
7f440532fc setting names, css adjustment 2018-04-26 14:01:28 -04:00
Kris
02f0f05e90 Updating name 2018-04-26 13:12:52 -04:00
Kris
618197fffd Adding additional settings 2018-04-26 13:01:44 -04:00
Kris
e5d2d3a201 initial commit 2018-04-26 01:25:49 -04:00
Kris
f5c2ba6482
Initial commit 2018-04-25 23:03:16 -04:00