Edgewall Software

Ticket #9405: 9405_add_color-on-priority_note.patch

File 9405_add_color-on-priority_note.patch, 1.1 KB (added by hasienda <hoff.st@…>, 2 years ago)

conditional hint on priority order affecting ticket coloring

  • trac/admin/templates/admin_enums.html

    diff --git a/trac/admin/templates/admin_enums.html b/trac/admin/templates/admin_enums.html
    a b  
    7373              You can remove all items from this list to completely hide this 
    7474              field from the user interface. 
    7575            </p> 
     76            <p class="help" py:if="type=='priority'"> 
     77              Note: Keep high-to-low order regardless of label names here, 
     78              because it affects ticket coloring in queries and reports. 
     79            </p> 
    7680          </form> 
    7781 
    7882          <p py:otherwise="" class="help"> 
  • trac/ticket/admin.py

    diff --git a/trac/ticket/admin.py b/trac/ticket/admin.py
    a b  
    597597 
    598598    def _render_admin_panel(self, req, cat, page, path_info): 
    599599        label = [gettext(each) for each in self._label] 
    600         data = {'label_singular': label[0], 'label_plural': label[1]} 
     600        data = {'label_singular': label[0], 'label_plural': label[1], 'type': self._type} 
    601601 
    602602        # Detail view? 
    603603        if path_info: