Remove pointless self-link
This commit is contained in:
parent
5fc11abcfd
commit
628f3501a2
2 changed files with 3 additions and 18 deletions
|
@ -249,23 +249,8 @@ impl Resource for ChangesResource {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn author_clause(&self) -> String {
|
fn author(&self) -> Option<String> {
|
||||||
#[derive(BartDisplay)]
|
self.resource.author.clone()
|
||||||
#[template_string=" by <a href=\"{{link}}\">{{author}}</a>"]
|
|
||||||
struct AuthorClause<'a> {
|
|
||||||
link: &'a str,
|
|
||||||
author: &'a str,
|
|
||||||
}
|
|
||||||
|
|
||||||
match self.resource.author {
|
|
||||||
Some(ref x) => AuthorClause {
|
|
||||||
link: &self.resource.query_args()
|
|
||||||
.author(Some(x.clone()))
|
|
||||||
.into_link(),
|
|
||||||
author: &x
|
|
||||||
}.to_string(),
|
|
||||||
None => "".to_owned(),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn all_articles_link(&self) -> Option<String> {
|
fn all_articles_link(&self) -> Option<String> {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<article>
|
<article>
|
||||||
<p>
|
<p>
|
||||||
These are the {{^newer}}most recent{{/newer}} changes that have been
|
These are the {{^newer}}most recent{{/newer}} changes that have been
|
||||||
made to{{{subject_clause()}}}{{{author_clause()}}}.
|
made to{{{subject_clause()}}}{{#author()}} by {{.}}{{/author()}}.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<nav><ul class="dense">
|
<nav><ul class="dense">
|
||||||
|
|
Loading…
Reference in a new issue