Skip to content
Permalink
Browse files

수정을 지원하지 않는 테마 에디터 출력 개선

  • Loading branch information...
woongbin committed Jun 24, 2019
1 parent d8c69e5 commit f0e5b9aba606bb80b3d68cded242654cb390cab8
@@ -206,6 +206,7 @@ public function edit(Request $request, ThemeHandler $themeHandler)
if (empty($files)) {
return \XePresenter::make('theme.edit', [
'themes' => $themes,
'theme' => $theme,
'files' => $files,
]);
@@ -6,37 +6,40 @@
<small>{{xe_trans('xe::themeEditorDescription')}}</small>
@stop

@if(count($files) === 0)
<p>{{xe_trans('xe::themeNotSupportEdit')}}</p>
@else
<div class="col-sm-12">
<div class="panel-group">
<div class="panel admin-tab">
<div class="pull-left">
{{ $theme->getTitle() }}
</div>
<div class="col-sm-12">
<div class="panel-group">
<div class="panel admin-tab">
<div class="pull-left">
{{ $theme->getTitle() }}
</div>

<div class="pull-right">
<div class="input-group search-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="selected-type">{{$theme->getTitle()}}</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
@foreach ($themes as $editableTheme)
<li>
<a href="{{route('settings.theme.edit', ['theme' => $editableTheme->getId()])}}" data-target="query"><span>{{$editableTheme->getTitle()}}</span></a>
</li>
@endforeach
</ul>
</div>
<div class="pull-right">
<div class="input-group search-group">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="selected-type">{{$theme->getTitle()}}</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
@foreach ($themes as $editableTheme)
<li>
<a href="{{route('settings.theme.edit', ['theme' => $editableTheme->getId()])}}" data-target="query"><span>{{$editableTheme->getTitle()}}</span></a>
</li>
@endforeach
</ul>
</div>
</div>
</div>
</div>
</div>
</div>

@if(count($files) === 0)
@php
$message = xe_trans('xe::themeNotSupportEdit');
@endphp
@include($_skin::view('empty'))
@else
<div class="row">
<div class="col-md-2">
<ul class="nav nav-pills nav-stacked" style="margin-bottom: 10px;">

0 comments on commit f0e5b9a

Please sign in to comment.
You can’t perform that action at this time.