mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Merge pull request #403 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
c34355c4c4
3 changed files with 58 additions and 19 deletions
|
@ -171,6 +171,8 @@ class SettingsController extends Controller
|
||||||
$fields = [
|
$fields = [
|
||||||
'is_private',
|
'is_private',
|
||||||
'crawlable',
|
'crawlable',
|
||||||
|
'show_profile_follower_count',
|
||||||
|
'show_profile_following_count'
|
||||||
];
|
];
|
||||||
foreach($fields as $field) {
|
foreach($fields as $field) {
|
||||||
$form = $request->input($field);
|
$form = $request->input($field);
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
|
class UpdateSettingsTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('user_settings', function (Blueprint $table) {
|
||||||
|
$table->boolean('show_profile_followers')->default(true);
|
||||||
|
$table->boolean('show_profile_follower_count')->default(true);
|
||||||
|
$table->boolean('show_profile_following')->default(true);
|
||||||
|
$table->boolean('show_profile_following_count')->default(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
$table->dropColumn('show_profile_followers');
|
||||||
|
$table->dropColumn('show_profile_follower_count');
|
||||||
|
$table->dropColumn('show_profile_following');
|
||||||
|
$table->dropColumn('show_profile_following_count');
|
||||||
|
}
|
||||||
|
}
|
|
@ -21,8 +21,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="tag-timeline">
|
||||||
<div class="tag-timeline row">
|
<div class="row">
|
||||||
@foreach($posts as $status)
|
@foreach($posts as $status)
|
||||||
<div class="col-4 p-0 p-sm-2 p-md-3">
|
<div class="col-4 p-0 p-sm-2 p-md-3">
|
||||||
<a class="card info-overlay card-md-border-0" href="{{$status->url()}}">
|
<a class="card info-overlay card-md-border-0" href="{{$status->url()}}">
|
||||||
|
@ -43,6 +43,7 @@
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="d-flex justify-content-center pagination-container mt-4">
|
<div class="d-flex justify-content-center pagination-container mt-4">
|
||||||
{{$posts->links()}}
|
{{$posts->links()}}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue