Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scopext_portal_blog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
Confédération Générale des SCOP
scopext_portal_blog
Commits
e7e64b2c
Commit
e7e64b2c
authored
3 months ago
by
Benjamin - Le Filament
Browse files
Options
Downloads
Patches
Plain Diff
[CLEAN] exclude templates from pre-commit
parent
ac34aa5a
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.pre-commit-config.yaml
+1
-0
1 addition, 0 deletions
.pre-commit-config.yaml
templates/blog_templates.xml
+9
-35
9 additions, 35 deletions
templates/blog_templates.xml
templates/portal_layout.xml
+1
-3
1 addition, 3 deletions
templates/portal_layout.xml
with
11 additions
and
38 deletions
.pre-commit-config.yaml
+
1
−
0
View file @
e7e64b2c
...
...
@@ -57,6 +57,7 @@ repos:
-
id
:
prettier
name
:
prettier (with plugin-xml)
entry
:
prettier
exclude
:
^(data/.*|templates/.*)$
args
:
-
--write
-
--list-different
...
...
This diff is collapsed.
Click to expand it.
templates/blog_templates.xml
+
9
−
35
View file @
e7e64b2c
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
templates/portal_layout.xml
+
1
−
3
View file @
e7e64b2c
...
...
@@ -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'"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment