##// END OF EJS Templates
summary: use the same method to trim the messages as in changelog....
marcink -
r494:5c3d69c7 default
parent child Browse files
Show More
@@ -1,133 +1,136 b''
1 1 ## -*- coding: utf-8 -*-
2 2 <%namespace name="base" file="/base/base.html"/>
3 3 %if c.repo_commits:
4 4 <table class="rctable repo_summary table_disp">
5 5 <tr>
6 6
7 7 <th class="status" colspan="2"></th>
8 8 <th>${_('Commit')}</th>
9 9 <th>${_('Commit message')}</th>
10 10 <th>${_('Age')}</th>
11 11 <th>${_('Author')}</th>
12 12 <th>${_('Refs')}</th>
13 13 </tr>
14 14 %for cnt,cs in enumerate(c.repo_commits):
15 15 <tr class="parity${cnt%2}">
16 16
17 17 <td class="td-status">
18 18 %if c.statuses.get(cs.raw_id):
19 19 <div class="changeset-status-ico shortlog">
20 20 %if c.statuses.get(cs.raw_id)[2]:
21 21 <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])}">
22 22 <div class="${'flag_status %s' % c.statuses.get(cs.raw_id)[0]}"></div>
23 23 </a>
24 24 %else:
25 25 <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)}">
26 26 <div class="${'flag_status %s' % c.statuses.get(cs.raw_id)[0]}"></div>
27 27 </a>
28 28 %endif
29 29 </div>
30 30 %else:
31 31 <div class="tooltip flag_status not_reviewed" title="${_('Commit status: Not Reviewed')}"></div>
32 32 %endif
33 33 </td>
34 34 <td class="td-comments">
35 35 %if c.comments.get(cs.raw_id,[]):
36 36 <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)}">
37 37 <i class="icon-comment icon-comment-colored"></i> ${len(c.comments[cs.raw_id])}
38 38 </a>
39 39 %endif
40 40 </td>
41 41 <td class="td-commit">
42 42 <pre><a href="${h.url('changeset_home', repo_name=c.repo_name, revision=cs.raw_id)}">${h.show_id(cs)}</a></pre>
43 43 </td>
44 <td class="td-message">
45 ${h.urlify_commit_message(h.truncate(cs.message, 50), c.repo_name)}
44
45 <td class="td-description mid">
46 <div class="log-container truncate-wrap">
47 <div class="message truncate" id="c-${cs.raw_id}">${h.urlify_commit_message(cs.message, c.repo_name)}</div>
48 </div>
46 49 </td>
47 50
48 51 <td class="td-time">
49 52 ${h.age_component(cs.date)}
50 53 </td>
51 54 <td class="td-user author">
52 55 ${base.gravatar_with_user(cs.author)}
53 56 </td>
54 57
55 58 <td class="td-tags truncate-wrap">
56 59 <div class="truncate tags-truncate"><div class="autoexpand">
57 60 %if h.is_hg(c.rhodecode_repo):
58 61 %for book in cs.bookmarks:
59 62 <span class="booktag tag" title="${_('Bookmark %s') % book}">
60 63 <a href="${h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id)}"><i class="icon-bookmark"></i>${h.shorter(book)}</a>
61 64 </span>
62 65 %endfor
63 66 %endif
64 67 ## tags
65 68 %for tag in cs.tags:
66 69 <span class="tagtag tag" title="${_('Tag %s') % tag}">
67 70 <a href="${h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id)}"><i class="icon-tag"></i>${h.shorter(tag)}</a>
68 71 </span>
69 72 %endfor
70 73
71 74 ## branch
72 75 %if cs.branch:
73 76 <span class="branchtag tag" title="${_('Branch %s') % cs.branch}">
74 77 <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>
75 78 </span>
76 79 %endif
77 80 </div>
78 81 </td>
79 82 </tr>
80 83 %endfor
81 84
82 85 </table>
83 86
84 87 <script type="text/javascript">
85 88 $(document).pjax('#shortlog_data .pager_link','#shortlog_data', {timeout: 2000, scrollTo: false });
86 89 $(document).on('pjax:success', function(){ timeagoActivate(); });
87 90 </script>
88 91
89 92 <div class="pagination-wh pagination-left">
90 93 ${c.repo_commits.pager('$link_previous ~2~ $link_next')}
91 94 </div>
92 95 %else:
93 96
94 97 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
95 98 <div class="quick_start">
96 99 <div class="fieldset">
97 100 <div class="left-label">${_('Add or upload files directly via RhodeCode:')}</div>
98 101 <div class="right-content">
99 102 <div id="add_node_id" class="add_node">
100 103 <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>
101 104 </div>
102 105 </div>
103 106 %endif
104 107 </div>
105 108
106 109 %if not h.is_svn(c.rhodecode_repo):
107 110 <div class="fieldset">
108 111 <div class="left-label">${_('Push new repo:')}</div>
109 112 <div class="right-content">
110 113 <pre>
111 114 ${c.rhodecode_repo.alias} clone ${c.clone_repo_url}
112 115 ${c.rhodecode_repo.alias} add README # add first file
113 116 ${c.rhodecode_repo.alias} commit -m "Initial" # commit with message
114 117 ${c.rhodecode_repo.alias} push ${'origin master' if h.is_git(c.rhodecode_repo) else ''} # push changes back
115 118 </pre>
116 119 </div>
117 120 </div>
118 121 <div class="fieldset">
119 122 <div class="left-label">${_('Existing repository?')}</div>
120 123 <div class="right-content">
121 124 <pre>
122 125 %if h.is_git(c.rhodecode_repo):
123 126 git remote add origin ${c.clone_repo_url}
124 127 git push -u origin master
125 128 %else:
126 129 hg push ${c.clone_repo_url}
127 130 %endif
128 131 </pre>
129 132 </div>
130 133 </div>
131 134 %endif
132 135 </div>
133 136 %endif
General Comments 0
You need to be logged in to leave comments. Login now