Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 2c47420f authored by Julie Thezenas's avatar Julie Thezenas
Browse files

test other code init

parent e3e37ccc
No related branches found
No related tags found
No related merge requests found
MIT License
Copyright (c) 2019 tshenry
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# Categories Layout Override
This Discourse theme component will allow you to change the layout style of the categories page for a specific theme
For more information see: https://meta.discourse.org/t/categories-layout-override/131098
\ No newline at end of file
{
"name": "Categories Layout Override",
"about_url": "https://meta.discourse.org/t/categories-layout-override/131098",
"license_url": "https://github.com/tshenry/discourse-categories-layout-override-/blob/master/LICENSE",
"component": true
"name": "discourse-theme-category-homepage",
"license_url": "https://framagit.org/oca/discourse-theme-category-homepage/blob/master/LICENSE",
"about_url": "https://framagit.org/oca/discourse-theme-category-homepage/blob/master/README.md",
"component": true,
"assets": {
},
"color_schemes": {
}
}
......@@ -97,18 +97,6 @@
{{/if}}
</div>
<!-- image dans bloc -->
<!-- <div class="category-img"></div> -->
<!--
{{#if src}}
<div class="{{class}} aspect-image" style={{style}}>
<img src={{cdnSrc}} width={{width}} height={{height}}>
<img src={{cdnSrc}} width={{width}} height={{height}} alt={{alt}}>
</div>
{{/if}} -->
<!-- fin -->
<div class="category-details">
<div class="category-box-heading">
<a href={{c.url}}>
......@@ -126,7 +114,7 @@
</div>
</div>
<!-- {{#if c.isMuted}}
{{#if c.isMuted}}
<div class="category-details">
Cette catégorie est muette. Pour la suivre à nouveau, cliquez sur la cloche.
</div>
......@@ -150,30 +138,7 @@
</div>
{{/with}}
{{#if c.subcategories}}
{{#if (theme-setting 'show_subcategories')}} -->
<!-- début tests -->
{{#if c.isMuted}}
<div class="category-details">
Cette catégorie est muette. Pour la suivre à nouveau, cliquez sur la cloche.
</div>
{{else}}
{{/if}}
<div class="description no-padding-bottom">
{{#with (get category_tag_list c.slug) as |setting_tags_list|}}
<div class="tag-list direct-access-links">
{{#if (theme-setting 'text_tags')}}
<div class=separator>{{theme-setting 'text_tags'}}</div>
{{/if}}
{{#each setting_tags_list.tags as |tag|}}
<span class="tag-box badge-wrapper">
{{discourse-tag tag}}
</span>
{{/each}}
</div>
{{/with}}
{{#if c.subcategories}}
{{#if (theme-setting 'show_subcategories')}}
<!-- fin test -->
{{#if (theme-setting 'show_subcategories')}}
<div class="category-list direct-access-links">
{{#if (theme-setting 'text_subcategories')}}
<div class=separator>{{theme-setting 'text_subcategories'}}</div>
......
......@@ -70,13 +70,3 @@ text_private_subcategories:
type: string
default: "Private subcategories"
description: 'If empty, remove the separator.'
categories_layout:
default: categories_and_latest_topics
type: enum
choices:
- categories_only
- categories_with_featured_topics
- categories_and_top_topics
- categories_boxes
- categories_boxes_with_topics
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment