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
e8d8b9d2
Commit
e8d8b9d2
authored
3 years ago
by
Ondrej Rehounek
Browse files
Options
Downloads
Patches
Plain Diff
district and region: Calendar update according to styleguide
parent
a559b5fe
No related branches found
No related tags found
2 merge requests
!418
Release
,
!414
district and region modules
Pipeline
#6247
passed
3 years ago
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
district/templates/district/base.html
+25
-12
25 additions, 12 deletions
district/templates/district/base.html
region/templates/region/base.html
+25
-12
25 additions, 12 deletions
region/templates/region/base.html
with
50 additions
and
24 deletions
district/templates/district/base.html
+
25
−
12
View file @
e8d8b9d2
...
...
@@ -182,6 +182,7 @@
</div>
</button>
{% if page.root_page.has_calendar %}
<button
class=
"btn btn--inline-icon btn--condensed btn--hoveractive btn--grey-500 btn--to-orange-300 text-sm px-0"
:class=
"{'btn--activated': isCurrentView('calendar')}"
...
...
@@ -195,6 +196,18 @@
</div>
</button>
{% with page.root_page.calendar.current_events.0 as first_event %}
{% if first_event %}
<span
class=
"btn text-sm max-w-full hidden lg:block"
@
click=
"toggleView('calendar')"
>
<div
class=
"btn__body bg-grey-800 text-grey-200 flex divide-x"
>
<span
class=
"pr-4"
>
{{ first_event.name }}
</span>
<span
class=
"pl-4"
>
{{ first_event.begin|date:"l j. E"|capfirst }}
</span>
</div>
</span>
{% endif %}
{% endwith %}
{% endif %}
{% if page.root_page.facebook %}
<a
href=
"{{ page.root_page.facebook }}"
target=
"_blank"
rel=
"noopener noreferrer"
class=
"btn btn--inline-icon btn--condensed btn--hoveractive btn--grey-500 btn--to-brands-facebook text-sm ml-2 px-0"
>
<div
class=
"btn__body py-2"
>
...
...
This diff is collapsed.
Click to expand it.
region/templates/region/base.html
+
25
−
12
View file @
e8d8b9d2
...
...
@@ -182,6 +182,7 @@
</div>
</button>
{% if page.root_page.has_calendar %}
<button
class=
"btn btn--inline-icon btn--condensed btn--hoveractive btn--grey-500 btn--to-orange-300 text-sm px-0"
:class=
"{'btn--activated': isCurrentView('calendar')}"
...
...
@@ -195,6 +196,18 @@
</div>
</button>
{% with page.root_page.calendar.current_events.0 as first_event %}
{% if first_event %}
<span
class=
"btn text-sm max-w-full hidden lg:block"
@
click=
"toggleView('calendar')"
>
<div
class=
"btn__body bg-grey-800 text-grey-200 flex divide-x"
>
<span
class=
"pr-4"
>
{{ first_event.name }}
</span>
<span
class=
"pl-4"
>
{{ first_event.begin|date:"l j. E"|capfirst }}
</span>
</div>
</span>
{% endif %}
{% endwith %}
{% endif %}
{% if page.root_page.facebook %}
<a
href=
"{{ page.root_page.facebook }}"
target=
"_blank"
rel=
"noopener noreferrer"
class=
"btn btn--inline-icon btn--condensed btn--hoveractive btn--grey-500 btn--to-brands-facebook text-sm ml-2 px-0"
>
<div
class=
"btn__body py-2"
>
...
...
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