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