Skip to content

Commit c1b71d7

Browse files
committed
some ui fixes
1 parent 4f934a5 commit c1b71d7

File tree

3 files changed

+62
-61
lines changed

3 files changed

+62
-61
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Try adding this to config/app.php:
145145
- You might need to set a higher memory limit, or upload smaller image files. This will depend on your server. I've used it to upload huge (10mb+) jpg images without problem, once the server was set up correctly to handle larger file uploads.
146146

147147
## Version History
148-
- **8.0.0** Compatibility with Laravel 8
148+
- **8.0.x** Compatibility with Laravel 8
149149
- 7.3.2 Some bug fixes
150150
- 7.3.0 New Admin UI
151151
- 7.2.2

src/Views/blogetc/index.blade.php

Lines changed: 59 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -6,76 +6,77 @@
66

77
@section("content")
88

9-
<div class='row'>
10-
<div class='col-sm-12 blogetc_container'>
11-
@if(\Auth::check() && \Auth::user()->canManageBlogEtcPosts())
12-
<div class="text-center">
13-
<p class='mb-1'>You are logged in as a blog admin user.
14-
<br>
15-
<a href='{{route("blogetc.admin.index")}}'
16-
class='btn border btn-outline-primary btn-sm '>
17-
<i class="fa fa-cogs" aria-hidden="true"></i>
18-
Go To Blog Admin Panel</a>
19-
</p>
20-
</div>
21-
@endif
9+
<div class='col-sm-12 blogetc_container'>
10+
@if(\Auth::check() && \Auth::user()->canManageBlogEtcPosts())
11+
<div class="text-center">
12+
<p class='mb-1'>You are logged in as a blog admin user.
13+
<br>
14+
<a href='{{route("blogetc.admin.index")}}'
15+
class='btn border btn-outline-primary btn-sm '>
16+
<i class="fa fa-cogs" aria-hidden="true"></i>
17+
Go To Blog Admin Panel</a>
18+
</p>
19+
</div>
20+
@endif
2221

23-
<div class="row">
24-
<div class="col-md-9">
22+
<div class="row">
23+
<div class="col-md-9">
2524

26-
@if($category_chain)
27-
<div class="container">
28-
<div class="row">
29-
<div class="col-md-12">
30-
@forelse($category_chain as $cat)
31-
/ <a href="{{$cat->url()}}">
32-
<span class="cat1">{{$cat->category_name}}</span>
33-
</a>
34-
@empty @endforelse
35-
</div>
36-
</div>
25+
@if($category_chain)
26+
<div class="container">
27+
<div class="row">
28+
<div class="col-md-12">
29+
@forelse($category_chain as $cat)
30+
/ <a href="{{$cat->url()}}">
31+
<span class="cat1">{{$cat->category_name}}</span>
32+
</a>
33+
@empty @endforelse
3734
</div>
38-
@endif
35+
</div>
36+
</div>
37+
@endif
3938

40-
@if(isset($blogetc_category) && $blogetc_category)
41-
<h2 class='text-center'> {{$blogetc_category->category_name}}</h2>
39+
@if(isset($blogetc_category) && $blogetc_category)
40+
<h2 class='text-center'> {{$blogetc_category->category_name}}</h2>
4241

43-
@if($blogetc_category->category_description)
44-
<p class='text-center'>{{$blogetc_category->category_description}}</p>
45-
@endif
42+
@if($blogetc_category->category_description)
43+
<p class='text-center'>{{$blogetc_category->category_description}}</p>
44+
@endif
4645

47-
@endif
46+
@endif
4847

49-
<div class="container">
50-
<div class="row">
51-
@forelse($posts as $post)
52-
@include("blogetc::partials.index_loop")
53-
@empty
54-
<div class='alert alert-danger'>No posts</div>
55-
@endforelse
56-
</div>
57-
</div>
58-
</div>
59-
<div class="col-md-3">
60-
<h6>Blog Categories</h6>
61-
@forelse($categories as $category)
62-
<a href="{{$category->url()}}">
63-
<h6>{{$category->category_name}}</h6>
64-
</a>
48+
<div class="container">
49+
<div class="row">
50+
@forelse($posts as $post)
51+
@include("blogetc::partials.index_loop")
6552
@empty
66-
<a href="#">
67-
<h6>No Categories</h6>
68-
</a>
53+
<div class="col-md-12">
54+
<div class='alert alert-danger'>No posts!</div>
55+
</div>
6956
@endforelse
7057
</div>
7158
</div>
72-
73-
<div class='text-center col-sm-4 mx-auto'>
74-
{{$posts->appends( [] )->links()}}
7559
</div>
76-
@if (config('blogetc.search.search_enabled') )
77-
@include('blogetc::sitewide.search_form')
78-
@endif
60+
<div class="col-md-3">
61+
<h6>Blog Categories</h6>
62+
@forelse($categories as $category)
63+
<a href="{{$category->url()}}">
64+
<h6>{{$category->category_name}}</h6>
65+
</a>
66+
@empty
67+
<a href="#">
68+
<h6>No Categories</h6>
69+
</a>
70+
@endforelse
71+
</div>
7972
</div>
73+
74+
<div class='text-center col-sm-4 mx-auto'>
75+
{{$posts->appends( [] )->links()}}
76+
</div>
77+
@if (config('blogetc.search.search_enabled') )
78+
@include('blogetc::sitewide.search_form')
79+
@endif
8080
</div>
81+
8182
@endsection

src/Views/blogetc_admin/layouts/admin_layout.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@
9191
<div class='col-md-3 list-group-color'>
9292
@include("blogetc_admin::layouts.sidebar")
9393
<div class=' list-group-color text-center mt-5 mb-3 text-muted hessam-version'>
94-
<small><a href='https://github.com/vhessam/laravel-blogger'>Laravel Blogger</a></small>
94+
<small><a href='https://github.com/vhessam/laravel-blogger'>Hessam CMS</a></small>
9595

9696
<small>
97-
Version 7.3
97+
Version 8.0.x
9898
</small>
9999
</div>
100100
</div>

0 commit comments

Comments
 (0)