mirror of
https://github.com/transatoshi-mw/grin-explorer.git
synced 2025-10-21 13:33:41 +00:00
removed 'Powered by CoinGecko' msg
This commit is contained in:
14
src/main.rs
14
src/main.rs
@@ -41,7 +41,6 @@ fn index(dashboard: &State<Arc<Mutex<Dashboard>>>) -> Template {
|
|||||||
fn block_list() -> Template {
|
fn block_list() -> Template {
|
||||||
Template::render("block_list", context! {
|
Template::render("block_list", context! {
|
||||||
route: "block_list",
|
route: "block_list",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,12 +62,10 @@ async fn block_list_by_height(input_height: &str) -> Template {
|
|||||||
if index >= height {
|
if index >= height {
|
||||||
Template::render("block_list", context! {
|
Template::render("block_list", context! {
|
||||||
route: "block_list",
|
route: "block_list",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
Template::render("block_list", context! {
|
Template::render("block_list", context! {
|
||||||
route: "block_list_by_height",
|
route: "block_list_by_height",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
index,
|
index,
|
||||||
blocks,
|
blocks,
|
||||||
height,
|
height,
|
||||||
@@ -77,7 +74,6 @@ async fn block_list_by_height(input_height: &str) -> Template {
|
|||||||
} else {
|
} else {
|
||||||
Template::render("block_list", context! {
|
Template::render("block_list", context! {
|
||||||
route: "block_list",
|
route: "block_list",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -94,7 +90,6 @@ async fn block_details_by_height(height: &str) -> Template {
|
|||||||
if block.height.is_empty() == false {
|
if block.height.is_empty() == false {
|
||||||
return Template::render("block_details", context! {
|
return Template::render("block_details", context! {
|
||||||
route: "block_details",
|
route: "block_details",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
block,
|
block,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -102,7 +97,6 @@ async fn block_details_by_height(height: &str) -> Template {
|
|||||||
|
|
||||||
Template::render("error", context! {
|
Template::render("error", context! {
|
||||||
route: "error",
|
route: "error",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,7 +116,6 @@ async fn block_header_by_hash(hash: &str) -> Either<Template, Redirect> {
|
|||||||
|
|
||||||
return Either::Left(Template::render("error", context! {
|
return Either::Left(Template::render("error", context! {
|
||||||
route: "error",
|
route: "error",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -137,14 +130,12 @@ async fn kernel(excess: &str) -> Template {
|
|||||||
if kernel.excess.is_empty() == false {
|
if kernel.excess.is_empty() == false {
|
||||||
return Template::render("kernel", context! {
|
return Template::render("kernel", context! {
|
||||||
route: "kernel",
|
route: "kernel",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
kernel,
|
kernel,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return Template::render("error", context! {
|
return Template::render("error", context! {
|
||||||
route: "error",
|
route: "error",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,14 +150,12 @@ async fn output(commit: &str) -> Template {
|
|||||||
if output.commit.is_empty() == false {
|
if output.commit.is_empty() == false {
|
||||||
return Template::render("output", context! {
|
return Template::render("output", context! {
|
||||||
route: "output",
|
route: "output",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
output,
|
output,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return Template::render("error", context! {
|
return Template::render("error", context! {
|
||||||
route: "error",
|
route: "error",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -181,7 +170,6 @@ pub async fn search(input: Option<&str>) -> Either<Template, Redirect> {
|
|||||||
Some(value) => value,
|
Some(value) => value,
|
||||||
None => return Either::Left(Template::render("search", context! {
|
None => return Either::Left(Template::render("search", context! {
|
||||||
route: "search",
|
route: "search",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
})),
|
})),
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -221,7 +209,6 @@ pub async fn search(input: Option<&str>) -> Either<Template, Redirect> {
|
|||||||
|
|
||||||
Either::Left(Template::render("error", context! {
|
Either::Left(Template::render("error", context! {
|
||||||
route: "error",
|
route: "error",
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -236,7 +223,6 @@ fn stats(statistics: &State<Arc<Mutex<Statistics>>>) -> Template {
|
|||||||
user_agent: data.user_agent.clone(),
|
user_agent: data.user_agent.clone(),
|
||||||
count: data.count.clone(),
|
count: data.count.clone(),
|
||||||
total: data.total,
|
total: data.total,
|
||||||
cg_api: CONFIG.coingecko_api.clone(),
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -246,16 +246,8 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if cg_api == "enabled" %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col d-flex justify-content-center" style="color:grey">
|
|
||||||
Powered by CoinGecko
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
|
||||||
</code>
|
</code>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user