-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
@jkleinsc I’m running into an issue where the category I put into the sidebar isn’t rendering there. Is that expected? What do I need to modify to make it render in the new location (navigation.hbs)?
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<header class="sidebar-nav-header sidebar-nav-section"> | ||
<a class="sidebar-nav-logo" href="#"> | ||
{{partial "components/logo-svg"}} | ||
</a> | ||
<a href="#" class="settings-trigger"> | ||
<span class="mega-octicon octicon-gear"></span> | ||
</a> | ||
<nav class="settings-nav"> | ||
{{#if session.isAuthenticated}} | ||
<a href="#" class="logout" {{ action 'invalidateSession' }}>Logout</a> | ||
{{else}} | ||
{{#link-to 'login'}}Login{{/link-to}} | ||
{{/if}} | ||
</nav> | ||
</header> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<div class="primary-nav"> | ||
|
||
{{#if userCan_inventory}} | ||
<div class="sidebar-nav-section primary-nav-item"> | ||
|
||
<div class="category-title"> | ||
<h2> | ||
{{#link-to 'inventory' class="primary-section-link" }} | ||
<span class="mega-octicon octicon-package"></span> | ||
Inventory | ||
{{/link-to}} | ||
</h2> | ||
</div> | ||
|
||
<div class="category-sub-items"> | ||
{{#if userCan_add_inventory_request}} | ||
{{#link-to 'inventory.index' class="sub-section-link"}} | ||
Requests | ||
<span class="octicon octicon-chevron-right"></span> | ||
{{/link-to}} | ||
{{/if}} | ||
{{#if userCan_inventory}} | ||
{{#link-to 'inventory.listing' class="sub-section-link"}} | ||
Items | ||
<span class="octicon octicon-chevron-right"></span> | ||
{{/link-to}} | ||
{{#if userCan_add_inventory_item}} | ||
{{#link-to 'inventory.batch' 'new' class="sub-section-link"}} | ||
Inventory Received | ||
<span class="octicon octicon-plus"></span> | ||
{{/link-to}} | ||
{{/if}} | ||
{{#link-to 'inventory.reports' class="sub-section-link"}} | ||
Reports | ||
<span class="octicon octicon-chevron-right"></span> | ||
{{/link-to}} | ||
{{/if}} | ||
</div> | ||
|
||
</div> | ||
{{/if}} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jkleinsc
Member
|
||
|
||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{#if allowSearch}} | ||
<div class="sidebar-nav-search sidebar-nav-section" role="search"> | ||
<div class="form-group"> | ||
{{text-search valueBinding="searchText" autofocus="true" placeholder="Search" class="form-control"}} | ||
</div> | ||
<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button> | ||
</div> | ||
{{/if}} |
1 comment
on commit 7c35816
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jglovier Not sure I follow. What are you expecting to see and what are you actually seeing
@jkleinsc this code isn't rendering anything in the view. I pulled it out from
index.hbs
and dropped it in here (with some slightly reformatted markup), but it doesn't render in the view, only the wrappingdiv.primary-nav
gets rendered.I did a bit more digging around and I'm guessing it has to do with
app/controllers/navigation.js
andapp/controllers/index.js
?