Show More
@@ -247,7 +247,7 b' class LoginForm(formencode.Schema):' | |||
|
247 | 247 | filter_extra_fields = True |
|
248 | 248 | username = UnicodeString( |
|
249 | 249 | strip=True, |
|
250 |
min= |
|
|
250 | min=1, | |
|
251 | 251 | not_empty=True, |
|
252 | 252 | messages={ |
|
253 | 253 | 'empty':_('Please enter a login'), |
@@ -256,7 +256,7 b' class LoginForm(formencode.Schema):' | |||
|
256 | 256 | |
|
257 | 257 | password = UnicodeString( |
|
258 | 258 | strip=True, |
|
259 |
min= |
|
|
259 | min=8, | |
|
260 | 260 | not_empty=True, |
|
261 | 261 | messages={ |
|
262 | 262 | 'empty':_('Please enter a password'), |
@@ -271,15 +271,15 b' def UserForm(edit=False, old_data={}):' | |||
|
271 | 271 | class _UserForm(formencode.Schema): |
|
272 | 272 | allow_extra_fields = True |
|
273 | 273 | filter_extra_fields = True |
|
274 |
username = All(UnicodeString(strip=True, min= |
|
|
274 | username = All(UnicodeString(strip=True, min=1, not_empty=True), ValidUsername(edit, old_data)) | |
|
275 | 275 | if edit: |
|
276 |
new_password = All(UnicodeString(strip=True, min= |
|
|
276 | new_password = All(UnicodeString(strip=True, min=8, not_empty=False), ValidPassword) | |
|
277 | 277 | admin = StringBoolean(if_missing=False) |
|
278 | 278 | else: |
|
279 | 279 | password = All(UnicodeString(strip=True, min=8, not_empty=True), ValidPassword) |
|
280 | 280 | active = StringBoolean(if_missing=False) |
|
281 |
name = UnicodeString(strip=True, min= |
|
|
282 |
lastname = UnicodeString(strip=True, min= |
|
|
281 | name = UnicodeString(strip=True, min=1, not_empty=True) | |
|
282 | lastname = UnicodeString(strip=True, min=1, not_empty=True) | |
|
283 | 283 | email = All(Email(not_empty=True), UniqSystemEmail(old_data)) |
|
284 | 284 | |
|
285 | 285 | return _UserForm |
@@ -298,7 +298,7 b' def RepoForm(edit=False, old_data={}):' | |||
|
298 | 298 | allow_extra_fields = True |
|
299 | 299 | filter_extra_fields = False |
|
300 | 300 | repo_name = All(UnicodeString(strip=True, min=1, not_empty=True), ValidRepoName(edit, old_data)) |
|
301 |
description = UnicodeString(strip=True, min= |
|
|
301 | description = UnicodeString(strip=True, min=1, not_empty=True) | |
|
302 | 302 | private = StringBoolean(if_missing=False) |
|
303 | 303 | |
|
304 | 304 | if edit: |
@@ -312,7 +312,7 b' def RepoSettingsForm(edit=False, old_dat' | |||
|
312 | 312 | allow_extra_fields = True |
|
313 | 313 | filter_extra_fields = False |
|
314 | 314 | repo_name = All(UnicodeString(strip=True, min=1, not_empty=True), ValidRepoName(edit, old_data)) |
|
315 |
description = UnicodeString(strip=True, min= |
|
|
315 | description = UnicodeString(strip=True, min=1, not_empty=True) | |
|
316 | 316 | private = StringBoolean(if_missing=False) |
|
317 | 317 | |
|
318 | 318 | chained_validators = [ValidPerms, ValidSettings] |
@@ -323,8 +323,8 b' def ApplicationSettingsForm():' | |||
|
323 | 323 | class _ApplicationSettingsForm(formencode.Schema): |
|
324 | 324 | allow_extra_fields = True |
|
325 | 325 | filter_extra_fields = False |
|
326 |
hg_app_title = UnicodeString(strip=True, min= |
|
|
327 |
hg_app_realm = UnicodeString(strip=True, min= |
|
|
326 | hg_app_title = UnicodeString(strip=True, min=1, not_empty=True) | |
|
327 | hg_app_realm = UnicodeString(strip=True, min=1, not_empty=True) | |
|
328 | 328 | |
|
329 | 329 | return _ApplicationSettingsForm |
|
330 | 330 | |
@@ -333,7 +333,7 b' def ApplicationUiSettingsForm():' | |||
|
333 | 333 | allow_extra_fields = True |
|
334 | 334 | filter_extra_fields = False |
|
335 | 335 | web_push_ssl = OneOf(['true', 'false'], if_missing='false') |
|
336 |
paths_root_path = All(ValidPath(), UnicodeString(strip=True, min= |
|
|
336 | paths_root_path = All(ValidPath(), UnicodeString(strip=True, min=1, not_empty=True)) | |
|
337 | 337 | hooks_changegroup_update = OneOf(['True', 'False'], if_missing=False) |
|
338 | 338 | hooks_changegroup_repo_size = OneOf(['True', 'False'], if_missing=False) |
|
339 | 339 |
@@ -3152,7 +3152,7 b' h3.files_location{' | |||
|
3152 | 3152 | border-bottom: 1px solid #CCCCCC; |
|
3153 | 3153 | border-left: 1px solid #CCCCCC; |
|
3154 | 3154 | border-right: 1px solid #CCCCCC; |
|
3155 |
min-height: |
|
|
3155 | min-height: 80px; | |
|
3156 | 3156 | overflow: hidden; |
|
3157 | 3157 | font-size:1.2em; |
|
3158 | 3158 | } |
@@ -3223,14 +3223,14 b' h3.files_location{' | |||
|
3223 | 3223 | } |
|
3224 | 3224 | |
|
3225 | 3225 | .right .logtags .branchtag{ |
|
3226 |
background: #FFFFFF url("../images/icons/arrow_branch.png") no-repeat |
|
|
3226 | background: #FFFFFF url("../images/icons/arrow_branch.png") no-repeat right 9px; | |
|
3227 | 3227 | display:block; |
|
3228 |
padding:12px |
|
|
3228 | padding:12px 16px 0px 0px | |
|
3229 | 3229 | } |
|
3230 | 3230 | .right .logtags .tagtag{ |
|
3231 |
background: #FFFFFF url("../images/icons/tag_blue.png") no-repeat |
|
|
3231 | background: #FFFFFF url("../images/icons/tag_blue.png") no-repeat right 9px; | |
|
3232 | 3232 | display:block; |
|
3233 |
padding:12px |
|
|
3233 | padding:12px 18px 0px 0px | |
|
3234 | 3234 | } |
|
3235 | 3235 | |
|
3236 | 3236 | /* ----------------------------------------------------------- |
@@ -76,9 +76,11 b'' | |||
|
76 | 76 | </div> |
|
77 | 77 | %endfor |
|
78 | 78 | <span class="logtags"> |
|
79 |
<span class="branchtag" |
|
|
79 | <span class="branchtag" title="${'%s %s' % (_('branch'),cs.branch)}"> | |
|
80 | ${h.link_to(cs.branch,h.url('files_home',repo_name=c.repo_name,revision=cs.short_id))}</span> | |
|
80 | 81 | %for tag in cs.tags: |
|
81 |
<span class="tagtag" |
|
|
82 | <span class="tagtag" title="${'%s %s' % (_('tag'),tag)}"> | |
|
83 | ${h.link_to(tag,h.url('files_home',repo_name=c.repo_name,revision=cs.short_id))}</span> | |
|
82 | 84 | %endfor |
|
83 | 85 | </span> |
|
84 | 86 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now