Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui-styleguide
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
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
Weby
ui-styleguide
Commits
8a3db906
Commit
8a3db906
authored
4 years ago
by
xaralis
Browse files
Options
Downloads
Patches
Plain Diff
Calendar renderer in agenda style
parent
a9a97654
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/js/components/calendar/Renderer.vue
+8
-4
8 additions, 4 deletions
source/js/components/calendar/Renderer.vue
with
8 additions
and
4 deletions
source/js/components/calendar/Renderer.vue
+
8
−
4
View file @
8a3db906
<
template
>
<
template
>
<div
class=
"calendar grid grid-cols-4"
>
<div
class=
"calendar grid grid-cols-4"
>
<div
class=
"col-span-4 xl:col-span-1"
>
<div
v-if=
"showBanner"
class=
"col-span-4 xl:col-span-1"
>
<aside
class=
"banner bg-orange-300 text-white h-full"
>
<aside
class=
"banner bg-orange-300 text-white h-full"
>
<i
class=
"ico--calendar banner__icon"
></i>
<i
class=
"ico--calendar banner__icon"
></i>
<div
class=
"banner__body"
>
<div
class=
"banner__body"
>
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
</div>
</div>
</aside>
</aside>
</div>
</div>
<div
class=
"col-span-4 xl:col-span-3"
>
<div
:
class=
"
{'
col-span-4 xl:col-span-3
': showBanner, 'col-span-4': !showBanner}
">
<div
class=
"grid grid-cols-12 items-center calendar-table-row"
v-for=
"event in events"
v-bind:key=
"event.id"
>
<div
class=
"grid grid-cols-12 items-center calendar-table-row"
v-for=
"event in events"
v-bind:key=
"event.id"
:class=
"
{'calendar-table-row--standalone': !showBanner}"
>
<div
class=
"col-span-2 text-orange-300 head-alt-md calendar-table-row__col"
><span>
{{
event
.
startTimestamp
|
dateDay
}}
</span></div>
<div
class=
"col-span-2 text-orange-300 head-alt-md calendar-table-row__col"
><span>
{{
event
.
startTimestamp
|
dateDay
}}
</span></div>
<div
class=
"col-span-8 grid grid-cols-3 col-gap-4 calendar-table-row__col"
:class=
"
{'calendar-table-row__col--norborder': !event.mapLink}">
<div
class=
"col-span-8 grid grid-cols-3 col-gap-4 calendar-table-row__col"
:class=
"
{'calendar-table-row__col--norborder': !event.mapLink}">
<div
class=
"col-span-3 md:col-span-1"
>
<div
class=
"col-span-3 md:col-span-1"
>
...
@@ -54,7 +54,11 @@
...
@@ -54,7 +54,11 @@
hasMore
:
{
hasMore
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
,
default
:
true
,
}
},
showBanner
:
{
type
:
Boolean
,
default
:
true
,
},
},
},
filters
:
{
filters
:
{
dateDay
:
(
val
)
=>
{
dateDay
:
(
val
)
=>
{
...
...
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