Skip to content
Snippets Groups Projects
Commit e7e64b2c authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[CLEAN] exclude templates from pre-commit

parent ac34aa5a
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,7 @@ repos:
- id: prettier
name: prettier (with plugin-xml)
entry: prettier
exclude: ^(data/.*|templates/.*)$
args:
- --write
- --list-different
......
......@@ -5,25 +5,14 @@
<!-- Blog Home -->
<template id="blog_home" name="CGScop Extranet Blog list">
<t t-call="scopext_portal.extranet_layout">
<section
class="flex h-full p-10 even:bg-white w-svw shadow-background first:rounded-tl-[30px] odd:bg-surface"
>
<section class="flex h-full p-10 even:bg-white w-svw shadow-background first:rounded-tl-[30px] odd:bg-surface">
<div class="w-full">
<div
class="container relative gap-y-8 mx-auto mb-auto default-grid"
>
<div class="container relative gap-y-8 mx-auto mb-auto default-grid">
<div class="col-span-12">
<div t-foreach="category_ids" t-as="category">
<h3
t-out="category.name"
class="typo-caption"
t-attf-style="color: {{category.color}};"
/>
<h3 t-out="category.name" class="typo-caption" t-attf-style="color: {{category.color}};" />
<ul>
<li
t-foreach="category.page_ids.filtered(lambda p: p.is_published)"
t-as="page"
>
<li t-foreach="category.page_ids.filtered(lambda p: p.is_published)" t-as="page">
<a t-attf-href="/coop/ur/{{slug(page)}}">
<t t-out="page.name" />
</a>
......@@ -40,24 +29,16 @@
<!-- Blog Page -->
<template id="blog_page" name="CGScop Extranet Blog Page">
<t t-call="scopext_portal.extranet_layout">
<section
class="flex h-full p-10 even:bg-white w-svw shadow-background first:rounded-tl-[30px] odd:bg-surface"
>
<section class="flex h-full p-10 even:bg-white w-svw shadow-background first:rounded-tl-[30px] odd:bg-surface">
<div class="w-full">
<div
class="container relative gap-y-8 mx-auto mb-auto default-grid"
>
<div class="container relative gap-y-8 mx-auto mb-auto default-grid">
<!-- Menu -->
<div class="col-span-3">
<t t-call="scopext_portal_blog.blog_menu" />
</div>
<!-- Contenu -->
<div class="col-span-9">
<h1
t-out="page_id.name"
class="typo-h1"
t-attf-style="color: {{page_id.category_id.color}};"
/>
<h1 t-out="page_id.name" class="typo-h1" t-attf-style="color: {{page_id.category_id.color}};" />
<div t-field="page_id.content" />
</div>
</div>
......@@ -69,16 +50,9 @@
<!-- Blog Menu -->
<template id="blog_menu" name="CGScop Extranet Blog Menu">
<div t-foreach="category_ids" t-as="category">
<h5
t-out="category.name"
class="typo-caption"
t-attf-style="color: {{category.color}};"
/>
<h5 t-out="category.name" class="typo-caption" t-attf-style="color: {{category.color}};" />
<ul>
<li
t-foreach="category.page_ids.filtered(lambda p: p.is_published)"
t-as="page"
>
<li t-foreach="category.page_ids.filtered(lambda p: p.is_published)" t-as="page">
<a t-attf-href="/coop/ur/{{slug(page)}}">
<t t-out="page.name" />
</a>
......
......@@ -9,9 +9,7 @@
>
<xpath expr="//nav" position="inside">
<t t-set="ur_id" t-value="request.env.user.partner_id.ur_id" />
<t
t-if="ur_id and request.env['scop.portal.blog.category'].get_portal_blog_categories(ur_id)"
>
<t t-if="ur_id and request.env['scop.portal.blog.category'].get_portal_blog_categories(ur_id)">
<t t-call="scopext_portal.nav_lvl1_item">
<t t-set="link" t-value="'/coop/ur'" />
<t t-set="name" t-value="'blog_ur'" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment