Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Commit f1ee813

Browse files
committed
Update forum view and update site traduction word
1 parent bba8193 commit f1ee813

File tree

4 files changed

+44
-34
lines changed

4 files changed

+44
-34
lines changed

database/seeds/ChatterTableSeeder.php

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,30 @@ public function run()
3636
0 => [
3737
'id' => 1,
3838
'parent_id' => null,
39-
'order' => 1,
40-
'name' => 'Introductions',
41-
'color' => '#3498DB',
42-
'slug' => 'introductions',
39+
'order' => 2,
40+
'name' => 'General',
41+
'color' => '#2ECC71',
42+
'slug' => 'general',
4343
'created_at' => null,
4444
'updated_at' => null,
4545
],
4646
1 => [
4747
'id' => 2,
4848
'parent_id' => null,
4949
'order' => 2,
50-
'name' => 'General',
51-
'color' => '#2ECC71',
52-
'slug' => 'general',
50+
'name' => 'Laravel',
51+
'color' => '#E74430',
52+
'slug' => 'laravel',
5353
'created_at' => null,
5454
'updated_at' => null,
5555
],
5656
2 => [
5757
'id' => 3,
5858
'parent_id' => null,
5959
'order' => 3,
60-
'name' => 'Feedback',
61-
'color' => '#9B59B6',
62-
'slug' => 'feedback',
60+
'name' => 'Site Feedback',
61+
'color' => '#F39C12',
62+
'slug' => 'site-feedback',
6363
'created_at' => null,
6464
'updated_at' => null,
6565
],
@@ -75,41 +75,41 @@ public function run()
7575
],
7676
4 => [
7777
'id' => 5,
78-
'parent_id' => 1,
79-
'order' => 1,
80-
'name' => 'Rules',
81-
'color' => '#227ab5',
82-
'slug' => 'rules',
78+
'parent_id' => null,
79+
'order' => 5,
80+
'name' => 'PHP',
81+
'color' => '#9B59B6',
82+
'slug' => 'php',
8383
'created_at' => null,
8484
'updated_at' => null,
8585
],
8686
5 => [
8787
'id' => 6,
88-
'parent_id' => 5,
89-
'order' => 1,
90-
'name' => 'Basics',
91-
'color' => '#195a86',
92-
'slug' => 'basics',
88+
'parent_id' => null,
89+
'order' => 6,
90+
'name' => 'Javascript',
91+
'color' => '#ebc217',
92+
'slug' => 'javascript',
9393
'created_at' => null,
9494
'updated_at' => null,
9595
],
9696
6 => [
9797
'id' => 7,
9898
'parent_id' => 5,
9999
'order' => 2,
100-
'name' => 'Contribution',
101-
'color' => '#195a86',
102-
'slug' => 'contribution',
100+
'name' => 'HTML & CSS',
101+
'color' => '#ff8c4b',
102+
'slug' => 'html-css',
103103
'created_at' => null,
104104
'updated_at' => null,
105105
],
106106
7 => [
107107
'id' => 8,
108108
'parent_id' => 1,
109109
'order' => 2,
110-
'name' => 'About',
111-
'color' => '#227ab5',
112-
'slug' => 'about',
110+
'name' => 'Guides',
111+
'color' => '#00b1b3',
112+
'slug' => 'guides',
113113
'created_at' => null,
114114
'updated_at' => null,
115115
],
@@ -119,7 +119,7 @@ public function run()
119119

120120
\DB::table('chatter_discussion')->delete();
121121

122-
\DB::table('chatter_discussion')->insert([
122+
/*\DB::table('chatter_discussion')->insert([
123123
0 => [
124124
'id' => 3,
125125
'chatter_category_id' => 1,
@@ -185,13 +185,13 @@ public function run()
185185
'slug' => 'welcome-to-the-chatter-laravel-forum-package',
186186
'color' => '',
187187
],
188-
]);
188+
]);*/
189189

190190
// CREATE THE POSTS
191191

192192
\DB::table('chatter_post')->delete();
193193

194-
\DB::table('chatter_post')->insert([
194+
/*\DB::table('chatter_post')->insert([
195195
0 => [
196196
'id' => 1,
197197
'chatter_discussion_id' => 3,
@@ -276,6 +276,6 @@ public function run()
276276
'created_at' => '2016-08-18 15:01:25',
277277
'updated_at' => '2016-08-18 15:01:25',
278278
],
279-
]);
279+
]);*/
280280
}
281281
}

resources/lang/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,7 @@
6767
"Login with Google": "Login with Google",
6868

6969
"Reset Password": "Reset Password",
70-
"Send Password Reset Link": "Send Password Reset Link"
70+
"Send Password Reset Link": "Send Password Reset Link",
71+
72+
"This category does not have a discussion yet": "This category does not have a discussion yet"
7173
}

resources/lang/fr.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,7 @@
6767
"Login with Google": "Se connecter avec Google",
6868

6969
"Reset Password": "Rénitialiser son mot de passe",
70-
"Send Password Reset Link": "M'envoyez le lien de réinitiqlisation"
70+
"Send Password Reset Link": "M'envoyez le lien de réinitiqlisation",
71+
72+
"This category does not have a discussion yet": "Cette catégorie n'a pas encore de discussion"
7173
}

resources/views/vendor/chatter/home.blade.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
<div class="col-md-9 right-column">
9797
<div class="panel">
9898
<ul class="discussions">
99-
@foreach($discussions as $discussion)
99+
@forelse($discussions as $discussion)
100100
<li>
101101
<a class="discussion_list" href="/{{ Config::get('chatter.routes.home') }}/{{ Config::get('chatter.routes.discussion') }}/{{ $discussion->category->slug }}/{{ $discussion->slug }}">
102102
<div class="chatter_avatar">
@@ -139,7 +139,13 @@
139139
<div class="chatter_clear"></div>
140140
</a>
141141
</li>
142-
@endforeach
142+
@empty
143+
<li>
144+
<a href="javascript:;" class="discussion_list text-center">
145+
<h4>{{ __("This category does not have a discussion yet") }}</h4>
146+
</a>
147+
</li>
148+
@endforelse
143149
</ul>
144150
</div>
145151

0 commit comments

Comments
 (0)