<p dir="auto">This PR addresses "Indicate if the message preview is empty" issue mentioned in the <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1402324314" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3748" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/3748/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/3748">#3748</a></p>
<p dir="auto">In app/controllers/site_controller.rb added replacing empty text with "Nothing to preview." when rendering preview. Also, added placeholders "Add subject" and "Add your message here" to forms when creating diary entries, comments and sending messages to another users. Also, updated translation files.</p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/assets/25298521/db30d77c-4501-447f-a154-7ab8b774ad36">image.png (view on web)</a><br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/25298521/b37df509-0289-436e-bc43-f234d74dfab3">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/4894'>https://github.com/openstreetmap/openstreetmap-website/pull/4894</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4894/commits/5dffe872cc83fd6d903ca0a27255c83da22b7174" class="commit-link">5dffe87</a> Added indicator message preview is empty.</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4894/files">5 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4894/files#diff-c7e7144de4dcf44dbb148d4acc6aa4a9d8581c6a581966a0bbfb598e79730f14">app/controllers/site_controller.rb</a>
(3)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4894/files#diff-a70496e2ae2868f80fd3d1c03598e102076f6b88bdc8d54de9a9e005b2de9447">app/views/diary_entries/_form.html.erb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4894/files#diff-f54930d1342191d1e34f17bfc8a2b7f09fa283f05a3332495092abe2cbae50be">app/views/diary_entries/show.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4894/files#diff-5a26749c7de6e9d6b99d09ff1471a9a178060841d2ce8ff032eb85a800427187">app/views/messages/new.html.erb</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4894/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
(6)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4894.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4894.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4894.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4894.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/4894">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLL6INWFLV3BZNJS5DLZHKV33AVCNFSM6AAAAABJJ546QSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2TEOBYGYYDGNI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMVCRPF5OGJ4TNIWS3ZHKV33A5CNFSM6AAAAABJJ546QSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIYPRRCM.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/4894</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/4894",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4894",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>