close #655 Added: App Store add app documentation

This commit is contained in:
cuneytsenturk
2018-11-30 17:24:03 +03:00
parent d84a49b8be
commit 84b10b85a4
6 changed files with 89 additions and 1 deletions

View File

@ -0,0 +1,48 @@
@extends('layouts.modules')
@section('title', trans_choice('general.modules', 2))
@section('new_button')
<span class="new-button"><a href="{{ url('apps/token/create') }}" class="btn btn-success btn-sm"><span class="fa fa-key"></span> &nbsp;{{ trans('modules.api_token') }}</a></span>
<span class="new-button"><a href="{{ url('apps/my') }}" class="btn btn-default btn-sm"><span class="fa fa-user"></span> &nbsp;{{ trans('modules.my_apps') }}</a></span>
@endsection
@section('content')
@include('partials.modules.bar')
<div class="row module">
<div class="col-md-12">
<div class="col-md-12 no-padding-left">
<div class="box box-success">
<div class="box-body">
@if ($documentation)
{!! $documentation->body !!}
@else
{{ trans('general.na') }}
@endif
</div>
</div>
</div>
<div class="col-md-12 no-padding-left">
<ul class="pager nomargin">
<li class="previous"><a href="{{ url($back) }}" class="btn btn-default btn-sm">&laquo; {{ trans('modules.back') }}</a></li>
</ul>
</div>
</div>
</div>
@endsection
@push('stylesheet')
<style type="text/css">
.row.module h1 {
margin: 0;
font-size: 24px !important;
}
.row.module img {
width: 100%;
max-width: 900px;
}
</style>
@endpush

View File

@ -85,7 +85,7 @@
@endforeach
<div class="carousel-navigation-message">
@if (($item->module && (count($module->screenshots) > 1)) || (!$item->module && (count($module->screenshots) > 1)))
@if (($module->video && (count($module->screenshots) > 1)) || (!$module->video && (count($module->screenshots) > 1)))
<a href="#carousel-screenshot-generic" class="left carousel-control" role="button" data-slide="prev">
<i class="fa fa-chevron-left"></i>
<span class="sr-only">{{ trans('pagination.previous') }}</span>
@ -239,6 +239,16 @@
<td class="text-right"><a href="{{ url('apps/categories/' . $module->category->slug) }}">{{ $module->category->name }}</a></td>
</tr>
@endif
<tr>
<th>{{ trans('modules.documentation') }}</th>
<td class="text-right">
@if ($module->documentation)
<a href="{{ url('apps/docs/' . $module->slug) }}">{{ trans('modules.view') }}</a></td>
@else
{{ trans('general.na') }}
@endif
</tr>
</tbody>
</table>
</div>