M src/repository/blame.rs => src/repository/blame.rs +1 -0
@@ 50,6 50,7 @@ pub fn blames(repo: String, branch: String, location: PathBufWithDotfiles) -> Op
repo: repo.clone(),
config: repo_config(repo.clone()),
domain: CONFIG.domain.to_string(),
+ user: CONFIG.name.to_string(),
active: "tree",
commit: match get_commits(repo.clone(), 1, Some(branch.clone()), Some(format!("{}", location.get().display()).replace("//", "/"))) {
Some(x) => match x.clone().get(0) {
M src/repository/commit.rs => src/repository/commit.rs +1 -0
@@ 27,6 27,7 @@ pub fn commit(repo: String, oid: String) -> Option<Template> {
repo: repo_clone.clone(),
config: repo_config(repo_clone.clone()),
domain: CONFIG.domain.to_string(),
+ user: CONFIG.name.to_string(),
active: "log",
payment: CONFIG.payment_link.clone(),
mailing_list: CONFIG.mailing_list.clone(),
M src/repository/log.rs => src/repository/log.rs +2 -0
@@ 36,6 36,7 @@ pub fn log_main(repo: String, from: Option<String>) -> Option<Template> {
repo: repo.clone(),
config: repo_config(repo.clone()),
domain: CONFIG.domain.to_string(),
+ user: CONFIG.name.to_string(),
active: "log",
commits,
branch: main_branch.clone(),
@@ 87,6 88,7 @@ pub fn log(
repo: repo.clone(),
config: repo_config(repo.clone()),
domain: CONFIG.domain.to_string(),
+ user: CONFIG.name.to_string(),
active: "log",
commits,
branch: branch.clone(),
M src/repository/refs.rs => src/repository/refs.rs +1 -0
@@ 20,6 20,7 @@ pub fn refs(repo: String, page: Option<usize>) -> Option<Template> {
repo: repo.clone(),
config: repo_config(repo.clone()),
domain: CONFIG.domain.to_string(),
+ user: CONFIG.name.to_string(),
active: "refs",
current_dir_file: "/",
current_dir: "/",
M src/repository/summary.rs => src/repository/summary.rs +1 -0
@@ 19,6 19,7 @@ pub fn repository(repo: String) -> Option<Template> {
repo: repo.clone(),
config: repo_config(repo.clone()),
domain: CONFIG.domain.to_string(),
+ user: CONFIG.name.to_string(),
readme: md_to_html(&file.1?),
active: "summary",
preview: get_commits(repo.clone(), 3, None, None),
M src/repository/tree.rs => src/repository/tree.rs +3 -0
@@ 23,6 23,7 @@ pub fn tree_main(repo: String) -> Option<Template> {
repo: repo.clone(),
config: repo_config(repo.clone()),
domain: CONFIG.domain.to_string(),
+ user: CONFIG.name.to_string(),
active: "tree",
commit: match get_commits(repo.clone(), 1, None, None) {
Some(x) => match x.get(0) {
@@ 76,6 77,7 @@ pub fn tree(repo: String, branch: String, location: PathBufWithDotfiles) -> Opti
repo: repo.clone(),
config: repo_config(repo.clone()),
domain: CONFIG.domain.to_string(),
+ user: CONFIG.name.to_string(),
active: "tree",
commit: match get_commits(repo.clone(), 1, Some(branch.clone()), Some(format!("{}", location.get().display()).replace("//", "/"))) {
Some(x) => match x.clone().get(0) {
@@ 103,6 105,7 @@ pub fn tree(repo: String, branch: String, location: PathBufWithDotfiles) -> Opti
repo: repo.clone(),
config: repo_config(repo.clone()),
domain: CONFIG.domain.to_string(),
+ user: CONFIG.name.to_string(),
active: "tree",
commit: match get_commits(repo.clone(), 1, Some(branch.clone()), Some(format!("{}", location.get().display()).replace("//", "/"))) {
Some(x) => match x.clone().get(0) {
M templates/layout.html.hbs => templates/layout.html.hbs +2 -2
@@ 3,10 3,10 @@
<head>
<meta charset="utf8">
<meta content="width=device-width, initial-scale=1" name="viewport">
- <title>{{ title }} :: Arthur Melton Git</title>
+ <title>{{ title }} :: {{ user }} Git</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
{{~> page}}
</body>
-</html>>
\ No newline at end of file
+</html>