Changeset 091f9177 in cboos.git
- Timestamp:
- Jul 14, 2012, 6:04:10 PM (12 years ago)
- Branches:
- clone-from-comment-t10012-r11112, ticket10012/more-good-stuff-r11112
- Children:
- 795df252
- Parents:
- 927c3fc1
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trac/htdocs/css/trac.css
r927c3fc1 r091f9177 139 139 .buttons form, .buttons form div { display: inline } 140 140 .buttons input { margin: 1em .5em .1em 0 } 141 /* legacy 0.10 style quickbuttons */ 141 142 .inlinebuttons input { 142 143 font-size: 70%; … … 147 148 background: none; 148 149 } 149 /* quickbutton: round 1 character button("quick action") */150 /* quickbutton: rounded buttons ("quick action") */ 150 151 input[type="button"].trac-quickbutton, 151 152 input[type="submit"].trac-quickbutton { … … 155 156 padding: 0 .4em .1em; 156 157 /* take the rest from .inlinebuttons */ 158 font-size: 70%; 157 159 box-shadow: none; 158 160 margin: 0 .1em .1em; … … 160 162 color: #999; 161 163 } 164 .uisymbols input[type="button"].trac-quickbutton, 165 .uisymbols input[type="submit"].trac-quickbutton { 166 font-size: 100%; 167 } 168 162 169 input[type=button].trac-quickbutton:hover, 163 170 input[type=submit].trac-quickbutton:hover { … … 378 385 } 379 386 387 /* Help links */ 388 .uinohelp #help { display: none } 380 389 #help { 381 390 clear: both; … … 734 743 box-shadow: .1em .1em .6em 0 #999; 735 744 } 736 /* enable if you prefer text message */ 737 div.system-message .trac-close-msg span { 745 .uisymbols div.system-message .trac-close-msg > span { 738 746 display: none; 739 747 } 740 /* disable if you prefer text message */ 741 div.system-message .trac-close-msg:after { 748 .uisymbols div.system-message .trac-close-msg:after { 742 749 content: "x"; /* or – "–"; */ 743 750 } -
trac/prefs/web_ui.py
r927c3fc1 r091f9177 41 41 IRequestHandler, ITemplateProvider) 42 42 43 _form_fields = ['newsid', 'name', 'email', 'tz', 'lc_time', 'dateinfo', 44 'language', 'accesskeys'] 43 _form_fields = [ 44 'newsid', 'name', 'email', 'tz', 'lc_time', 'dateinfo', 45 'language', 'accesskeys', 46 'ui.use_symbols', 'ui.hide_help', 47 ] 45 48 46 49 # INavigationContributor methods … … 92 95 yield ('datetime', _('Date & Time')) 93 96 yield ('keybindings', _('Keyboard Shortcuts')) 97 yield ('userinterface', _('User Interface')) 94 98 if Locale: 95 99 yield ('language', _('Language')) -
trac/templates/theme.html
r927c3fc1 r091f9177 34 34 ${navigation('mainnav')} 35 35 36 <div id="main"> 36 <div id="main" class="${classes(uisymbols=req.session.get('ui.use_symbols'), 37 uinohelp=req.session.get('ui.hide_help'))}"> 37 38 <xi:include py:if="value_of('resourcepath_template')" href="${resourcepath_template}" /> 38 39 … … 47 48 48 49 <div id="warning" py:if="chrome.warnings" class="system-message"> 49 <a class="trac-close-msg" href="#" title="Hide this warning"><span> [close]</span></a>50 <a class="trac-close-msg" href="#" title="Hide this warning"><span>close</span></a> 50 51 <py:choose test="len(chrome.warnings)"> 51 52 <strong>Warning:</strong> … … 55 56 </div> 56 57 <div id="notice" py:if="chrome.notices" class="system-message"> 57 <a class="trac-close-msg" href="#" title="Hide this notice"><span> [close]</span></a>58 <a class="trac-close-msg" href="#" title="Hide this notice"><span>close</span></a> 58 59 <py:choose test="len(chrome.notices)"> 59 60 <py:when test="1">${chrome.notices[0]}</py:when> -
trac/ticket/templates/ticket_box.html
r927c3fc1 r091f9177 98 98 id="addreply" method="get" action="#comment"> 99 99 <input type="hidden" name="replyto" value="description" /> 100 <input type="submit" name="reply" value=" ↳" title="Reply, quoting this description" class="trac-quickbutton" />100 <input type="submit" name="reply" value="${captioned_button('↳', _('Reply'))}" title="Reply, quoting this description" class="trac-quickbutton" /> 101 101 </form> 102 102 <div py:if="ticket.description" class="searchable" xml:space="preserve"> -
trac/ticket/templates/ticket_change.html
r927c3fc1 r091f9177 62 62 <form py:if="'cnum' in change and can_edit_comment" method="get" action="#comment:${cnum}"> 63 63 <input type="hidden" name="cnum_edit" value="${cnum}"/> 64 <input type="submit" value=" ✎" title="${_('Edit comment %(cnum)s', cnum=cnum)}" class="trac-quickbutton" />64 <input type="submit" value="${captioned_button('✎', _('Edit'))}" title="${_('Edit comment %(cnum)s', cnum=cnum)}" class="trac-quickbutton" /> 65 65 </form> 66 66 <form py:if="'cnum' in change and can_append" id="reply-to-comment-${cnum}" 67 67 method="get" action="#comment"> 68 68 <input type="hidden" name="replyto" value="${cnum}"/> 69 <input type="submit" value=" ↳" title="${_('Reply to comment %(cnum)s', cnum=cnum)}" class="trac-quickbutton" />69 <input type="submit" value="${captioned_button('↳', _('Reply'))}" title="${_('Reply to comment %(cnum)s', cnum=cnum)}" class="trac-quickbutton" /> 70 70 </form> 71 71 </div> -
trac/util/presentation.py
r927c3fc1 r091f9177 20 20 import re 21 21 22 __all__ = ['classes', 'first_last', 'group', 'istext', 'prepared_paginate', 23 'paginate', 'Paginator'] 24 22 __all__ = ['captioned_button', 'classes', 'first_last', 'group', 'istext', 23 'prepared_paginate', 'paginate', 'Paginator'] 24 25 26 def captioned_button(req, symbol, text): 27 return symbol if req.session.get('ui.use_symbols') \ 28 else u'%s %s' % (symbol, text) 25 29 26 30 def classes(*args, **kwargs): -
trac/web/chrome.py
r927c3fc1 r091f9177 915 915 'format_emails': self.format_emails, 916 916 'get_systeminfo': self.env.get_systeminfo, 917 'captioned_button': partial(presentation.captioned_button, req), 917 918 918 919 # Date/time formatting -
tracopt/ticket/clone.py
r927c3fc1 r091f9177 17 17 from trac.core import Component, implements 18 18 from trac.web.api import ITemplateStreamFilter 19 from trac.util.presentation import captioned_button 19 20 from trac.util.translation import _ 20 21 … … 55 56 fields[name] = ticket[name] 56 57 return tag.form( 57 tag.input(type="submit", name="clone", value="+#", 58 tag.input(type="submit", name="clone", 59 value=captioned_button(req, '+#', _("Clone")), 58 60 title=_("Create a copy of this ticket"), 59 61 class_="trac-quickbutton"), -
tracopt/ticket/deleter.py
r927c3fc1 r091f9177 21 21 from trac.util import get_reporter_id 22 22 from trac.util.datefmt import from_utimestamp 23 from trac.util.presentation import captioned_button 23 24 from trac.util.translation import _ 24 25 from trac.web.api import IRequestFilter, IRequestHandler, ITemplateStreamFilter … … 67 68 return tag.form( 68 69 tag.input(type='hidden', name='action', value='delete'), 69 tag.input(type='submit', value=u'–', # 'EN DASH' 70 tag.input(type='submit', 71 value=captioned_button(req, u'–', # 'EN DASH' 72 _("Delete")), 70 73 title=_('Delete ticket'), 71 74 class_="trac-quickbutton trac-delete"), … … 80 83 tag.input(type='hidden', name='cnum', value=cnum), 81 84 tag.input(type='hidden', name='cdate', value=cdate), 82 tag.input(type='submit', value=u'–', # 'EN DASH' 85 tag.input(type='submit', 86 value=captioned_button(req, u'–', # 'EN DASH' 87 _("Delete")), 83 88 title=_('Delete comment %(num)s', num=cnum), 84 89 class_="trac-quickbutton trac-delete"),
Note:
See TracChangeset
for help on using the changeset viewer.