Commit 6911ab39ab11382abbd4600807d735bca7fff26e
- Diff rendering mode:
- inline
- side by side
|   | |||
| 410 | 410 | def project_summary_box(project) | |
| 411 | 411 | summary_box link_to(project.title, project), | |
| 412 | 412 | truncate(project.descriptions_first_paragraph, 80), | |
| 413 | avatar_wrapper(default_avatar) | ||
| 413 | glossy_homepage_avatar(default_avatar) | ||
| 414 | 414 | end | |
| 415 | 415 | ||
| 416 | 416 | def team_summary_box(team) | |
| … | … | ||
| 437 | 437 | end | |
| 438 | 438 | ||
| 439 | 439 | def glossy_homepage_avatar(avatar) | |
| 440 | avatar_wrapper(avatar + "<span></span>") | ||
| 440 | content_tag(:div, avatar + "<span></span>", :class => "glossy_avatar_wrapper") | ||
| 441 | 441 | end | |
| 442 | 442 | ||
| 443 | 443 | def glossy_homepage_avatar_for_user(user) | |
| … | … | ||
| 447 | 447 | def default_avatar | |
| 448 | 448 | image_tag("icon_default.png", :width => 30, :height => 30) | |
| 449 | 449 | end | |
| 450 | |||
| 451 | # This is pretty ugly, the 'avatar' helper should do this. But we need backwards compability. | ||
| 452 | def avatar_wrapper(avatar) | ||
| 453 | content_tag(:div, avatar, :class => "glossy_avatar_wrapper") | ||
| 454 | end | ||
| 455 | |||
| 450 | |||
| 456 | 451 | def secure_login_url | |
| 457 | 452 | if SslRequirement.disable_ssl_check? | |
| 458 | 453 | sessions_path |
Binary files differ
Binary files differ

