summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/project/stacks/template_versions/tables.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_dashboard/dashboards/project/stacks/template_versions/tables.py')
-rw-r--r--openstack_dashboard/dashboards/project/stacks/template_versions/tables.py52
1 files changed, 0 insertions, 52 deletions
diff --git a/openstack_dashboard/dashboards/project/stacks/template_versions/tables.py b/openstack_dashboard/dashboards/project/stacks/template_versions/tables.py
deleted file mode 100644
index 8c63d14..0000000
--- a/openstack_dashboard/dashboards/project/stacks/template_versions/tables.py
+++ /dev/null
@@ -1,52 +0,0 @@
1# Licensed under the Apache License, Version 2.0 (the "License");
2# you may not use this file except in compliance with the License.
3# You may obtain a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS,
9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10# implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14from django.template import defaultfilters as filters
15from django.utils.translation import ugettext_lazy as _
16
17from horizon import tables
18
19
20class TemplateVersionsTable(tables.DataTable):
21 version = tables.Column(
22 "version",
23 verbose_name=_("Version"),
24 link="horizon:project:stacks.template_versions:details",)
25 type = tables.Column(
26 "type",
27 verbose_name=_("Type"),
28 filters=(filters.upper,))
29
30 def get_object_id(self, template_versions):
31 return template_versions.version
32
33 class Meta(object):
34 name = "template_versions"
35 table_actions = (tables.FilterAction,)
36 verbose_name = _("Template Versions")
37 table_actions = (tables.FilterAction,)
38 multi_select = False
39
40
41class TemplateFunctionsTable(tables.DataTable):
42 functions = tables.Column('functions', verbose_name=_("Function"))
43 description = tables.Column('description', verbose_name=_("Description"))
44
45 def get_object_id(self, template_functions):
46 return template_functions.functions
47
48 class Meta(object):
49 name = "template_functions"
50 verbose_name = _("Template Functions")
51 table_actions = (tables.FilterAction,)
52 multi_select = False