diff rhodecode/templates/changeset/changeset_file_comment.html @ 2217:76947224bf27 codereview

Implemented initial code-review status of changesets
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 01 May 2012 22:24:41 +0200
parents 3052f90c568a
children 9265958e33bb
line wrap: on
line diff
--- a/rhodecode/templates/changeset/changeset_file_comment.html	Mon Apr 30 16:07:08 2012 +0200
+++ b/rhodecode/templates/changeset/changeset_file_comment.html	Tue May 01 22:24:41 2012 +0200
@@ -38,7 +38,7 @@
           <div class="comment-help">${_('Commenting on line')} {1}. ${_('Comments parsed using')}
           <a href="${h.url('rst_help')}">RST</a> ${_('syntax')} ${_('with')}
           <span style="color:#003367" class="tooltip" title="${_('Use @username inside this text to send notification to this RhodeCode user')}">@mention</span> ${_('support')}
-          </div>
+          </div>          
           <textarea id="text_{1}" name="text"></textarea>
       </div>
       <div class="comment-button">
@@ -79,6 +79,7 @@
 
 </%def>
 
+## MAIN COMMENT FORM
 <%def name="comments(changeset)">
 
 <div class="comments">
@@ -99,8 +100,18 @@
             <div class="comment-help">
                 ${_('Comments parsed using')} <a href="${h.url('rst_help')}">RST</a> ${_('syntax')}
                 ${_('with')} <span style="color:#003367" class="tooltip" title="${_('Use @username inside this text to send notification to this RhodeCode user')}">@mention</span> ${_('support')}
+                | <span class="tooltip" title="${_('Check this to change current status of code-review for this changeset')}"> ${_('change status')}
+                  <input style="vertical-align: bottom;margin-bottom:-2px" id="show_changeset_status_box" type="checkbox" name="change_changeset_status" />
+                  </span> 
             </div>
-                ${h.textarea('text')}
+            <div id="status_block_container" class="status-block" style="display:none">
+                %for status,lbl in c.changeset_statuses:
+                    <div class="">
+                        <img src="${h.url('/images/icons/flag_status_%s.png' % status)}" /> <input ${'checked="checked"' if status == h.changeset_status(c.rhodecode_db_repo, c.changeset.raw_id) else ''}" type="radio" name="changeset_status" value="${status}"> <label>${lbl}</label>
+                    </div>                    
+                %endfor
+            </div>                 
+            ${h.textarea('text')}
         </div>
         <div class="comment-button">
         ${h.submit('save', _('Comment'), class_='ui-button')}