Rename template struct for consistency
This commit is contained in:
parent
1eeee43f2c
commit
2c0a496897
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ impl Commit {
|
||||||
|
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
#[template(path = "commit_hash.html")]
|
#[template(path = "commit_hash.html")]
|
||||||
struct CommitIdTemplate {
|
struct CommitHashTemplate {
|
||||||
base: Base,
|
base: Base,
|
||||||
hash: String,
|
hash: String,
|
||||||
author: String,
|
author: String,
|
||||||
|
|
@ -97,7 +97,7 @@ pub async fn get(
|
||||||
.try_collect::<Vec<_>>()
|
.try_collect::<Vec<_>>()
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
Ok(CommitIdTemplate {
|
Ok(CommitHashTemplate {
|
||||||
base: Base::new(config, Tab::Commit),
|
base: Base::new(config, Tab::Commit),
|
||||||
hash: commit.hash,
|
hash: commit.hash,
|
||||||
author: commit.author,
|
author: commit.author,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue