Merge pull request #226 from openclassify/fatih

Design and language fixes
This commit is contained in:
Fatih Alp 2020-01-12 19:54:55 +03:00 committed by GitHub
commit 9e1312ce71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 12 additions and 18 deletions

View File

@ -106,6 +106,7 @@ return [
'description' => [
'name' => 'Description'
],
'explanation' => 'Explanation',
'type' => [
'name' => 'Type'
],

View File

@ -103,9 +103,8 @@ return [
'my_adv' => [
'name' => 'İlan'
],
'description' => [
'name' => 'Açıklama'
],
'description' => 'Detaylar',
'explanation' => 'Açıklama',
'type' => [
'name' => 'Tip'
],

View File

@ -8,7 +8,7 @@
<a class="nav-item nav-link active bg-secondary text-white" id="nav-description-tab"
data-toggle="tab" href="#nav-description" role="tab"
aria-controls="nav-description"
aria-selected="true">{{ trans('visiosoft.module.advs::field.description.name') }}</a>
aria-selected="true">{{ trans('visiosoft.module.advs::field.description') }}</a>
<!-- Content Tab With Block -->
{{ addBlock('ad-detail/content-tab',{'features':features})|raw }}
@ -21,7 +21,7 @@
<div class="tab-pane fade show active" id="nav-description" role="tabpanel"
aria-labelledby="nav-description-tab">
<h4>{{ trans('visiosoft.module.advs::field.description.name') }}</h4>
<h4>{{ trans('visiosoft.module.advs::field.description') }}</h4>
<p>{{ adv.advs_desc|raw }}</p>
</div>

View File

@ -22,7 +22,7 @@
{{ trans('visiosoft.module.advs::field.offered_by') }}:
<a id="owner"
href="{{ url_route('visiosoft.module.advs::list_user_ad', [adv.created_by_id]) }}"
data-content="{{ adv.owner_id }}">{{ adv.owner }}
data-content="{{ adv.owner_id }}"> {{ adv.first_name }} {{ adv.last_name }}
</a>
{{ addBlock('ad-detail/seller/action',{'seller_id':adv.owner_id})|raw }}
</div>
@ -43,7 +43,7 @@
<div class="col-md-12 m-2">
<i class="fa fa-suitcase"></i>
<a href="{{ url_route('visiosoft.module.advs::list_user_ad',
[adv.created_by_id]) }}">{{ adv.owner }}</a>
[adv.created_by_id]) }}"> {{ adv.first_name }} {{ adv.last_name }}</a>
</div>
{% endif %}
</div>

View File

@ -292,7 +292,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
$adv = $this->model
->where('advs_advs.id', $id)
->leftJoin('users_users as u1', 'advs_advs.created_by_id', '=', 'u1.id')
->select('advs_advs.*', 'u1.display_name as owner', 'u1.first_name as firstname', 'u1.last_name as lastname', 'u1.id as owner_id')
->select('advs_advs.*','u1.first_name as first_name', 'u1.last_name as last_name', 'u1.id as owner_id')
->inRandomOrder()
->first();

View File

@ -1,9 +1,7 @@
<?php
return [
'latest_ads' => [
'name' => 'أحدث الإعلانات',
],
'latest_ads' => 'أحدث الإعلانات',
'show_all' => [
'name' => 'عرض الكل',
],

View File

@ -1,9 +1,7 @@
<?php
return [
'latest_ads' => [
'name' => 'Latest Ads',
],
'latest_ads' => 'Latest Ads',
'show_all' => [
'name' => 'Show All',
],

View File

@ -1,9 +1,7 @@
<?php
return [
'latest_ads' => [
'name' => 'Son Eklenenler',
],
'latest_ads' => 'Son Eklenenler',
'show_all' => [
'name' => 'Tümünü Göster',
],

View File

@ -2,7 +2,7 @@
<div class="row p-2">
{% if setting_value('visiosoft.theme.base::latest_and_view_all_btn') %}
<div class="col-md-6">
<h4 class="p-2">{{ trans('theme::field.latest_ads.name') }}</h4>
<h4 class="p-2">{{ trans('theme::field.latest_ads') }}</h4>
</div>
<div class="col-md-6 text-right">
<a class="btn btn-outline-secondary"