Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Implement file content view #3

Open
dmsimard opened this issue Apr 17, 2019 · 0 comments
Open

Implement file content view #3

dmsimard opened this issue Apr 17, 2019 · 0 comments

Comments

@dmsimard
Copy link
Contributor

Files are displayed as paths in list view and their contents are available in the detailed view of the file.
When clicking on a file, we should be able to see the file's contents.

Example:

{
    "id": 1,
    "sha1": "52a93d5d88c96d0aefe53f70c0b1de0402f2b885",
    "playbook": {
        "id": 1,
        "duration": "38.40244",
        "started": "2019-04-17T13:17:18.334437",
        "ended": "2019-04-17T13:17:56.736877",
        "name": null,
        "status": "failed",
        "path": "/home/dmsimard/dev/sandbox/update-packages.yaml"
    },
    "content": "- name: Update packages on all servers\n  hosts: all\n  gather_facts: yes\n  tasks:\n    - name: Update packages\n      become: yes\n      package:\n        name: \"*\"\n        state: latest\n      register: updates\n\n    - name: Send an email if there are updates\n      mail:\n        to: [email protected]\n        subject: \"Package updates: {{ ansible_hostname }}\"\n        body: \"{{ updates.results }}\"\n      when: updates is changed\n",
    "created": "2019-04-17T13:17:18.354348",
    "updated": "2019-04-17T13:17:18.354367",
    "path": "/home/dmsimard/dev/sandbox/update-packages.yaml"
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant