jlukic
10 years ago
7 changed files with 92 additions and 99 deletions
@ -0,0 +1,72 @@ |
|||
<% currentCollection = @getCollection("documents").findAll({type: $in: [@document.type]},[{title: 1}]).toJSON() %> |
|||
<% pageCount = @pageCount(currentCollection) %> |
|||
<% pageNumber = @getPage(currentCollection, @document.id) %> |
|||
<% pageCollection = @getPageCollection(currentCollection, @document.id) %> |
|||
|
|||
<div class="ui fixed inverted main menu"> |
|||
<div class="ui container"> |
|||
<a class="launch item"> |
|||
<i class="content icon"></i> |
|||
Menu |
|||
</a> |
|||
<% if @document.title: %> |
|||
<div class="item"> |
|||
<%= @document.title %> |
|||
</div> |
|||
<% if pageNumber > 1 and currentCollection[pageNumber - 2]?: %> |
|||
<a class="icon item" href="<%= currentCollection[pageNumber - 2].url %>"><i class="left chevron icon"></i></a> |
|||
<% else: %> |
|||
<div class="disabled icon item"><i class="left chevron icon"></i></div> |
|||
<% end %> |
|||
<div class="section ui page dropdown link item"> |
|||
<span class="count"><%= "#{pageNumber} of #{pageCount}" %></span> |
|||
<div class="menu"> |
|||
<% for element, index in currentCollection: %> |
|||
<a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"> |
|||
<%= element.title %> |
|||
</a> |
|||
<% end %> |
|||
</div> |
|||
</div> |
|||
<% if pageNumber isnt pageCount and currentCollection[pageNumber]?: %> |
|||
<a class="icon item" href="<%= currentCollection[pageNumber].url %>"><i class="right chevron icon"></i></a> |
|||
<% else: %> |
|||
<div class="disabled icon item"><i class="right chevron icon"></i></div> |
|||
<% end %> |
|||
<% end %> |
|||
<div class="right menu"> |
|||
<% if 'developments' in @getEnvironments(): %> |
|||
<% else: %> |
|||
<div class="vertically fitted borderless item"> |
|||
<iframe class="github" src="http://ghbtns.com/github-btn.html?user=semantic-org&repo=semantic-ui&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe> |
|||
</div> |
|||
<% end %> |
|||
<a class="popup icon music item" data-content="Play Music"> |
|||
<i class="alternate music icon"></i> |
|||
</a> |
|||
<a class="popup icon github item" data-content="View project on GitHub" href="https://github.com/Semantic-Org/Semantic-UI"> |
|||
<i class="alternate github icon"></i> |
|||
</a> |
|||
<div class="ui language dropdown icon item" id="languages" data-content="Select Language"> |
|||
<i class="world icon"></i> |
|||
<div class="menu"> |
|||
<div class="header">Search Languages</div> |
|||
<div class="ui icon search input"> |
|||
<i class="search icon"></i> |
|||
<input type="text" placeholder="Search languages..."> |
|||
</div> |
|||
<%- @partial('languages') %> |
|||
</div> |
|||
</div> |
|||
<div class="item"> |
|||
<div class="ui hidden right aligned search input" id="search"> |
|||
<div class="ui transparent icon input"> |
|||
<input class="prompt" type="text" placeholder="Search..."> |
|||
<i class="inverted search link icon" data-content="Search UI"></i> |
|||
</div> |
|||
<div class="results"></div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
Loading…
Reference in new issue