Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a2e073ef
authored
May 02, 2016
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
request: add submission time
closes
#448
parent
cb2d9cff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
circle/request/tables.py
+2
-1
circle/request/templates/request/detail.html
+3
-0
No files found.
circle/request/tables.py
View file @
a2e073ef
...
@@ -38,6 +38,7 @@ class RequestTable(Table):
...
@@ -38,6 +38,7 @@ class RequestTable(Table):
template_name
=
"request/columns/user.html"
,
template_name
=
"request/columns/user.html"
,
verbose_name
=
_
(
"User"
),
verbose_name
=
_
(
"User"
),
)
)
created
=
Column
(
verbose_name
=
_
(
"Date"
))
type
=
TemplateColumn
(
type
=
TemplateColumn
(
template_name
=
"request/columns/type.html"
,
template_name
=
"request/columns/type.html"
,
verbose_name
=
_
(
"Type"
),
verbose_name
=
_
(
"Type"
),
...
@@ -48,7 +49,7 @@ class RequestTable(Table):
...
@@ -48,7 +49,7 @@ class RequestTable(Table):
template
=
"django_tables2/with_pagination.html"
template
=
"django_tables2/with_pagination.html"
attrs
=
{
'class'
:
(
'table table-bordered table-striped table-hover'
),
attrs
=
{
'class'
:
(
'table table-bordered table-striped table-hover'
),
'id'
:
"request-list-table"
}
'id'
:
"request-list-table"
}
fields
=
(
"pk"
,
"status"
,
"type"
,
"user"
,
)
fields
=
(
"pk"
,
"status"
,
"type"
,
"
created"
,
"
user"
,
)
order_by
=
(
"-pk"
,
)
order_by
=
(
"-pk"
,
)
empty_text
=
_
(
"No more requests."
)
empty_text
=
_
(
"No more requests."
)
per_page
=
10
per_page
=
10
...
...
circle/request/templates/request/detail.html
View file @
a2e073ef
...
@@ -38,6 +38,9 @@
...
@@ -38,6 +38,9 @@
<pre>
{{ object.message }}
</pre>
<pre>
{{ object.message }}
</pre>
</p>
</p>
<hr
/>
<hr
/>
<div
class=
"pull-right"
>
<strong>
{% trans "Submitted" %}:
</strong>
{{ object.created }}
</div>
{% if object.type == "lease" %}
{% if object.type == "lease" %}
<dl>
<dl>
<dt>
{% trans "VM name" %}
</dt>
<dt>
{% trans "VM name" %}
</dt>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment