<% end %>
<div class="source_tabs">
- <ul class="tablinks">
- <% first=true %>
- <% if @snapshot.has_source && has_role?(:codeviewer, @snapshot) %>
- <li class="<%= 'first' if first -%>">
- <a href="<%= ApplicationController.root_context -%>/api/sources?resource=<%= @resource.key -%>&format=txt"><%= message('raw') -%></a>
- </li>
- <% first=false
- end %>
- <% unless @popup_mode %>
- <li class="<%= 'first' if first -%>">
- <a href="<%= url_for :controller => 'resource', :action => 'index', :id => @resource.key, :period => params[:period], :metric => params[:metric],
- :rule => params[:rule] ? params[:rule] : params[:rule_sev], :display_title => 'true' -%>"
- onclick="window.open(this.href,'resource','height=800,width=900,scrollbars=1,resizable=1');return false;"
- id="new-window-<%= @resource.key.parameterize -%>"><%= image_tag 'new-window-16.gif', :alt => message('new_window') -%></a>
- </li>
- <% end %>
- </ul>
<ul class="tabs">
<% @extensions.each do |extension| %>
<li>