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 }}\" \
|
<a href=\"{{ link }}\" \
|
||||||
class=\"{% call util::commit_class(reachable) %}\" \
|
class=\"{% call util::commit_class(reachable) %}\" \
|
||||||
title=\"{% call util::commit_title(reachable) %}\">
|
title=\"{% call util::commit_title(reachable) %}\">
|
||||||
{{ short }}
|
{{ short|truncate(80) }}
|
||||||
</a>
|
</a>
|
||||||
"
|
"
|
||||||
)]
|
)]
|
||||||
|
|
@ -37,7 +37,10 @@ impl LinkCommit {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Template)]
|
#[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 {
|
pub struct LinkRunShort {
|
||||||
link: Link,
|
link: Link,
|
||||||
short: String,
|
short: String,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue