Skip to content

Commit

Permalink
수정을 지원하지 않는 테마 에디터 출력 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
woongbin committed Jun 24, 2019
1 parent d8c69e5 commit f0e5b9a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 24 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/ThemeSettingsController.php
Expand Up @@ -206,6 +206,7 @@ public function edit(Request $request, ThemeHandler $themeHandler)


if (empty($files)) { if (empty($files)) {
return \XePresenter::make('theme.edit', [ return \XePresenter::make('theme.edit', [
'themes' => $themes,
'theme' => $theme, 'theme' => $theme,
'files' => $files, 'files' => $files,
]); ]);
Expand Down
51 changes: 27 additions & 24 deletions resources/views/plugin/skins/default/theme/edit.blade.php
Expand Up @@ -6,37 +6,40 @@
<small>{{xe_trans('xe::themeEditorDescription')}}</small> <small>{{xe_trans('xe::themeEditorDescription')}}</small>
@stop @stop


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


<div class="pull-right"> <div class="pull-right">
<div class="input-group search-group"> <div class="input-group search-group">
<div class="input-group-btn"> <div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="selected-type">{{$theme->getTitle()}}</span> <span class="selected-type">{{$theme->getTitle()}}</span>
<span class="caret"></span> <span class="caret"></span>
</button> </button>
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
@foreach ($themes as $editableTheme) @foreach ($themes as $editableTheme)
<li> <li>
<a href="{{route('settings.theme.edit', ['theme' => $editableTheme->getId()])}}" data-target="query"><span>{{$editableTheme->getTitle()}}</span></a> <a href="{{route('settings.theme.edit', ['theme' => $editableTheme->getId()])}}" data-target="query"><span>{{$editableTheme->getTitle()}}</span></a>
</li> </li>
@endforeach @endforeach
</ul> </ul>
</div>
</div> </div>
</div> </div>
</div> </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="row">
<div class="col-md-2"> <div class="col-md-2">
<ul class="nav nav-pills nav-stacked" style="margin-bottom: 10px;"> <ul class="nav nav-pills nav-stacked" style="margin-bottom: 10px;">
Expand Down

0 comments on commit f0e5b9a

Please sign in to comment.