Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
Učebnice
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Učebnice
Commits
96eedded
Commit
96eedded
authored
1 year ago
by
Tomáš Valenta
Browse files
Options
Downloads
Patches
Plain Diff
smaller clickable area - nicer experience
parent
34b092f4
No related branches found
No related tags found
No related merge requests found
Pipeline
#16466
passed
1 year ago
Stage: build
Stage: test_deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lectures/templates/lectures/view_group_lectures.html
+10
-4
10 additions, 4 deletions
lectures/templates/lectures/view_group_lectures.html
static_src/view_group_lectures.js
+7
-0
7 additions, 0 deletions
static_src/view_group_lectures.js
with
17 additions
and
4 deletions
lectures/templates/lectures/view_group_lectures.html
+
10
−
4
View file @
96eedded
...
...
@@ -50,15 +50,21 @@
{% for category in lecture_categories %}
<div
class=
"
flex flex-col gap-3 group justify-center p-4 cursor-pointer
hover:bg-gray-100
flex flex-col gap-3 group justify-center
__lecture-category
"
data-is-open=
"false"
>
<div
class=
"flex justify-between items-center"
>
<div
class=
"
flex justify-between items-center cursor-pointer p-4
__lecture-category-clickable
hover:bg-gray-100
"
>
<h2
class=
"text-3xl font-alt"
>
{{ category.grouper }}
</h2>
<div>
...
...
This diff is collapsed.
Click to expand it.
static_src/view_group_lectures.js
+
7
−
0
View file @
96eedded
...
...
@@ -19,6 +19,13 @@ const assignOpenerListeners = () => {
$
(
"
.__lecture-category
"
).
on
(
"
click
"
,
event
=>
{
if
(
!
$
(
event
.
target
).
hasClass
(
"
__lecture-category-clickable
"
)
&&
!
(
event
.
target
).
closest
(
"
.__lecture-category-clickable
"
).
length
===
0
)
{
return
}
if
(
event
.
currentTarget
.
dataset
.
isOpen
===
'
true
'
)
{
$
(
event
.
currentTarget
).
find
(
"
.__lecture-category-opener
"
).
...
...
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