#111: Added no feed items language strings and link to the Photographer Explorer page.

This commit is contained in:
Andy Heathershaw 2018-11-17 09:47:28 +00:00
parent c0ab6a7acc
commit 1d81185779
3 changed files with 10 additions and 1 deletions

View File

@ -78,6 +78,9 @@ return [
'uploaded_12_months' => 'Photos uploaded in the last 12 months',
],
'user_activity_feed' => [
'no_activity_p1' => 'Nothing to see here',
'no_activity_p2' => 'There is no recent activity to show you.',
'no_activity_p3' => 'Find someone new to follow on the :l_explore_startPhotographer Explorer:l_explore_end page.',
'title' => 'My Activity Feed'
],
'user_feed_type' => [

View File

@ -33,7 +33,11 @@
</div>
<div class="text-center" v-if="!is_loading && feed_items.length == 0">
<h4 class="text-danger"><b>@lang('gallery.user_activity_feed.no_activity_p1')</b></h4>
<p>@lang('gallery.user_activity_feed.no_activity_p2', ['user_name' => $user->name])</p>
<p>@lang('gallery.user_activity_feed.no_activity_p2')</p>
<p>@lang('gallery.user_activity_feed.no_activity_p3', [
'l_explore_start' => sprintf('<a href="%s">', route('userExplore')),
'l_explore_end' => '</a>'
])</p>
</div>
</div>
</div>

View File

@ -155,6 +155,8 @@ Route::get('u/{idOrAlias}', 'Gallery\UserController@show')
Route::get('me', 'Gallery\UserController@activityFeed')
->name('userActivityFeed')
->middleware('auth');
Route::get('explore', 'Gallery\UserController@exploreProfiles')
->name('userExplore');
Route::get('me.json', 'Gallery\UserController@activityFeedJson')
->name('userActivityFeedJson')
->middleware('auth');