Sha256: 83ce3d4395e4a7ac00583fd6fcf070d0026e6d1cee77081eef965e4da9cacec6
Contents?: true
Size: 1.3 KB
Versions: 13
Compression:
Stored size: 1.3 KB
Contents
<%# Copyright © 2012 The Pennsylvania State University Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. %> <div class="breadcrumbs"> <% include_file = true if include_file.blank? crumbs = [] crumbs << link_to('Home', root_path) case request.referer when /dashboard/ crumbs << link_to('Dashboard', sufia.dashboard_index_path) when /files/ crumbs << link_to('Back to previous', request.referer) when /catalog/ crumbs << link_to('Back to search results', request.referer) end crumbs << @generic_file.title.first if include_file crumbs.each do |crumb| %> <% if crumb == crumbs.last %> <span class="active"> <%= crumb %> <% else %> <span> <%= crumb %> <span class="divider">/</span> <% end %> </span> <% end %> </div><!-- /breadcrumbs -->
Version data entries
13 entries across 13 versions & 1 rubygems