<% if @snapshot %>
<div id="snapshot_title" class="page_title">
<h4>
- <%= link_to_favourite(@project) -%> <%= "Version #{@snapshot.version} - " if @snapshot.version.present? -%><%= l @snapshot.created_at -%>
+ <%= "Version #{@snapshot.version} - " if @snapshot.version.present? -%><%= l @snapshot.created_at -%>
<% if @snapshot.project_snapshot.periods? %>
<form method="GET" action="<%= url_for :controller => :dashboard, :action => :index, :id => @resource.id -%>" style="display: inline" class="spacer-left">
<input type="hidden" name="did" value="<%= @dashboard.id -%>"/>
<% if @breadcrumbs %>
<div id="crumbs">
- <% if @permalink %>
- <ul id="crumbs-ops">
+ <ul id="crumbs-ops">
+ <% if @resource %>
+ <li>
+ <%= link_to_favourite(@resource) -%>
+ </li>
+ <% end %>
+ <% if @permalink %>
<li>
<a href="<%= @permalink -%>"><img src="<%= ApplicationController.root_context -%>/images/permalink.png" width="16" height="16" title="<%= message('permalink') -%>"/></a>
</li>
- </ul>
- <% end %>
+ <% end %>
+ </ul>
<ul id="bc">
<%
@breadcrumbs.each do |breadcrumb|
%>
<div id="crumbs">
- <% if !@review %>
- <ul id="crumbs-ops">
+ <ul id="crumbs-ops">
+ <% if @resource %>
+ <li>
+ <%= link_to_favourite(@resource) -%>
+ </li>
+ <% end %>
+ <% if !@review %>
<li>
<a href="<%= url_for(:overwrite_params => {:id => displayed_resource.key}) -%>"><img src="<%= ApplicationController.root_context -%>/images/permalink.png" width="16" height="16" title="<%= message('permalink') -%>"/></a>
</li>
- </ul>
- <% end %>
+ <% end %>
+ </ul>
<ul id="bc">
<%
resource_link = {}