index.blade.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. @extends('layouts.app')
  2. @section('content')
  3. @if (session('status'))
  4. <div class="alert alert-primary px-3 h6 font-weight-bold text-center">
  5. {{ session('status') }}
  6. </div>
  7. @endif
  8. @if ($errors->any())
  9. <div class="alert alert-danger px-3 h6 text-center">
  10. @foreach($errors->all() as $error)
  11. <p class="font-weight-bold mb-1">{{ $error }}</p>
  12. @endforeach
  13. </div>
  14. @endif
  15. @if (session('error'))
  16. <div class="alert alert-danger px-3 h6 text-center">
  17. {{ session('error') }}
  18. </div>
  19. @endif
  20. <div class="container">
  21. <div class="col-12">
  22. <div class="card shadow-none border mt-5">
  23. <div class="card-body">
  24. <div class="row">
  25. <div class="col-12 p-3 p-md-5">
  26. <div class="title">
  27. <div class="d-flex justify-content-between align-items-center">
  28. <h3 class="font-weight-bold">Manage Aliases</h3>
  29. <a class="font-weight-bold" href="/settings/home">
  30. <i class="far fa-long-arrow-left"></i>
  31. Back to Settings
  32. </a>
  33. </div>
  34. <hr />
  35. <div class="row">
  36. <div class="col-12 col-md-7">
  37. <p class="lead">If you want to move from another account to this one, you can create an alias here first.</p>
  38. <p>This alias is needed before you can move your followers from the old account to this one. Don't worry, making this change is safe and can be undone. The process of moving the account starts from the old one.</p>
  39. <p class="mb-0">Your followers will be migrated to your new account, and in some instances your posts too! For more information on Aliases and Account Migration, visit the <a href="/site/kb/your-profile">Help Center</a>.</p>
  40. </div>
  41. <div class="col-12 col-md-5">
  42. <div class="d-flex h-100 justify-content-center align-items-center flex-column">
  43. <div class="border rounded-pill px-4 py-2">
  44. <p class="small mb-n1 text-lighter font-weight-bold">Old Account</p>
  45. <p class="lead mb-0">oldUsername@example.org</p>
  46. </div>
  47. <div class="border rounded-pill px-4 py-2 mt-3">
  48. <p class="small mb-n1 text-lighter font-weight-bold">Old Account</p>
  49. <p class="lead mb-0">oldUsername2@example.net</p>
  50. </div>
  51. <hr>
  52. <p class="mb-0 small">We support migration to and from Pixelfed, Mastodon and most other platforms that use the Mastodon Account Migration <a href="https://docs.joinmastodon.org/spec/activitypub/#Move">extension</a>.</p>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="col-12">
  59. <hr>
  60. </div>
  61. <div class="col-12 col-md-7 p-3 p-md-5">
  62. <form method="post">
  63. @csrf
  64. <div class="form-group">
  65. <label class="font-weight-bold mb-0">Old Account</label>
  66. <p class="small text-muted">Enter the username@domain of your old account</p>
  67. <input type="email" class="form-control" name="acct" placeholder="username@domain.tld"/>
  68. </div>
  69. <button class="btn btn-primary btn-block font-weight-bold btn-lg">Create Alias</button>
  70. </form>
  71. </div>
  72. <div class="col-12 col-md-5 p-3 p-md-5 bg-white">
  73. <p class="text-center font-weight-bold">Aliases</p>
  74. <div class="list-group">
  75. @if(count($aliases))
  76. @foreach($aliases as $alias)
  77. <div class="list-group-item d-flex justify-content-between">
  78. <div class="mb-0 font-weight-bold small text-break">
  79. {{ $alias->acct }}
  80. </div>
  81. <div class="ml-2 mb-0 font-weight-bold small">
  82. <form action="/settings/account/aliases/manage/delete" method="post">
  83. @csrf
  84. <input type="hidden" name="id" value="{{ $alias->id }}">
  85. <input type="hidden" name="acct" value="{{ $alias->acct }}">
  86. <button class="btn btn-link btn-sm p-0">
  87. <i class="far fa-trash-alt text-danger"></i>
  88. </button>
  89. </form>
  90. </div>
  91. </div>
  92. @endforeach
  93. @else
  94. <div class="border rounded p-5">
  95. <p class="text-center mb-0">No aliases found!</p>
  96. </div>
  97. @endif
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. @endsection