<h3 dir="auto">Description</h3>

<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #6009.">Closes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3058964868" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/6009" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/6009/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/6009">#6009</a>.<br>
Adds recent diary entries partial and displays it on the user profiles pages by implementing a responsive card layout. It takes 4 most recent diary entries by default. Each diary entry is now shown in a Bootstrap card that displays the title, truncated content, comment count, and creation date. The layout is responsive - showing as a single column on mobile and two columns on larger screens</p>
<h3 dir="auto">How has this been tested?</h3>
<p dir="auto">Both testing manually to make sure it works along different screen sizes and adding tests to <code class="notranslate">users_controller_test.rb</code>.</p>

<h3 dir="auto">Screenshots</h3>
<a href="https://github.com/user-attachments/assets/969e5bf9-0f72-48da-b06b-d6ac8528c6d0">Screenshot.2025-05-13.at.09.02.26.png (view on web)</a>

<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/6010'>https://github.com/openstreetmap/openstreetmap-website/pull/6010</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6010/commits/1c98dfab8f6abb23b8014100d11704b74307251f" class="commit-link">1c98dfa</a>  Add recent diaries partial to profile</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6010/files">10 files</a>)</p>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6010/files#diff-44e990804e78ebe55fa7c0244f764828c56a8472fba795a2f766389ec8e3bb81">app/assets/images/calendar.svg</a>
    (1)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6010/files#diff-40f71135a3f33a847f099da752b911c96cceddaa8156dca1ab6e815ad180bece">app/assets/images/comment.svg</a>
    (1)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6010/files#diff-7cc974c0cb709a18afa83f961e627b974fdea776d94acaace167abb7ca2444d9">app/assets/images/note.svg</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6010/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
    (9)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6010/files#diff-9802ca3c9c4cf89904fd44bc114e35ebdf2c5dd3d5b645491e2b253e1afef29b">app/models/user.rb</a>
    (65)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6010/files#diff-3195549e23be263f3af18230371dcf5ef4916bc638aeb55c6aa878d99baea214">app/views/diary_entries/_profile_diaries.html.erb</a>
    (27)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6010/files#diff-78ff736409d758722403cce31873ba803b3fb526d37398ca21caa557b54dfd95">app/views/users/show.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6010/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6010/files#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12">db/structure.sql</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6010/files#diff-2719d3c650da3c587f727ca3c105e6bc93a7113f85717bb15983543cf4f85ae5">test/controllers/users_controller_test.rb</a>
    (44)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6010.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6010.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6010.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6010.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/6010">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPRGDNUMKGHEXLV72326GKSNAVCNFSM6AAAAAB47YBI32VHI2DSMVQWIX3LMV43ASLTON2WKOZTGA2TQOJYGQ4DGOA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMC4D6UHD5OZY5MX7L26GKSNA5CNFSM6AAAAAB47YBI32WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLMVDHQY.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/6010</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/6010",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6010",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>