Truncate short commit links to 80 chars
This commit is contained in:
parent
8f2dede80d
commit
c83f193143
1 changed files with 5 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ use super::{
|
|||
<a href=\"{{ link }}\" \
|
||||
class=\"{% call util::commit_class(reachable) %}\" \
|
||||
title=\"{% call util::commit_title(reachable) %}\">
|
||||
{{ short }}
|
||||
{{ short|truncate(80) }}
|
||||
</a>
|
||||
"
|
||||
)]
|
||||
|
|
@ -37,7 +37,10 @@ impl LinkCommit {
|
|||
}
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(ext = "html", source = "<a href=\"{{ link }}\">Run of {{ short }}</a>")]
|
||||
#[template(
|
||||
ext = "html",
|
||||
source = "<a href=\"{{ link }}\">Run of {{ short|truncate(80) }}</a>"
|
||||
)]
|
||||
pub struct LinkRunShort {
|
||||
link: Link,
|
||||
short: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue