##// END OF EJS Templates
comments: UX improvements for comment buttons.
milka -
r4585:99c6054f stable
parent child Browse files
Show More
@@ -225,6 +225,7 b' input[type="button"] {'
225 }
225 }
226 }
226 }
227
227
228
228 .btn-approved-status {
229 .btn-approved-status {
229 .border ( @border-thickness, @alert1 );
230 .border ( @border-thickness, @alert1 );
230 background-color: white;
231 background-color: white;
@@ -429,6 +430,31 b' input[type="button"] {'
429 }
430 }
430 }
431 }
431
432
433 input[type="submit"].btn-draft {
434 .border ( @border-thickness, @rcblue );
435 background-color: white;
436 color: @rcblue;
437
438 a {
439 color: @rcblue;
440 }
441
442 &:hover,
443 &.active {
444 .border ( @border-thickness, @rcdarkblue );
445 background-color: white;
446 color: @rcdarkblue;
447
448 a {
449 color: @rcdarkblue;
450 }
451 }
452
453 &:disabled {
454 background-color: white;
455 color: @rcblue;
456 }
457 }
432
458
433 input[type="submit"].btn-warning {
459 input[type="submit"].btn-warning {
434 &:extend(.btn-warning);
460 &:extend(.btn-warning);
@@ -510,9 +510,9 b''
510 % if form_type == 'inline':
510 % if form_type == 'inline':
511 % if c.rhodecode_edition_id == 'EE':
511 % if c.rhodecode_edition_id == 'EE':
512 ## Disable the button for CE, the "real" validation is in the backend code anyway
512 ## Disable the button for CE, the "real" validation is in the backend code anyway
513 <input class="btn btn-warning comment-button-input submit-draft-action" id="save_draft_${lineno_id}" name="save_draft" type="submit" value="${_('Add draft')}" data-is-draft=true onclick="$(this).addClass('submitter')">
513 <input class="btn btn-draft comment-button-input submit-draft-action" id="save_draft_${lineno_id}" name="save_draft" type="submit" value="${_('Add draft')}" data-is-draft=true onclick="$(this).addClass('submitter')">
514 % else:
514 % else:
515 <input class="btn btn-warning comment-button-input submit-draft-action disabled" disabled="disabled" type="submit" value="${_('Add draft')}" onclick="return false;" title="Draft comments only available in EE edition of RhodeCode">
515 <input class="btn btn-draft comment-button-input submit-draft-action disabled" disabled="disabled" type="submit" value="${_('Add draft')}" onclick="return false;" title="Draft comments only available in EE edition of RhodeCode">
516 % endif
516 % endif
517 % endif
517 % endif
518
518
@@ -534,9 +534,9 b''
534 % if form_type == 'inline':
534 % if form_type == 'inline':
535 <input type="hidden" name="f_path" value="{0}">
535 <input type="hidden" name="f_path" value="{0}">
536 <input type="hidden" name="line" value="${lineno_id}">
536 <input type="hidden" name="line" value="${lineno_id}">
537 <button type="button" class="cb-comment-cancel" onclick="return Rhodecode.comments.cancelComment(this);">
537 <span class="cursor-pointer action_button cb-comment-cancel" onclick="return Rhodecode.comments.cancelComment(this);">
538 <i class="icon-cancel-circled2"></i>
538 ${_('dismiss')}
539 </button>
539 </span>
540 % endif
540 % endif
541 </div>
541 </div>
542
542
General Comments 0
You need to be logged in to leave comments. Login now