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