Mercurial > kallithea
comparison rhodecode/templates/changeset/changeset.html @ 1670:d2de0c2f02cd beta
#77 code review
- initial very simple version of changeset comments
- RST parsed
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 11 Nov 2011 20:41:53 +0200 |
parents | aaec08ad9daf |
children | 6f0143e5efe5 |
comparison
equal
deleted
inserted
replaced
1669:f522f4d3bf93 | 1670:d2de0c2f02cd |
---|---|
106 </div> | 106 </div> |
107 | 107 |
108 %for change,filenode,diff,cs1,cs2,stat in c.changes: | 108 %for change,filenode,diff,cs1,cs2,stat in c.changes: |
109 %if change !='removed': | 109 %if change !='removed': |
110 <div style="clear:both;height:10px"></div> | 110 <div style="clear:both;height:10px"></div> |
111 <div class="diffblock"> | 111 <div class="diffblock margined"> |
112 <div id="${h.repo_name_slug('C%s' % h.safe_unicode(filenode.path))}" class="code-header"> | 112 <div id="${h.repo_name_slug('C%s' % h.safe_unicode(filenode.path))}" class="code-header"> |
113 <div class="changeset_header"> | 113 <div class="changeset_header"> |
114 <span class="changeset_file"> | 114 <span class="changeset_file"> |
115 ${h.link_to_if(change!='removed',h.safe_unicode(filenode.path),h.url('files_home',repo_name=c.repo_name, | 115 ${h.link_to_if(change!='removed',h.safe_unicode(filenode.path),h.url('files_home',repo_name=c.repo_name, |
116 revision=filenode.changeset.raw_id,f_path=h.safe_unicode(filenode.path)))} | 116 revision=filenode.changeset.raw_id,f_path=h.safe_unicode(filenode.path)))} |
132 ${_('No changes in this file')} | 132 ${_('No changes in this file')} |
133 %endif | 133 %endif |
134 </div> | 134 </div> |
135 </div> | 135 </div> |
136 %endif | 136 %endif |
137 %endfor | 137 %endfor |
138 </div> | 138 |
139 <%namespace name="comment" file="/changeset/changeset_file_comment.html"/> | |
140 | |
141 <div class="comments"> | |
142 <div class="comments-number">${len(c.comments)} comment(s)</div> | |
143 %for co in c.comments: | |
144 ${comment.comment_block(co)} | |
145 %endfor | |
146 %if c.rhodecode_user.username != 'default': | |
147 <div class="comment-form"> | |
148 ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=c.changeset.raw_id))} | |
149 <strong>Leave a comment</strong> | |
150 <div class="clearfix"> | |
151 <div class="comment-help">${_('Comments parsed using RST syntax')}</div> | |
152 ${h.textarea('text')} | |
153 </div> | |
154 <div class="comment-button"> | |
155 ${h.submit('save', _('Comment'), class_='ui-button')} | |
156 </div> | |
157 ${h.end_form()} | |
158 </div> | |
159 %endif | |
160 </div> | |
161 | |
162 </div> | |
139 </%def> | 163 </%def> |