##// END OF EJS Templates
vcs: Use correct repo name attribute and remove workaround.
vcs: Use correct repo name attribute and remove workaround.

File last commit:

r786:6387ba98 default
r898:b19bad01 default
Show More
changelog_summary_data.html
136 lines | 5.3 KiB | text/html | HtmlLexer
/ rhodecode / templates / changelog / changelog_summary_data.html
project: added all source files and assets
r1 ## -*- coding: utf-8 -*-
<%namespace name="base" file="/base/base.html"/>
%if c.repo_commits:
<table class="rctable repo_summary table_disp">
<tr>
summary/changelog: unified how data is displayed for summary and changelog pages....
r472
<th class="status" colspan="2"></th>
project: added all source files and assets
r1 <th>${_('Commit')}</th>
<th>${_('Commit message')}</th>
<th>${_('Age')}</th>
<th>${_('Author')}</th>
<th>${_('Refs')}</th>
</tr>
%for cnt,cs in enumerate(c.repo_commits):
<tr class="parity${cnt%2}">
summary/changelog: unified how data is displayed for summary and changelog pages....
r472
<td class="td-status">
%if c.statuses.get(cs.raw_id):
<div class="changeset-status-ico shortlog">
%if c.statuses.get(cs.raw_id)[2]:
<a class="tooltip" title="${_('Commit status: %s\nClick to open associated pull request #%s') % (c.statuses.get(cs.raw_id)[0], c.statuses.get(cs.raw_id)[2])}" href="${h.url('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}">
<div class="${'flag_status %s' % c.statuses.get(cs.raw_id)[0]}"></div>
</a>
%else:
<a class="tooltip" title="${_('Commit status: %s') % h.commit_status_lbl(c.statuses.get(cs.raw_id)[0])}" href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id,anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
<div class="${'flag_status %s' % c.statuses.get(cs.raw_id)[0]}"></div>
</a>
%endif
</div>
%else:
<div class="tooltip flag_status not_reviewed" title="${_('Commit status: Not Reviewed')}"></div>
%endif
</td>
<td class="td-comments">
%if c.comments.get(cs.raw_id,[]):
<a title="${_('Commit has comments')}" href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id,anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
<i class="icon-comment icon-comment-colored"></i> ${len(c.comments[cs.raw_id])}
</a>
%endif
</td>
project: added all source files and assets
r1 <td class="td-commit">
<pre><a href="${h.url('changeset_home', repo_name=c.repo_name, revision=cs.raw_id)}">${h.show_id(cs)}</a></pre>
</td>
summary: use the same method to trim the messages as in changelog....
r494
<td class="td-description mid">
<div class="log-container truncate-wrap">
<div class="message truncate" id="c-${cs.raw_id}">${h.urlify_commit_message(cs.message, c.repo_name)}</div>
</div>
project: added all source files and assets
r1 </td>
summary/changelog: unified how data is displayed for summary and changelog pages....
r472
project: added all source files and assets
r1 <td class="td-time">
${h.age_component(cs.date)}
</td>
<td class="td-user author">
ux: #4037 use gravatar for commit email and add tooltips for name + email
r410 ${base.gravatar_with_user(cs.author)}
project: added all source files and assets
r1 </td>
summary/changelog: unified how data is displayed for summary and changelog pages....
r472
dan
ux: show multiple tags/branches in changelog/summary instead of truncating
r786 <td class="td-tags">
<div class="autoexpand">
project: added all source files and assets
r1 %if h.is_hg(c.rhodecode_repo):
%for book in cs.bookmarks:
<span class="booktag tag" title="${_('Bookmark %s') % book}">
<a href="${h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id)}"><i class="icon-bookmark"></i>${h.shorter(book)}</a>
</span>
%endfor
%endif
## tags
%for tag in cs.tags:
<span class="tagtag tag" title="${_('Tag %s') % tag}">
<a href="${h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id)}"><i class="icon-tag"></i>${h.shorter(tag)}</a>
</span>
%endfor
## branch
%if cs.branch:
<span class="branchtag tag" title="${_('Branch %s') % cs.branch}">
<a href="${h.url('changelog_home',repo_name=c.repo_name,branch=cs.branch)}"><i class="icon-code-fork"></i>${h.shorter(cs.branch)}</a>
</span>
%endif
</div>
</td>
</tr>
%endfor
</table>
<script type="text/javascript">
$(document).pjax('#shortlog_data .pager_link','#shortlog_data', {timeout: 2000, scrollTo: false });
tooltips: remove all occurences of explicit tooltip activation
r385 $(document).on('pjax:success', function(){ timeagoActivate(); });
project: added all source files and assets
r1 </script>
<div class="pagination-wh pagination-left">
${c.repo_commits.pager('$link_previous ~2~ $link_next')}
</div>
%else:
%if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
<div class="quick_start">
<div class="fieldset">
<div class="left-label">${_('Add or upload files directly via RhodeCode:')}</div>
<div class="right-content">
<div id="add_node_id" class="add_node">
<a href="${h.url('files_add_home',repo_name=c.repo_name,revision=0,f_path='', anchor='edit')}" class="btn btn-default">${_('Add New File')}</a>
</div>
</div>
%endif
</div>
dan
ux: show multiple tags/branches in changelog/summary instead of truncating
r786
project: added all source files and assets
r1 %if not h.is_svn(c.rhodecode_repo):
<div class="fieldset">
<div class="left-label">${_('Push new repo:')}</div>
<div class="right-content">
<pre>
${c.rhodecode_repo.alias} clone ${c.clone_repo_url}
${c.rhodecode_repo.alias} add README # add first file
${c.rhodecode_repo.alias} commit -m "Initial" # commit with message
${c.rhodecode_repo.alias} push ${'origin master' if h.is_git(c.rhodecode_repo) else ''} # push changes back
</pre>
</div>
</div>
<div class="fieldset">
<div class="left-label">${_('Existing repository?')}</div>
<div class="right-content">
<pre>
%if h.is_git(c.rhodecode_repo):
git remote add origin ${c.clone_repo_url}
git push -u origin master
%else:
hg push ${c.clone_repo_url}
%endif
</pre>
</div>
</div>
%endif
</div>
%endif