Sha256: c30867ee8c1a47468e64bb6356e0dae5fe2030ada0dc3eb8bd95a1fc1382fc50

Contents?: true

Size: 1.74 KB

Versions: 34

Compression:

Stored size: 1.74 KB

Contents

<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>

<div class="contextual">
  <%= render :partial => 'navigation' %>
</div>

<h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'file', :revision => @rev } %></h2>

<%= render :partial => 'link_to_functions' %>

<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>

<div class="autoscroll">
<table class="filecontent annotate syntaxhl">
  <tbody>
    <% line_num = 1; previous_revision = nil %>
    <% syntax_highlight_lines(@path, Redmine::CodesetUtil.to_utf8_by_setting(@annotate.content)).each do |line| %>
      <% revision = @annotate.revisions[line_num - 1] %>
      <tr id="L<%= line_num %>" class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>">
        <th class="line-num"><a href="#L<%= line_num %>"><%= line_num %></a></th>
        <td class="revision">
          <% if revision && revision != previous_revision %>
            <%= revision.identifier ?
                  link_to_revision(revision, @repository) : format_revision(revision) %>
          <% end %>
        </td>
        <td class="author">
          <% if revision && revision != previous_revision %>
            <% author = Redmine::CodesetUtil.to_utf8(revision.author.to_s,
                                                     @repository.repo_log_encoding) %>
            <%= author.split('<').first %>
          <% end %>
        </td>
        <td class="line-code"><pre><%= line.html_safe %></pre></td>
      </tr>
      <% line_num += 1; previous_revision = revision %>
    <% end %>
  </tbody>
</table>
</div>

<% html_title(l(:button_annotate)) -%>

<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<% end %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
redmine_extensions-0.0.39 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.0.38 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.0.37 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.1.11 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.1.10 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.0.36 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.0.34 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.1.09 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.1.07 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.1.06 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.1.05 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.1.04 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.1.03 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.0.33 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.1.02 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.1.01 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.0.29 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.0.28 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.0.27 spec/redmine/app/views/repositories/annotate.html.erb
redmine_extensions-0.0.24 spec/redmine/app/views/repositories/annotate.html.erb