Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangxiaoru
9 years ago
Commit
aace79af9dcca307930c4468831cc84fbafc82ba
1 parent
3c75f748
path-nav
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
4 deletions
apps/partial/controllers/index.js
doraemon/views/partial/path-nav.hbs
apps/partial/controllers/index.js
View file @
aace79a
...
...
@@ -47,19 +47,16 @@ const index = (req, res) => {
nav
:
true
,
pathNav
:
[
{
link
:
true
,
href
:
''
,
pathTitle
:
''
,
name
:
'MEN首页'
},
{
link
:
true
,
href
:
''
,
pathTitle
:
''
,
name
:
'咨询'
},
{
link
:
false
,
href
:
''
,
pathTitle
:
''
,
name
:
'咨询'
...
...
doraemon/views/partial/path-nav.hbs
View file @
aace79a
{{#if
nav
}}
<p
class=
"path-nav"
>
{{#
each
pathNav
}}
{{#if
link
}}
{{#if
href
}}
<a
{{#if
@last
}}
class=
"last"
{{/if}}
href=
"
{{
href
}}
"
title=
"
{{
pathTitle
}}
"
>
{{{
name
}}}
</a>
{{^}}
<span
{{#if
@last
}}
class=
"last"
{{/if}}
title=
"
{{
pathTitle
}}
"
>
{{{
name
}}}
</span>
...
...
Please
register
or
login
to post a comment