feat: link to results page from admin campaign list page

This commit is contained in:
Aravinth Manivannan 2023-01-26 20:58:53 +05:30
parent ab3d496bca
commit 6bce9877ab
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 9 additions and 2 deletions

View file

@ -43,7 +43,7 @@ impl CtxError for Intro {
impl Intro {
pub fn new(settings: &Settings, payload: Option<&str>) -> Self {
let ctx = RefCell::new(context(settings, "Login"));
let ctx = RefCell::new(context(settings, "Campaign Homepage"));
if let Some(uuid) = payload {
let payload = crate::PAGES.panel.campaigns.get_bench_route(uuid);
ctx.borrow_mut().insert(PAYLOAD_KEY, &payload);

View file

@ -6,8 +6,9 @@
<table class="campaign__table">
<thead class="campaign__heading">
<tr>
<th class="campaign__title-text">ID</th>
<th class="campaign__title-text">Name</th>
<th class="campaign__title-text">UUID</th>
<th class="campaign__title-text">Results</th>
</tr>
</thead>
<tbody class="campaign__body">
@ -23,6 +24,12 @@
<p class="campaign__item-text">{{ campaign.uuid }}</p></a
>
</td>
<td>
<a href="{{ campaign.results }}">
<p class="campaign__item-text">Click Here</p></a
>
</td>
</tr>
{% endfor %}
</tbody>