Skip to content

Commit

Permalink
close #609 Fixed: Empty apps page category page broken
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Nov 9, 2018
1 parent 0777c64 commit 4197741
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 42 deletions.
30 changes: 21 additions & 9 deletions resources/views/modules/home/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,41 @@
<h3>{{ trans('modules.top_paid') }}</h3>
</div>

@foreach ($paid->data as $module)
@include('partials.modules.item')
@endforeach
@if ($paid->data)
@foreach ($paid->data as $module)
@include('partials.modules.item')
@endforeach
@else
@include('partials.modules.no_apps')
@endif
</div>

<div class="col-md-12">
<div class="content-header no-padding-left">
<h3>{{ trans('modules.new') }}</h3>
</div>

@foreach ($new->data as $module)
@include('partials.modules.item')
@endforeach
@if ($new->data)
@foreach ($new->data as $module)
@include('partials.modules.item')
@endforeach
@else
@include('partials.modules.no_apps')
@endif
</div>

<div class="col-md-12">
<div class="content-header no-padding-left">
<h3>{{ trans('modules.top_free') }}</h3>
</div>

@foreach ($free->data as $module)
@include('partials.modules.item')
@endforeach
@if ($free->data)
@foreach ($free->data as $module)
@include('partials.modules.item')
@endforeach
@else
@include('partials.modules.no_apps')
@endif
</div>
</div>
@endsection
24 changes: 2 additions & 22 deletions resources/views/modules/my/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,7 @@
@include('partials.modules.item')
@endforeach
@else
<div class="box box-success">
<div class="box-body">
<p class="col-md-12" style="margin-top: 15px">
{{ trans('modules.no_apps') }}
</p>
<p class="col-md-12" style="margin-top: 20px">
<small>{!! trans('modules.developer') !!}</small>
</p>
</div>
<!-- /.box-body -->
</div>
@include('partials.modules.no_apps')
@endif
</div>

Expand All @@ -45,17 +35,7 @@
@include('partials.modules.item')
@endforeach
@else
<div class="box box-success">
<div class="box-body">
<p class="col-md-12" style="margin-top: 15px">
{{ trans('modules.no_apps') }}
</p>
<p class="col-md-12" style="margin-top: 20px">
<small>{!! trans('modules.developer') !!}</small>
</p>
</div>
<!-- /.box-body -->
</div>
@include('partials.modules.no_apps')
@endif
</div>
</div>
Expand Down
12 changes: 1 addition & 11 deletions resources/views/modules/tiles/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,7 @@
</ul>
</div>
@else
<div class="box box-success">
<div class="box-body">
<p class="col-md-12" style="margin-top: 15px">
{{ trans('modules.no_apps') }}
</p>
<p class="col-md-12" style="margin-top: 20px">
<small>{!! trans('modules.developer') !!}</small>
</p>
</div>
<!-- /.box-body -->
</div>
@include('partials.modules.no_apps')
@endif
</div>
</div>
Expand Down
10 changes: 10 additions & 0 deletions resources/views/partials/modules/no_apps.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class="box box-success">
<div class="box-body">
<p class="col-md-12" style="margin-top: 15px">
{{ trans('modules.no_apps') }}
</p>
<p class="col-md-12" style="margin-top: 20px">
<small>{!! trans('modules.developer') !!}</small>
</p>
</div>
</div>

0 comments on commit 4197741

Please sign in to comment.