Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
7f3dcc43
Commit
7f3dcc43
authored
5 years ago
by
jan.bednarik
Browse files
Options
Downloads
Patches
Plain Diff
majak: Tweaks
parent
ded45bbb
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
majak/settings/base.py
+1
-1
1 addition, 1 deletion
majak/settings/base.py
senator/models.py
+18
-0
18 additions, 0 deletions
senator/models.py
senator/templates/senator/base.html
+1
-3
1 addition, 3 deletions
senator/templates/senator/base.html
with
20 additions
and
4 deletions
majak/settings/base.py
+
1
−
1
View file @
7f3dcc43
...
...
@@ -141,7 +141,7 @@ MEDIA_URL = "/media/"
# Wagtail settings
WAGTAIL_SITE_NAME
=
"
m
aj
a
k
"
WAGTAIL_SITE_NAME
=
"
M
aj
á
k
"
# Base URL to use when referring to full URLs within the Wagtail admin backend -
# e.g. in notification emails. Don't include '/admin' or a trailing slash
...
...
This diff is collapsed.
Click to expand it.
senator/models.py
+
18
−
0
View file @
7f3dcc43
...
...
@@ -21,8 +21,19 @@ class SenatorHomePage(Page):
FieldPanel
(
"
my_work
"
),
]
subpage_types
=
[
"
senator.SenatorNewsIndexPage
"
]
class
Meta
:
verbose_name
=
"
[senátor] Úvodní stránka
"
class
SenatorNewsIndexPage
(
Page
):
parent_page_types
=
[
"
senator.SenatorHomePage
"
]
subpage_types
=
[
"
senator.SenatorNewsPage
"
]
class
Meta
:
verbose_name
=
"
[senátor] Přehled novinek
"
def
get_context
(
self
,
request
):
# Update context to include only published posts, ordered by reverse-chron
context
=
super
().
get_context
(
request
)
...
...
@@ -42,6 +53,7 @@ class SenatorNewsPage(Page):
search_fields
=
Page
.
search_fields
+
[
index
.
SearchField
(
"
perex
"
),
index
.
SearchField
(
"
body
"
),
index
.
FilterField
(
"
date
"
),
]
content_panels
=
Page
.
content_panels
+
[
...
...
@@ -50,3 +62,9 @@ class SenatorNewsPage(Page):
FieldPanel
(
"
body
"
,
classname
=
"
full
"
),
ImageChooserPanel
(
"
image
"
),
]
parent_page_types
=
[
"
senator.SenatorNewsIndexPage
"
]
subpage_types
=
[]
class
Meta
:
verbose_name
=
"
[senátor] Novinka
"
This diff is collapsed.
Click to expand it.
senator/templates/senator/base.html
+
1
−
3
View file @
7f3dcc43
...
...
@@ -749,11 +749,9 @@
<body
data-rsssl=
1
class=
"home page-template-default page page-id-4949 l-body Zephyr_4.10.2 header_hor header_inpos_top btn_hov_ state_default wpb-js-composer js-comp-ver-5.4.5 vc_responsive"
itemscope
itemtype=
"https://schema.org/WebPage"
>
{% wagtailuserbar %}
<div
class=
"l-canvas sidebar_none type_wide"
>
<header
class=
"l-header pos_fixed bg_solid shadow_thin"
itemscope
itemtype=
"https://schema.org/WPHeader"
>
<div
class=
"l-subheader at_top"
>
<div
class=
"l-subheader-h"
>
...
...
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