forked from Bioconductor/bioconductor.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added desktop stylings for content, sidebar navigation, and breadcrumbs
- Loading branch information
1 parent
6e43925
commit 2d2e89a
Showing
6 changed files
with
97 additions
and
112 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<ul class="breadcrumbs"> | ||
<% crumbs = get_updated_breadcrumbs(breadcrumbs_trail, item) %> | ||
<% crumbs.each_with_index do |crumb, i| %> | ||
<% next unless crumb %> | ||
<% if (i + 1 < crumbs.length) %> | ||
<% | ||
crumb_id = crumb.identifier.to_s.dup | ||
crumb_id = "/packages/release/BiocViews.html" if crumb_id == "/packages/" | ||
crumb_id.sub!(/BiocViews\.html\/$/, "BiocViews.html") | ||
%> | ||
<li><a href="<%= crumb_id %>"><%= crumb.attributes[:title] %></a></li> | ||
<% else %> | ||
<li><%= crumb.attributes[:title] %></li> | ||
<% end %> | ||
<% end %> | ||
</ul> |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<% if @item.attributes.include? :suppress_subnav and @item[:suppress_subnav] == true %> | ||
<% elsif @pages.length > 0 %> | ||
<nav class="subnav"> | ||
<% @pages.sort{|a, b| a[:title] <=> b[:title]}.select do |p| %> | ||
<a href="<%= p.identifier %>"><%= p[:title] %></a> | ||
<% end %> | ||
</nav> | ||
<% end %> | ||
<% if (@item[:subnav].kind_of? Array) %> | ||
<% @item[:subnav].each do |s| %> | ||
<%= render(s[:include].to_s) %> | ||
<% end %> | ||
<% end %> |
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