view rhodecode/templates/compare/compare_cs.html @ 2977:cff9d4e1d821 beta

Fixed issue when node didn't exists at 'tip' and we tried calculate history based on that assumption. Now fallback to the changeset the node exists in for history calculation
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 04 Nov 2012 13:08:27 +0100
parents c25cc1c7c65f
children 25d77aef2729
line wrap: on
line source

## Changesets table !
<div class="container">
  <table class="compare_view_commits noborder">
  %if not c.cs_ranges:
    <tr><td>${_('No changesets')}</td></tr>
  %else:
    %for cnt, cs in enumerate(c.cs_ranges):
        <tr>
        <td><div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(h.email_or_none(cs.author),14)}"/></div></td>
        <td>
          %if cs.raw_id in c.statuses:
            <div title="${c.statuses[cs.raw_id][1]}" class="changeset-status-ico"><img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses[cs.raw_id][0])}" /></div>
          %endif
        </td>
        <td>${h.link_to('r%s:%s' % (cs.revision,h.short_id(cs.raw_id)),h.url('changeset_home',repo_name=c.target_repo,revision=cs.raw_id))}
        %if c.as_form:
          ${h.hidden('revisions',cs.raw_id)}
        %endif
        </td>
        <td><div class="author">${h.person(cs.author)}</div></td>
        <td><span class="tooltip" title="${h.age(cs.date)}">${cs.date}</span></td>
        <td><div class="message">${h.urlify_commit(h.wrap_paragraphs(cs.message),c.repo_name)}</div></td>
        </tr>
    %endfor
  %endif
  </table>
</div>