changes and release cut for 0.2.3 #31
2 changed files with 5 additions and 1 deletions
make the joboffer id a link to the highlight link
commit
ac3547df6a
|
|
@ -54,6 +54,7 @@ pub struct JobOfferActions {
|
|||
unpublish_url: Url,
|
||||
delete_url: Url,
|
||||
edit_url: Url,
|
||||
highlight_link: Url,
|
||||
confirmation_link: Option<Url>,
|
||||
}
|
||||
|
||||
|
|
@ -86,11 +87,14 @@ impl JobOfferActions {
|
|||
ConfirmationStatus::Confirmed => None,
|
||||
};
|
||||
|
||||
let highlight_url = offer.highlight_link(id, req)?;
|
||||
|
||||
Ok(Self {
|
||||
publish_url,
|
||||
unpublish_url,
|
||||
delete_url,
|
||||
edit_url,
|
||||
highlight_link: highlight_url,
|
||||
confirmation_link: confirmation_url,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@
|
|||
{{#if user }}
|
||||
{{# unless job_offer.is_preview }}
|
||||
<hr />
|
||||
<div>ID: {{job_offer.id}}</div>
|
||||
<div>ID: <a href="{{job_offer.actions.highlight_link}}" >{{job_offer.id}}</a></div>
|
||||
<div>Review Status: <span class="{{#unless job_offer.reviewed}}unreviewed{{/unless}}">{{job_offer.status.review_status}}</span></div>
|
||||
<div>Confirmation Status: <span class="{{#unless job_offer.confirmed}}unconfirmed{{/unless}}">{{job_offer.status.confirmation_status.type}}</span></div>
|
||||
{{#if job_offer.actions.confirmation_link}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue