<template>
    <div class="panel panel-default">
        <div class="panel-heading">
            <!--@lang('entry.changelog', ['version' => '2.0'])-->
            Changes in {{ version }}
        </div>

        <div class="panel-body">
            <div class="container">
                <div class="row">
                    <div class="col-md-12">
                        {{ changelog }}
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: 'entry-changelog',
        data: function () {
            return {
                id: 1,
                changelog: '',
                version: ''
            }
        },
        created: function () {
            axios.get('/api/rpc/file/getfilechangelog/' + this.id).then(data => {
                this.changelog = data.data[0].changelog;
                this.version = data.data[0].version;
            });
        }
    }
</script>

<style>
    .col {
		text-align: center;
    }
</style>