blob: 2505bce0e5594f9bd0467e7e25452e3b9aabb03e [file] [log] [blame] [raw]
extends _layout.pug
block prepend content
nav.navbar.navbar-godbolt.navbar-expand-md.navbar-light.bg-light
include logo.pug
button.navbar-toggler(type="button" data-toggle="collapse" data-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation")
span.navbar-toggler-icon
.collapse.navbar-collapse#navbarContent
ul.navbar-nav.navbar-left.mr-auto
li.nav-item.dropdown
a.nav-link.dropdown-toggle#addDropdown(href="javascript:;" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") Add...
div.dropdown-menu(aria-labelledby="moreDropdown")
a.dropdown-item#add-editor(href="javascript:;" title="Click or drag to desired destination")
span.dropdown-icon.fa.fa-code
| Source Editor
a.dropdown-item#add-diff(href="javascript:;" title="Click or drag to desired destination")
span.dropdown-icon.fas.fa-exchange-alt
| Diff View
button.dropdown-item.btn.btn-sm.btn-light#add-tree(href="javascript:;" title="Click or drag to desired destination")
span.dropdown-icon.fa.fa-list-alt
| Tree (IDE Mode)
li.nav-item.dropdown
a.nav-link.dropdown-toggle#moreDropdown(href="javascript:;" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") More
div.dropdown-menu(aria-labelledby="moreDropdown")
a.dropdown-item#setting(href="javascript:;" data-target="#settings" data-toggle="modal")
span.dropdown-icon.fas.fa-sliders-h
| Settings
div.dropdown-divider
a.dropdown-item#ui-brokenlink(href="javascript:;")
span.dropdown-icon.fas.fa-undo-alt
| Reset UI layout
a.dropdown-item#ui-reset(href="javascript:;")
span.dropdown-icon.fas.fa-trash-alt
| Reset code and UI layout
a.dropdown-item#ui-duplicate(href="javascript:;")
span.dropdown-icon.fas.fa-external-link-alt
| Open new tab
a.dropdown-item#ui-history(href="javascript:;")
span.dropdown-icon.fas.fa-exchange-alt
| History
li.nav-item.ui-presentation-control.d-none
a.nav-link.ui-presentation-first(href="javascript:;")
span.dropdown-icon.fas.fa-fast-backward
| Start
li.nav-item.ui-presentation-control.d-none
a.nav-link.ui-presentation-prev(href="javascript:;")
span.dropdown-icon.fas.fa-backward
| Previous
li.nav-item.ui-presentation-control.d-none
a.nav-link.ui-presentation-next(href="javascript:;")
span.dropdown-icon.fas.fa-forward
| Next
ul#motd.navbar-nav.navbar-center.mr-auto.community-advert.d-none
span.content
| Thanks for using Compiler Explorer
span.community-hide(title="Hide and never show again" aria-label="Close")
button.close(type="button" aria-hidden="true") ×
ul.navbar-nav.navbar-right
if showSponsors
li.nav-item.btn.btn-outline-primary#ces(data-toggle="modal")
span#ces-banner-text Sponsors
include sponsor-icons.pug
li.nav-item.dropdown
a.nav-link.dropdown-toggle#share(href="javascript:;" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") Share
div.dropdown-menu.dropdown-menu-right
if storageSolution !== "null"
a#shareShort.dropdown-item(href="javascript:;" data-target="#sharelinkdialog" data-toggle="modal" data-bind="Short")
span.dropdown-icon.fas.fa-cloud
| Short Link
button.btn.btn-sm.copy-link-btn.clip-icon.float-right(data-toggle="none")
span.dropdown-icon.fa.fa-clipboard
a#shareFull.dropdown-item(href="javascript:;" data-target="#sharelinkdialog" data-toggle="modal" data-bind="Full")
span.dropdown-icon.fas.fa-store-slash
| Full Link
button.btn.btn-sm.copy-link-btn.clip-icon.float-right(data-toggle="none")
span.dropdown-icon.fa.fa-clipboard
a#shareEmbed.dropdown-item(href="javascript:;" data-target="#sharelinkdialog" data-toggle="modal" data-bind="Embed")
span.dropdown-icon.fas.fa-window-restore
| Embed in iframe
// This is not an oversight, there is in fact a .float-right missing here that's there in the other 2
button.btn.btn-sm.copy-link-btn.clip-icon(data-toggle="none")
span.dropdown-icon.fa.fa-clipboard
if policies.cookies.enabled || policies.privacy.enabled
li.nav-item.dropdown
a.nav-link.dropdown-toggle#policiesDropdown(href="javascript:;" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false")
|  Policies
span#policyBellNotification.d-none.badge.badge-pill.badge-primary
span.fa.fa-bell
div.dropdown-menu.dropdown-menu-right(aria-labelledby="policiesDropdown")
include menu-policies.pug
li.nav-item.dropdown
a.nav-link.dropdown-toggle#otherDropdown(href="javascript:;" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") Other
div.dropdown-menu.dropdown-menu-right(aria-labelledby="otherDropdown")
include menu-other.pug
block append footer
include popups.pug