##// END OF EJS Templates
comments: improved comments form layout....
comments: improved comments form layout. - changed to be made to support comments types - cleaner UI

File last commit:

r1270:a96f2b1a default
r1281:71c01ca9 default
Show More
compare_commits.html
113 lines | 3.8 KiB | text/html | HtmlLexer
project: added all source files and assets
r1 ## Changesets table !
<%namespace name="base" file="/base/base.html"/>
diffs: compare overhaul....
r1259 %if c.ancestor:
<div class="ancestor">${_('Common Ancestor Commit')}:
compare: fixed spacing for common compare commit in PR open compare page.
r1270 <a href="${h.url('changeset_home', repo_name=c.repo_name, revision=c.ancestor)}">
diffs: compare overhaul....
r1259 ${h.short_id(c.ancestor)}
compare: fixed spacing for common compare commit in PR open compare page.
r1270 </a>. ${_('Compare was calculated based on this shared commit.')}
diffs: compare overhaul....
r1259 </div>
%endif
project: added all source files and assets
r1
diffs: compare overhaul....
r1259 <div class="container">
dan
pullrequests: added peppercorn sequence start/end markers to...
r955 <input type="hidden" name="__start__" value="revisions:sequence">
project: added all source files and assets
r1 <table class="rctable compare_view_commits">
<tr>
<th>${_('Time')}</th>
<th>${_('Author')}</th>
<th>${_('Commit')}</th>
<th></th>
<th>${_('Description')}</th>
</tr>
%for commit in c.commit_ranges:
<tr id="row-${commit.raw_id}"
commit_id="${commit.raw_id}"
class="compare_select"
pull-requests: updated versioning support....
r1268 style="${'display: none' if c.collapse_all_commits else ''}"
project: added all source files and assets
r1 >
<td class="td-time">
${h.age_component(commit.date)}
</td>
<td class="td-user">
${base.gravatar_with_user(commit.author, 16)}
</td>
<td class="td-hash">
<code>
<a href="${h.url('changeset_home',
repo_name=c.target_repo.repo_name,
revision=commit.raw_id)}">
r${commit.revision}:${h.short_id(commit.raw_id)}
</a>
${h.hidden('revisions',commit.raw_id)}
</code>
</td>
<td class="expand_commit"
data-commit-id="${commit.raw_id}"
title="${_( 'Expand commit message')}"
>
<div class="show_more_col">
<i class="show_more"></i>
</div>
</td>
<td class="mid td-description">
<div class="log-container truncate-wrap">
<div
id="c-${commit.raw_id}"
class="message truncate"
data-message-raw="${commit.message}"
>
${h.urlify_commit_message(commit.message, c.repo_name)}
</div>
</div>
</td>
</tr>
%endfor
pull-requests: updated versioning support....
r1268 <tr class="compare_select_hidden" style="${'' if c.collapse_all_commits else 'display: none'}">
diffs: compare overhaul....
r1259 <td colspan="5">
pull-requests: updated versioning support....
r1268 ${ungettext('%s commit hidden','%s commits hidden', len(c.commit_ranges)) % len(c.commit_ranges)},
<a href="#" onclick="$('.compare_select').show();$('.compare_select_hidden').hide(); return false">${ungettext('show it','show them', len(c.commit_ranges))}</a>
diffs: compare overhaul....
r1259 </td>
</tr>
% if not c.commit_ranges:
<tr class="compare_select">
<td colspan="5">
${_('No commits in this compare')}
</td>
</tr>
% endif
project: added all source files and assets
r1 </table>
dan
pullrequests: added peppercorn sequence start/end markers to...
r955 <input type="hidden" name="__end__" value="revisions:sequence">
diffs: compare overhaul....
r1259
project: added all source files and assets
r1 </div>
<script>
$('.expand_commit').on('click',function(e){
var target_expand = $(this);
var cid = target_expand.data('commitId');
diffs: compare overhaul....
r1259 // ## TODO: dan: extract styles into css, and just toggleClass('open') here
project: added all source files and assets
r1 if (target_expand.hasClass('open')){
$('#c-'+cid).css({
'height': '1.5em',
'white-space': 'nowrap',
'text-overflow': 'ellipsis',
'overflow':'hidden'
});
target_expand.removeClass('open');
}
else {
$('#c-'+cid).css({
'height': 'auto',
'white-space': 'pre-line',
'text-overflow': 'initial',
'overflow':'visible'
});
target_expand.addClass('open');
}
});
$('.compare_select').on('click',function(e){
var cid = $(this).attr('commit_id');
$('#row-'+cid).toggleClass('hl', !$('#row-'+cid).hasClass('hl'));
});
</script>