##// END OF EJS Templates
imported patch 2260
marcink -
r2162:04d3fae0 beta
parent child Browse files
Show More
@@ -45,6 +45,7 b' fixes'
45 45 - fixed #396 fixed problems with revoking users in nested groups
46 46 - fixed mysql unicode issues + specified InnoDB as default engine with
47 47 utf8 charset
48 - #406 trim long branch/tag names in changelog to not break UI
48 49
49 50 1.3.3 (**2012-03-02**)
50 51 ----------------------
@@ -46,6 +46,13 b' from rhodecode.lib.markup_renderer impor'
46 46 log = logging.getLogger(__name__)
47 47
48 48
49 def shorter(text, size=20):
50 postfix = '...'
51 if len(text) > size:
52 return text[:size - len(postfix)] + postfix
53 return text
54
55
49 56 def _reset(name, value=None, id=NotGiven, type="reset", **attrs):
50 57 """
51 58 Reset button
@@ -87,6 +94,7 b' def get_token():'
87 94 session.save()
88 95 return session[token_key]
89 96
97
90 98 class _GetError(object):
91 99 """Get error from form_errors, and represent it as span wrapped error
92 100 message
@@ -102,6 +110,7 b' class _GetError(object):'
102 110
103 111 get_error = _GetError()
104 112
113
105 114 class _ToolTip(object):
106 115
107 116 def __call__(self, tooltip_title, trim_at=50):
@@ -113,6 +122,7 b' class _ToolTip(object):'
113 122 return escape(tooltip_title)
114 123 tooltip = _ToolTip()
115 124
125
116 126 class _FilesBreadCrumbs(object):
117 127
118 128 def __call__(self, repo_name, rev, paths):
@@ -137,8 +147,10 b' class _FilesBreadCrumbs(object):'
137 147
138 148 files_breadcrumbs = _FilesBreadCrumbs()
139 149
150
140 151 class CodeHtmlFormatter(HtmlFormatter):
141 """My code Html Formatter for source codes
152 """
153 My code Html Formatter for source codes
142 154 """
143 155
144 156 def wrap(self, source, outfile):
@@ -93,11 +93,11 b''
93 93 %endif
94 94 %if h.is_hg(c.rhodecode_repo) and cs.branch:
95 95 <span class="branchtag" title="${'%s %s' % (_('branch'),cs.branch)}">
96 ${h.link_to(cs.branch,h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}</span>
96 ${h.link_to(h.shorter(cs.branch),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}</span>
97 97 %endif
98 98 %for tag in cs.tags:
99 99 <span class="tagtag" title="${'%s %s' % (_('tag'),tag)}">
100 ${h.link_to(tag,h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}</span>
100 ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}</span>
101 101 %endfor
102 102 </span>
103 103 </div>
General Comments 0
You need to be logged in to leave comments. Login now