Sha256: 9451886445e3abcd274803bd08c9db2d4521c9c9c9ced1c471f948bff6bc330a
Contents?: true
Size: 1.28 KB
Versions: 2
Compression:
Stored size: 1.28 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', dashboard_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sufia-0.0.1.pre2 | app/views/generic_files/_breadcrumbs.html.erb |
sufia-0.0.1.pre1 | app/views/generic_files/_breadcrumbs.html.erb |