Show More
@@ -77,6 +77,12 class HomeController(BaseController): | |||
|
77 | 77 | atom_lnk = lambda repo_name: (template.get_def("atom") |
|
78 | 78 | .render(repo_name, _=_, h=h, c=c)) |
|
79 | 79 | |
|
80 | def desc(desc): | |
|
81 | if c.visual.stylify_metatags: | |
|
82 | return h.urlify_text(h.desc_stylize(h.truncate(desc, 60))) | |
|
83 | else: | |
|
84 | return h.urlify_text(h.truncate(desc, 60)) | |
|
85 | ||
|
80 | 86 | for repo in c.repos_list: |
|
81 | 87 | repos_data.append({ |
|
82 | 88 | "menu": quick_menu(repo.repo_name), |
@@ -84,7 +90,7 class HomeController(BaseController): | |||
|
84 | 90 | "name": repo_lnk(repo.repo_name, repo.repo_type, |
|
85 | 91 | repo.private, repo.fork), |
|
86 | 92 | "last_change": last_change(repo.last_db_change), |
|
87 | "desc": repo.description, | |
|
93 | "desc": desc(repo.description), | |
|
88 | 94 | "owner": h.person(repo.user.username), |
|
89 | 95 | "rss": rss_lnk(repo.repo_name), |
|
90 | 96 | "atom": atom_lnk(repo.repo_name), |
General Comments 0
You need to be logged in to leave comments.
Login now