<p dir="auto">This PR adds <code class="notranslate">/account/blocks</code> page that does the following:</p>
<ul dir="auto">
<li>if there are needs_view blocks, redirects to the earliest one of them</li>
<li>if there are any active blocks, redirects to the earliest one of them</li>
<li>if there are no active blocks, displays a message that there aren't any blocks, possibly with a link to <code class="notranslate">/user/:username/blocks</code> for reviewing past blocks</li>
</ul>
<p dir="auto"><a href="https://github.com/user-attachments/assets/a7b0ab84-b1fe-4351-85d9-ea4b106f331c">image.png (view on web)</a></p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5524'>https://github.com/openstreetmap/openstreetmap-website/pull/5524</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524/commits/78927a1169147a18d24975f544c2d3de07f42e03" class="commit-link">78927a1</a> Add empty account blocks page</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524/commits/2b7e05b5d22ff97998ee11a52563c8d677211771" class="commit-link">2b7e05b</a> Add redirect from accounts block page to needs_view block</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524/commits/37f2fef785f21bce4dce80470fd9bd3e63be9258" class="commit-link">37f2fef</a> Add redirect from accounts block page to active block</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524/commits/8d318b7b222348bea9726d5c37904fdb026b06e3" class="commit-link">8d318b7</a> Display 'no active blocks' on accounts block page</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524/commits/b1bcebd8d68fe8fb6df43b6d68b353543da53660" class="commit-link">b1bcebd</a> Display past blocks button on accounts block page</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524/files">6 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524/files#diff-debf59904131dc89a88ab44cbb1d6deaaa5a7d70c0507f674080df62f7c8e41f">app/abilities/ability.rb</a>
(1)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524/files#diff-e060e1d078af603b347f02d568eea53b162ded39e9fdd597389011d0383b511b">app/controllers/accounts/blocks_controller.rb</a>
(20)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524/files#diff-c4af6ae32d2ffa271d4ed135b3e477feae049b9e624f9d38dcebf60c93a405b5">app/views/accounts/blocks/index.html.erb</a>
(11)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
(5)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5">config/routes.rb</a>
(1)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524/files#diff-bc5d447c4162a093a598115721f699f4d037c8fe7882f1f04e05c23cd6d7d7d0">test/controllers/accounts/blocks_controller_test.rb</a>
(92)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5524.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5524.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5524.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5524.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5524">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLPDPL3F7X4OQJFBLT2LR5FBAVCNFSM6AAAAABVPPVBMKVHI2DSMVQWIX3LMV43ASLTON2WKOZSG44TQMJXGA3TSOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMW6P6EZW46UPMX26L2LR5FBA5CNFSM6AAAAABVPPVBMKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKNSFSV4.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5524</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5524",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5524",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>