Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
views_bootstrap-3465529
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
views_bootstrap-3465529
Commits
d3c5f4be
Commit
d3c5f4be
authored
2 years ago
by
Firass Ziedan
Committed by
Shelane French
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3202446
by firass.ziedan: Add tabs missing classes to li and a elements
parent
d8bda30f
No related branches found
Branches containing commit
Tags
8.x-4.4
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/views-bootstrap-tab.html.twig
+9
-2
9 additions, 2 deletions
templates/views-bootstrap-tab.html.twig
with
9 additions
and
2 deletions
templates/views-bootstrap-tab.html.twig
+
9
−
2
View file @
d3c5f4be
...
...
@@ -4,9 +4,16 @@
<div
id=
"views-bootstrap-tab-
{{
id
}}
"
{{
attributes.addClass
(
classes
)
}}
>
<ul
class=
"nav nav-
{{
tab_type
}}
{%
if
justified
%}
nav-justified
{%
endif
%}
"
>
{%
for
key
,
tab
in
tabs
%}
{%
set
tab_classes
=
[
loop.first
?
'active'
]
%}
{%
set
tab_classes
=
[
loop.first
?
'active'
,
'nav-item'
]
%}
<li
class=
"
{{
tab_classes
|
join
(
' '
)
}}
"
>
<a
href=
"
{{
"#tab-#{ id }-#{ key }"
}}
"
data-toggle=
"tab"
>
{{
tab
}}
</a>
{%
set
link_classes
=
[
loop.first
?
'active'
,
'nav-link'
]
%}
<a
href=
"
{{
"#tab-#{ id }-#{ key }"
}}
"
data-toggle=
"tab"
class=
"
{{
link_classes
|
join
(
' '
)
}}
"
>
{{
tab
}}
</a>
</li>
{%
endfor
%}
</ul>
...
...
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