You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

entry.html.erb 1.3KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
  2. <div class="contextual">
  3. <%= render :partial => 'navigation' %>
  4. </div>
  5. <h2 class="breadcrumbs"><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2>
  6. <%= render :partial => 'link_to_functions' %>
  7. <% if Redmine::MimeType.is_type?('image', @path) %>
  8. <%= render :partial => 'common/image', :locals => {:path => @raw_url, :alt => @path} %>
  9. <% elsif @content %>
  10. <%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %>
  11. <% else %>
  12. <% kind = if Redmine::MimeType.is_type?('video', @path)
  13. 'video'
  14. elsif Redmine::MimeType.is_type?('audio', @path)
  15. 'audio'
  16. end %>
  17. <%= render :partial => 'common/other',
  18. :locals => {
  19. :path => (@raw_url if @repository.supports_cat?),
  20. :kind => kind,
  21. :download_link => @repository.supports_cat? ? link_to(
  22. l(:label_no_preview_download),
  23. @raw_url,
  24. :class => 'icon icon-download') : nil } %>
  25. <% end %>
  26. <span class="pagination filepreview">
  27. <%= render_pagination %>
  28. </span>
  29. <% content_for :header_tags do %>
  30. <%= stylesheet_link_tag "scm" %>
  31. <% end %>