-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from Blucepu/master
refactor:兼容app顶部tab显示
- Loading branch information
Showing
7 changed files
with
66 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
if !isIncluded('community/communityTab') | ||
mixin renderCommunityTab(isApp,activeTab,communityTab,user) | ||
.btn-group.btn-group-justified.m-b-05 | ||
.btn-group(role="group") | ||
if !isApp | ||
.btn-group.btn-group-justified.m-b-05 | ||
.btn-group(role="group") | ||
a.btn.btn-default( | ||
class=activeTab === communityTab.home ? 'btn-primary': '' | ||
href=`/c` | ||
) 专业列表 | ||
.btn-group(role="group") | ||
a.btn.btn-default( | ||
class=activeTab === communityTab.home ? 'btn-primary': '' | ||
href=`/c` | ||
) 专业列表 | ||
.btn-group(role="group") | ||
a.btn.btn-default( | ||
class=activeTab === communityTab.new ? 'btn-primary': '' | ||
href=`/c/new` | ||
) 最新 | ||
.btn-group(role="group") | ||
if user | ||
a.btn.btn-default( | ||
class=activeTab === communityTab.subscribe ? 'btn-primary': '' | ||
href=`/c/sub` | ||
) 我的订阅 | ||
else | ||
button.btn.btn-default( | ||
onclick="RootApp.openLoginPanel('login')" | ||
) 我的订阅 | ||
class=activeTab === communityTab.new ? 'btn-primary': '' | ||
href=`/c/new` | ||
) 最新 | ||
.btn-group(role="group") | ||
if user | ||
a.btn.btn-default( | ||
class=activeTab === communityTab.subscribe ? 'btn-primary': '' | ||
href=`/c/sub` | ||
) 我的订阅 | ||
else | ||
button.btn.btn-default( | ||
onclick="RootApp.openLoginPanel('login')" | ||
) 我的订阅 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters