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
efd93700
Commit
efd93700
authored
2 years ago
by
OndraRehounek
Browse files
Options
Downloads
Patches
Plain Diff
main: articles refactor
parent
958f5ef2
No related branches found
No related tags found
2 merge requests
!607
Pirati.cz
,
!575
Feature/pirati cz
Pipeline
#9400
passed
2 years ago
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/templates/main/main_articles_page.html
+54
-10
54 additions, 10 deletions
main/templates/main/main_articles_page.html
main/templates/main/main_work_page.html
+0
-58
0 additions, 58 deletions
main/templates/main/main_work_page.html
with
54 additions
and
68 deletions
main/templates/main/main_articles_page.html
+
54
−
10
View file @
efd93700
{% extends "main/base.html" %}
{% extends "main/base.html" %}
{% load wagtailcore_tags wagtailimages_tags shared_filters %}
{% block content %}
{% block content %}
{# nemame design #}
{% include 'main/includes/layout/simple_page_header.html' %}
<header>
<h1
itemprop=
"headline"
class=
"head-alt-md md:head-alt-lg max-w-5xl mb-8"
>
{{ page.title }}
</h1>
</header>
<div
class=
"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 lg:gap-8"
>
<main
role=
"main"
>
{% for a in articles %}
<div
class=
"grid-container mb-2 xl:mb-12"
>
{% include "shared/article_preview.html" with article=a %}
<div
class=
"grid-left-side"
>
TODO menu
</div>
<div
class=
"grid-content leading-6"
>
<h2
class=
"head-xl mb-2"
>
{{ page.perex }}
</h2>
<h2
class=
"head-xl mb-2"
>
Projděte si archiv tiskových zpráv a souhrn našich nejvýraznějších aktivit
</h2>
</div>
</div>
<div
class=
"grid-container article-section"
>
<div
class=
"grid-full mb-8"
>
{% for month_article_data in article_data_list %}
<div
class=
"mb-4"
>
<h3
class=
"head-7xl mb-4 xl:hidden"
>
{{ month_article_data.month_text }}
</h3>
<div
class=
"flex flex-col justify-between xl:flex-row"
>
<div
class=
"xl:pt-8"
>
{% for article_page in month_article_data.left_column %}
{% include 'main/includes/work_article_preview.html' %}
{% empty %}
<div
class=
"p-7 flex flex-col max-w-xl mb-8"
/>
{% endfor %}
</div>
<div
class=
"relative border border-violet-400 mx-8 hidden xl:block"
>
<div
class=
"absolute bg-violet-400 p-1 text-white font-bold"
style=
"transform: translateX(-50%); top: -1rem"
>
{{ month_article_data.month_text }}
</div>
</div>
<div
class=
"xl:pt-14"
>
{% for article_page in month_article_data.right_column %}
{% include 'main/includes/work_article_preview.html' %}
{% empty %}
<div
class=
"p-7 flex flex-col max-w-xl mb-8"
/>
{% endfor %}
{% endfor %}
</div>
</div>
{% endblock %}
</div>
</div>
{% endfor %}
<div
class=
"flex justify-center"
>
{% include 'main/includes/button_animated.html' with btn_text="Zobrazit další" %}
</div>
</div>
</div>
</main>
{% endblock content %}
This diff is collapsed.
Click to expand it.
main/templates/main/main_work_page.html
deleted
100644 → 0
+
0
−
58
View file @
958f5ef2
{% extends "main/base.html" %}
{% load wagtailcore_tags wagtailimages_tags shared_filters %}
{% block content %}
{% include 'main/includes/layout/simple_page_header.html' %}
<main
role=
"main"
>
<div
class=
"grid-container mb-2 xl:mb-12"
>
<div
class=
"grid-left-side"
>
TODO menu
</div>
<div
class=
"grid-content leading-6"
>
<h2
class=
"head-xl mb-2"
>
{{ page.perex }}
</h2>
<h2
class=
"head-xl mb-2"
>
Projděte si archiv tiskových zpráv a souhrn našich nejvýraznějších aktivit
</h2>
</div>
</div>
<div
class=
"grid-container article-section"
>
<div
class=
"grid-full mb-8"
>
{% for month_article_data in article_data_list %}
<div
class=
"mb-4"
>
<h3
class=
"head-7xl mb-4 xl:hidden"
>
{{ month_article_data.month_text }}
</h3>
<div
class=
"flex flex-col justify-between xl:flex-row"
>
<div
class=
"xl:pt-8"
>
{% for article_page in month_article_data.left_column %}
{% include 'main/includes/work_article_preview.html' %}
{% empty %}
<div
class=
"p-7 flex flex-col max-w-xl mb-8"
/>
{% endfor %}
</div>
<div
class=
"relative border border-violet-400 mx-8 hidden xl:block"
>
<div
class=
"absolute bg-violet-400 p-1 text-white font-bold"
style=
"transform: translateX(-50%); top: -1rem"
>
{{ month_article_data.month_text }}
</div>
</div>
<div
class=
"xl:pt-14"
>
{% for article_page in month_article_data.right_column %}
{% include 'main/includes/work_article_preview.html' %}
{% empty %}
<div
class=
"p-7 flex flex-col max-w-xl mb-8"
/>
{% endfor %}
</div>
</div>
</div>
{% endfor %}
<div
class=
"flex justify-center"
>
{% include 'main/includes/button_animated.html' with btn_text="Zobrazit další" %}
</div>
</div>
</div>
</main>
{% endblock content %}
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