Merge "Add a trailing slash to file links in the file tab"

This commit is contained in:
Zuul 2018-07-03 19:04:07 +00:00 committed by Gerrit Code Review
commit e975ec4812
2 changed files with 5 additions and 3 deletions

View File

@ -91,7 +91,9 @@ class TestUtils(TestAra):
child = child['nodes'][0]
self.assertEqual(child['text'], 'main.yml')
self.assertEqual(child['dataAttr']['load'],
ctx['task_file'].id)
ctx['task_file'].id + '/')
else:
self.assertEqual(f['text'], 'playbook.yml')
self.assertEqual(f['dataAttr']['load'], ctx['pb_file'].id)
self.assertEqual(
f['dataAttr']['load'], ctx['pb_file'].id + '/'
)

View File

@ -136,7 +136,7 @@ def generate_tree(root, paths, mock_os):
node['dataAttr'] = {
'toggle': 'modal',
'target': '#file_modal',
'load': paths[full_path]
'load': paths[full_path] + '/'
}
tree.append(node)
return tree