ebee5077f2
Prior, any of the specified IDs could have been hijacked by a table of contents header, breaking the tab functionality. For example, a `## Notes` header would get the id `notes` and prevent the Discussion tab from being activated. Closes #3908
22 lines
655 B
Text
22 lines
655 B
Text
%ul.nav.nav-tabs.merge-request-tabs
|
|
%li.notes-tab
|
|
%a{href: '/foo/bar/merge_requests/1', data: {target: 'div#notes', action: 'notes', toggle: 'tab'}}
|
|
Discussion
|
|
%li.commits-tab
|
|
%a{href: '/foo/bar/merge_requests/1/commits', data: {target: 'div#commits', action: 'commits', toggle: 'tab'}}
|
|
Commits
|
|
%li.diffs-tab
|
|
%a{href: '/foo/bar/merge_requests/1/diffs', data: {target: 'div#diffs', action: 'diffs', toggle: 'tab'}}
|
|
Diffs
|
|
|
|
.tab-content
|
|
#notes.notes.tab-pane
|
|
Notes Content
|
|
#commits.commits.tab-pane
|
|
Commits Content
|
|
#diffs.diffs.tab-pane
|
|
Diffs Content
|
|
|
|
.mr-loading-status
|
|
.loading
|
|
Loading Animation
|