AsgardCms/Workshop

View on GitHub
Resources/views/admin/modules/partials/changelog.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php foreach ($changelog['versions'] as $version => $info): ?>
<dl class="dl-horizontal">
    <dt><a href="{{ $changelog['url'].'/releases/tag/'.$version }}" target="_blank"><i class="fa fa-external-link-square"></i> {{ $version }}</a></dt>
    <dd>
        <?php if (isset($info['added'])): ?>
        @include('workshop::admin.modules.partials.changelog-part', [
            'title' => trans('workshop::modules.added'),
            'label' => 'success',
            'color' => 'green',
            'data' => $info['added']
        ])
        <?php endif; ?>
        <?php if (isset($info['changed'])): ?>
        @include('workshop::admin.modules.partials.changelog-part', [
            'title' => trans('workshop::modules.changed'),
            'label' => 'warning',
            'color' => 'orange',
            'data' => $info['changed']
        ])
        <?php endif; ?>
        <?php if (isset($info['removed'])): ?>
        @include('workshop::admin.modules.partials.changelog-part', [
            'title' => trans('workshop::modules.removed'),
            'label' => 'danger',
            'color' => 'red',
            'data' => $info['removed']
        ])
        <?php endif; ?>
    </dd>
</dl>
<?php endforeach; ?>