Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
DMDesign
Commits
ae62bc68
Commit
ae62bc68
authored
Aug 22, 2015
by
Amanda Ghassaei
Browse files
nav logic
parent
5a98239a
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/menus/templates/Ribbon.html
View file @
ae62bc68
<
%
if
(
allMenus
[
currentNav
].
parent
)
currentNav =
allMenus[currentNav].parent;
%
>
<div
class=
"btn-toolbar"
>
<div
class=
"btn-group"
>
<a
data-type=
"supercell"
class=
"btn btn-primary btn-ribbon ribbonCellMode<% if (cellMode == "
supercell
"){
%
>
ribbon-selected
<
%
}
%
>
" href="#">
<img
data-type=
"supercell"
src=
"assets/imgs/super-sm.png"
></a>
...
...
@@ -6,8 +7,10 @@
<a
data-type=
"part"
class=
"btn btn-primary btn-ribbon ribbonCellMode<% if (cellMode == "
part
"){
%
>
ribbon-selected
<
%
}
%
>
" href="#">
<img
data-type=
"part"
src=
"assets/imgs/part-sm.png"
></a>
<
%
}
%
>
<!--<a data-type="beam" class="btn btn-primary btn-ribbon ribbonCellMode<% if (cellMode == "beam"){ %> ribbon-selected<% } %>" href="#">Beam</a>-->
<a
data-type=
"hide"
class=
"btn btn-primary btn-ribbon ribbonCellMode<% if (cellMode == "
hide
"){
%
>
ribbon-selected"
<
%
}
%
>
">Hide
</a>
<
%
if
(
currentNav
!=
"
electronicNavSim
"
&&
currentNav
!=
"
mechanicalNavSim
"
&&
currentNav
!=
"
navAssemble
"
&&
currentNav
!=
"
navOptimize
"){%
>
<
%
if
(
currentNav
!=
"
navDesign
"){%
>
<a
data-type=
"hide"
class=
"btn btn-primary btn-ribbon ribbonCellMode<% if (cellMode == "
hide
"){
%
>
ribbon-selected"
<
%
}
%
>
">Hide
</a>
<
%
}
%
>
<
%
if
(
currentNav
!=
"
navSim
"
&&
currentNav
!=
"
navAssemble
"
&&
currentNav
!=
"
navOptimize
"){%
>
<a
class=
"btn btn-primary btn-ribbon ribbonDeleteMode<% if (deleteMode){ %> ribbon-selected"
<%
}
%
>
">
<span
class=
"fui-cross"
></span></a>
<
%
}
%
>
<a
id=
"ribbonAxesToggle"
class=
"btn btn-primary btn-ribbon <% if (axesAreVisible){ %> ribbon-selected"
<%
}
%
>
">Axes
</a>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment