summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--horizon/tables/base.py2
-rw-r--r--horizon/tests/table_tests.py2
-rw-r--r--openstack_dashboard/static/dashboard/css/style.css9
3 files changed, 11 insertions, 2 deletions
diff --git a/horizon/tables/base.py b/horizon/tables/base.py
index bf44b4b2..940fab6c 100644
--- a/horizon/tables/base.py
+++ b/horizon/tables/base.py
@@ -214,6 +214,8 @@ class Column(html.HTMLElement):
self.classes.append("sortable")
if self.hidden:
self.classes.append("hide")
+ if self.link is not None:
+ self.classes.append('anchor')
def __unicode__(self):
return unicode(self.verbose_name)
diff --git a/horizon/tests/table_tests.py b/horizon/tests/table_tests.py
index df224db3..701fee1f 100644
--- a/horizon/tests/table_tests.py
+++ b/horizon/tests/table_tests.py
@@ -341,7 +341,7 @@ class DataTableTests(test.TestCase):
self.assertEqual(row3.cells['optional'].value, "N/A")
# classes
self.assertEqual(value_col.get_final_attrs().get('class', ""),
- "green blue sortable")
+ "green blue sortable anchor")
# status
cell_status = row.cells['status'].status
self.assertEqual(cell_status, True)
diff --git a/openstack_dashboard/static/dashboard/css/style.css b/openstack_dashboard/static/dashboard/css/style.css
index 560c106b..89205e48 100644
--- a/openstack_dashboard/static/dashboard/css/style.css
+++ b/openstack_dashboard/static/dashboard/css/style.css
@@ -372,6 +372,10 @@ a.current_item:hover h3, a.current_item:hover h4 {
.table th.header:hover {
background-color: #e8e8e8;
}
+.table tbody td.anchor a {
+ display: block;
+ padding: 8px;
+}
.table tr.table_caption th.header:hover {
background-color: transparent;
cursor: default;
@@ -396,6 +400,9 @@ a.current_item:hover h3, a.current_item:hover h4 {
th {
background: #f1f1f1;
}
+td.anchor {
+ padding: 0;
+}
small {
@@ -555,7 +562,7 @@ table form {
font-family: "anivers";
}
-#monitoring h3{
+#monitoring h3 {
font-size: 14px;
font-weight: normal;
float: left;