##// END OF EJS Templates
feat(remap and rescan): added more relient remap and removal option, and also split the logic to either add or cleanup
feat(remap and rescan): added more relient remap and removal option, and also split the logic to either add or cleanup

File last commit:

r5037:bd722d6e default
r5619:c9e499e7 default
Show More
summary_commits.mako
168 lines | 6.4 KiB | application/x-mako | MakoHtmlLexer
repo-summary: re-implemented summary view as pyramid....
r1785 <%namespace name="base" file="/base/base.mako"/>
%if c.repo_commits:
tables: unified tables for main pages of rhodecode repo pages.
r4511 <table class="rctable table-bordered">
repo-summary: re-implemented summary view as pyramid....
r1785 <tr>
Liviu
Aligned expanded sumarry box content better and moved comments as last column
r3639 <th class="status"></th>
tables: unified tables for main pages of rhodecode repo pages.
r4511 <th></th>
repo-summary: re-implemented summary view as pyramid....
r1785 <th>${_('Commit message')}</th>
<th>${_('Age')}</th>
<th>${_('Author')}</th>
Liviu
Aligned expanded sumarry box content better and moved comments as last column
r3639 <th colspan="2">${_('Refs')}</th>
repo-summary: re-implemented summary view as pyramid....
r1785 </tr>
issue-trackers: cache the fetched issue tracker paterns before loop iteration in summary and compare.
r2446
## to speed up lookups cache some functions before the loop
<%
active_patterns = h.get_active_pattern_entries(c.repo_name)
urlify_commit_message = h.partial(h.urlify_commit_message, active_pattern_entries=active_patterns)
%>
repo-summary: re-implemented summary view as pyramid....
r1785 %for cnt,cs in enumerate(c.repo_commits):
<tr class="parity${cnt%2}">
<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]:
pull-requests: prepare the migration of pull request to pyramid....
r1813 <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.route_path('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}">
ui: changed status icons to <i> elements instead of div.
r3883 <i class="icon-circle review-status-${c.statuses.get(cs.raw_id)[0]}"></i>
repo-summary: re-implemented summary view as pyramid....
r1785 </a>
%else:
repo-commits: ported changeset code into pyramid views....
r1951 <a class="tooltip" title="${_('Commit status: {}').format(h.commit_status_lbl(c.statuses.get(cs.raw_id)[0]))}" href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=cs.raw_id,_anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
ui: changed status icons to <i> elements instead of div.
r3883 <i class="icon-circle review-status-${c.statuses.get(cs.raw_id)[0]}"></i>
repo-summary: re-implemented summary view as pyramid....
r1785 </a>
%endif
</div>
%else:
ui: changed status icons to <i> elements instead of div.
r3883 <i class="icon-circle review-status-not_reviewed" title="${_('Commit status: Not Reviewed')}"></i>
repo-summary: re-implemented summary view as pyramid....
r1785 %endif
</td>
commits: use no-wrap version of commit td in commits/summary grids.
r3903 <td class="td-hash">
summary-page: re-organize summary page info for better UX....
r3183 <code>
<a href="${h.route_path('repo_commit', repo_name=c.repo_name, commit_id=cs.raw_id)}">${h.show_id(cs)}</a>
<i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${cs.raw_id}" title="${_('Copy the full commit id')}"></i>
</code>
repo-summary: re-implemented summary view as pyramid....
r1785 </td>
<td class="td-description mid">
<div class="log-container truncate-wrap">
issue-trackers: cache the fetched issue tracker paterns before loop iteration in summary and compare.
r2446 <div class="message truncate" id="c-${cs.raw_id}">${urlify_commit_message(cs.message, c.repo_name)}</div>
repo-summary: re-implemented summary view as pyramid....
r1785 </div>
</td>
<td class="td-time">
${h.age_component(cs.date)}
</td>
<td class="td-user author">
hovercacrds: added new tooltips and hovercards to expose certain information for objects shown in UI
r4026 ${base.gravatar_with_user(cs.author, tooltip=True)}
repo-summary: re-implemented summary view as pyramid....
r1785 </td>
<td class="td-tags">
<div class="autoexpand">
%if h.is_hg(c.rhodecode_repo):
%for book in cs.bookmarks:
dan
tooltip: use consistent h.tooltip usage to set tooltips.
r1843 <span class="booktag tag" title="${h.tooltip(_('Bookmark %s') % book)}">
files: ported repository files controllers to pyramid views.
r1927 <a href="${h.route_path('repo_files:default_path',repo_name=c.repo_name,commit_id=cs.raw_id, _query=dict(at=book))}"><i class="icon-bookmark"></i>${h.shorter(book)}</a>
repo-summary: re-implemented summary view as pyramid....
r1785 </span>
%endfor
%endif
## tags
%for tag in cs.tags:
dan
tooltip: use consistent h.tooltip usage to set tooltips.
r1843 <span class="tagtag tag" title="${h.tooltip(_('Tag %s') % tag)}">
files: ported repository files controllers to pyramid views.
r1927 <a href="${h.route_path('repo_files:default_path',repo_name=c.repo_name,commit_id=cs.raw_id, _query=dict(at=tag))}"><i class="icon-tag"></i>${h.shorter(tag)}</a>
repo-summary: re-implemented summary view as pyramid....
r1785 </span>
%endfor
## branch
%if cs.branch:
dan
tooltip: use consistent h.tooltip usage to set tooltips.
r1843 <span class="branchtag tag" title="${h.tooltip(_('Branch %s') % cs.branch)}">
changelog: rename changelog to commits pages
r3742 <a href="${h.route_path('repo_commits',repo_name=c.repo_name,_query=dict(branch=cs.branch))}"><i class="icon-code-fork"></i>${h.shorter(cs.branch)}</a>
repo-summary: re-implemented summary view as pyramid....
r1785 </span>
%endif
</div>
</td>
Liviu
Aligned expanded sumarry box content better and moved comments as last column
r3639 <td class="td-comments">
comments: always show comment count
r3640 <% cs_comments = c.comments.get(cs.raw_id,[]) %>
% if cs_comments:
<a title="${_('Commit has comments')}" href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=cs.raw_id,_anchor='comment-%s' % cs_comments[0].comment_id)}">
<i class="icon-comment"></i> ${len(cs_comments)}
</a>
% else:
<i class="icon-comment"></i> ${len(cs_comments)}
% endif
Liviu
Aligned expanded sumarry box content better and moved comments as last column
r3639 </td>
repo-summary: re-implemented summary view as pyramid....
r1785 </tr>
%endfor
</table>
<script type="text/javascript">
summary: fix timeout issues loading summary page without styling
r3645 $(document).pjax('#shortlog_data .pager_link','#shortlog_data', {timeout: 5000, scrollTo: false, push: false});
hovercacrds: added new tooltips and hovercards to expose certain information for objects shown in UI
r4026 $(document).on('pjax:success', function(){ timeagoActivate(); tooltipActivate();});
summary: fix timeout issues loading summary page without styling
r3645 $(document).on('pjax:timeout', function(event) {
// Prevent default timeout redirection behavior
event.preventDefault()
})
repo-summary: re-implemented summary view as pyramid....
r1785 </script>
<div class="pagination-wh pagination-left">
dan
webhelpers: replaced paginate library with custom lib
r4091 ${c.repo_commits.render()}
repo-summary: re-implemented summary view as pyramid....
r1785 </div>
%else:
summary: fixed ui on summary page for non-admins. The setup instructions were broken if user had no write permissions.
r4687
repo-summary: re-implemented summary view as pyramid....
r1785 <div class="quick_start">
<div class="fieldset">
summary: fixed ui on summary page for non-admins. The setup instructions were broken if user had no write permissions.
r4687 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
Liviu
Repo summary box changes
r3620 <p><b>${_('Add or upload files directly via RhodeCode:')}</b></p>
files: added upload button to empty repo summary page
r3718 <div class="pull-left">
<a href="${h.route_path('repo_files_add_file',repo_name=c.repo_name,commit_id=0, f_path='')}" class="btn btn-default">${_('Add New File')}</a>
</div>
<div class="pull-left">
<a href="${h.route_path('repo_files_upload_file',repo_name=c.repo_name,commit_id=0, f_path='')}" class="btn btn-default">${_('Upload New File')}</a>
repo-summary: re-implemented summary view as pyramid....
r1785 </div>
%endif
</div>
summary: fixed ui on summary page for non-admins. The setup instructions were broken if user had no write permissions.
r4687
files: added updated new repo instructions.
r3775 <div class="fieldset">
<p><b>${_('Push new repo:')}</b></p>
<pre>
%if h.is_git(c.rhodecode_repo):
git clone ${c.clone_repo_url}
git add README # add first file
git commit -m "Initial commit" # commit with message
git remote add origin ${c.clone_repo_url}
git push -u origin master # push changes back to default master branch
%elif h.is_hg(c.rhodecode_repo):
hg clone ${c.clone_repo_url}
hg add README # add first file
hg commit -m "Initial commit" # commit with message
hg push ${c.clone_repo_url}
%elif h.is_svn(c.rhodecode_repo):
svn co ${c.clone_repo_url}
svn add README # add first file
svn commit -m "Initial commit"
svn commit # send changes back to the server
%endif
Liviu
Repo summary box changes
r3620 </pre>
files: added updated new repo instructions.
r3775 </div>
Liviu
Repo summary box changes
r3620
files: added updated new repo instructions.
r3775 <div class="fieldset">
<p><b>${_('Existing repository?')}</b></p>
<pre>
%if h.is_git(c.rhodecode_repo):
repo-summary: re-implemented summary view as pyramid....
r1785 git remote add origin ${c.clone_repo_url}
git push -u origin master
files: added updated new repo instructions.
r3775 %elif h.is_hg(c.rhodecode_repo):
repo-summary: re-implemented summary view as pyramid....
r1785 hg push ${c.clone_repo_url}
files: added updated new repo instructions.
r3775 %elif h.is_svn(c.rhodecode_repo):
svn co ${c.clone_repo_url}
%endif
Liviu
Repo summary box changes
r3620 </pre>
files: added updated new repo instructions.
r3775
</div>
repo-summary: re-implemented summary view as pyramid....
r1785 </div>
%endif