Submission/Submission alias deletion WIP
This commit is contained in:
17
src/main.cpp
17
src/main.cpp
@@ -1209,6 +1209,23 @@ int main(int argc, char *argv[]) {
|
||||
return page.render(ctx);
|
||||
});
|
||||
|
||||
/*
|
||||
* Page for freelancer to view existing Links to a submission
|
||||
*/
|
||||
CROW_ROUTE(app, "/freelancer/submissionManagement/view/viewLink")
|
||||
([&, configuration](const crow::request& getRequest) {
|
||||
auto& cookieCtx = app.get_context<crow::CookieParser>(getRequest);
|
||||
crow::mustache::context ctx;
|
||||
if (Utilities::checkCookieLoginState(configuration, cookieCtx)) {
|
||||
ctx = Utilities::getFreelancerSubmissionLinks(configuration, cookieCtx.get_cookie(COOKIE_FREELANCER_EMAIL));
|
||||
|
||||
|
||||
ctx[MUSTACHE_COOKIE_LOGGED_IN] = true;
|
||||
}
|
||||
auto page = crow::mustache::load(TEMPLATE_FREELANCER_SUBMISSION_MANAGEMENT_VIEW_LINK);
|
||||
return page.render(ctx);
|
||||
});
|
||||
|
||||
/*
|
||||
* Page for freelancer to generate link to a particular submission
|
||||
*/
|
||||
|
Reference in New Issue
Block a user