The username is missing in the photo information block.

Comments

Nathaniel created an issue. See original summary.

  • Nathaniel committed 900c9d6 on 8.x-5.x
    Issue #3124515 by Nathaniel: Name missing in photo information block....
nathaniel’s picture

Status: Active » Fixed

Clear cache.

jhmnieuwenhuis’s picture

Test it.
Username is shown now.
Thanks !!!

jhmnieuwenhuis’s picture

I changed : .../modules/contrib/photos/templates/photos_image_block.html.twig
The username was displayed twice. second one with a link to the user.
I changed the first one to a link and removed the second one.

{% trans %}Uploaded on {{ created }} by <a href="{{ user_url }}">{{ image.name }}</a> {% endtrans %}
<div class="photos-block-pager-title">
  {% if image.slide_url %}
    <a href="{{ image.slide_url }}" class="photos-block-pager-slide" title="{{ 'View as slideshow'|t }}"></a>
  {% endif %}
{#  <h3 class="photos-block-pager-name">#}
{#    <a href="{{ user_url }}">{{ image.name }}</a>#}
{#  </h3>#}
</div>

This makes the information block cleaner.
The extra url for the user is no longer necessary.
You can click on the by link now.

Regards,

Hans

nathaniel’s picture

Status: Fixed » Needs work

  • Nathaniel committed d71bc94 on 8.x-5.x
    Issue #3124515 by Nathaniel, jhmnieuwenhuis: Name missing in photo...
nathaniel’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.