diff --git a/app/main/views.py b/app/main/views.py index 147d62cb..261d14e6 100644 --- a/app/main/views.py +++ b/app/main/views.py @@ -71,5 +71,4 @@ def job(job_id): elif not job.user_id == current_user.id: print('Job does not belong to current user.') abort(403) - print(job) - return render_template('main/corpus.html.j2', title=job.title) + return render_template('main/jobs/job.html.j2', title='Job', job=job) diff --git a/app/templates/main/corpus.html.j2 b/app/templates/main/corpus.html.j2 deleted file mode 100644 index a796f3bf..00000000 --- a/app/templates/main/corpus.html.j2 +++ /dev/null @@ -1,43 +0,0 @@ -{% extends "base.html.j2" %} - -{% block page_content %} -
-

Opaque?

-

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,

-
- -
-
-
-

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

-
-
-
- -
-
-
- Open source -

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy

-
-
-
- -
-
-
- Cloud processing -

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy

-
-
-
- -
-
-
- Context -

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy

-
-
-
-{% endblock %} diff --git a/app/templates/main/jobs/job.html.j2 b/app/templates/main/jobs/job.html.j2 new file mode 100644 index 00000000..1963c977 --- /dev/null +++ b/app/templates/main/jobs/job.html.j2 @@ -0,0 +1,25 @@ +{% extends "base.html.j2" %} + +{% block page_content %} +
+

{{ job.title }}

+

{{ job.description }}

+
+ +
+
+
+ Details +

Creation date: {{ job.creation_date }}

+

Description: {{ job.description }}

+

Memory: {{ job.mem_mb }} MB

+

Cores: {{ job.n_cores }}

+

Service: {{ job.service }}

+

Service arguments: {{ job.service_args }}

+

Service version: {{ job.service_version }}

+

Status: {{ job.status }}

+

Title: {{ job.title }}

+
+
+ +{% endblock %}