Browse Source

add git repo links to generated pages

master
Stephen 1 month ago
parent
commit
4fa8b596d0
3 changed files with 5 additions and 1 deletions
  1. +3
    -0
      src/frontend.rs
  2. +1
    -0
      src/project.rs
  3. +1
    -1
      templates/project.html

+ 3
- 0
src/frontend.rs View File

@ -23,6 +23,7 @@ pub struct ProjectHtml {
bg_color: String,
log: Vec<(String, String, String)>, //cmd, result, colour
build_date: String,
url: String,
}
impl ProjectHtml {
@ -33,6 +34,7 @@ impl ProjectHtml {
log: &[(String, ExecStatus)],
success: bool,
build_date: String,
url: String,
) -> Self {
let bg_color = if success {
"#BBFFBB".to_string()
@ -60,6 +62,7 @@ impl ProjectHtml {
bg_color,
log,
build_date,
url,
}
}


+ 1
- 0
src/project.rs View File

@ -179,6 +179,7 @@ impl Project {
&self.log.log,
self.log.success,
self.build_date.clone(),
self.url.clone(),
)
.generate_html(),
)


+ 1
- 1
templates/project.html View File

@ -35,7 +35,7 @@
</head>
<body>
<h1>{{ app_name }}</h1>
<h3>{{ proj_name }}</h3>
<h3><a href="{{ url }}">{{ proj_name }}</a></h3>
Build date: {{ build_date }}
<div class="home">


Loading…
Cancel
Save