% previous_file_rev = @filter.previous_revision_by_file[path] %>
<%= t('commit_filter.filters.form.fields.path.title') %>: <%= path %>
<%= form_tag '#', method: 'post', class: 'file_commits' do %> <%= hidden_field_tag :repository_path, @filter.repository_path %> <%= hidden_field_tag :project_slug, @filter.project_slug %> <%= hidden_field_tag :path, path %><%= version_control_diff_link path, commits.first[:id].try(:to_s) %> | <%= t('commit_filter.general.date') %> | <%= t('commit_filter.filters.form.fields.author.title') %> | <%= t('commit_filter.filters.form.fields.message.title') %> | |
---|---|---|---|---|
<% first_commit = previous_file_rev.blank? && commit[:id].try(:to_s) == commits.last[:id].try(:to_s) %> <% unless first_commit %> <% checked = param['rev'] == commit[:id].try(:to_s) ? true : false %> <% checked = true if commits_index == 0 && !param.has_key?('rev') %> <%= radio_button_tag :rev, commit[:id].try(:to_s), checked, id: '' %> <% end %> | <% unless commits_index == 0 %> <% checked = param['rev_to'] == commit[:id].try(:to_s) ? true : false %> <% checked = true if commits_index == (commits.length - 1) && !param.has_key?('rev_to') %> <%= radio_button_tag :rev_to, commit[:id].try(:to_s), checked, id: '' %> <% end %> | <%= annotate_file_link commit[:committed_at], commit[:id], path %> | <%= commit[:author]%> | <%= raw message_with_issue_urls(commit[:message]) %> |
<% checked = param['rev_to'] == previous_file_rev ? true : false %> <% checked = true unless param.has_key?('rev_to') %> <%= radio_button_tag :rev_to, previous_file_rev, checked, id: '' %> | ||||
<%= version_control_diff_link path, commits.first[:id].try(:to_s) %> |