feat: link to results page from admin campaign list page
This commit is contained in:
parent
ab3d496bca
commit
6bce9877ab
2 changed files with 9 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue