Browse Source

define anchors as links _fragment

main 1.5.2
ghost 7 months ago
parent
commit
6028768c2f
  1. 2
      templates/default/module/rooms.html.twig
  2. 4
      templates/default/room/index.html.twig
  3. 4
      templates/default/room/index.rss.twig
  4. 2
      templates/default/room/list.html.twig

2
templates/default/module/rooms.html.twig

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
{% if namespace == form.namespace.value %}
{{ namespace | keva_namespace_value }}
{% else %}
<a href="{{ path('room_namespace', { namespace : namespace }) }}#latest">{{ namespace | keva_namespace_value }}</a>
<a href="{{ path('room_namespace', { namespace : namespace, _fragment : 'latest' }) }}">{{ namespace | keva_namespace_value }}</a>
{% endif %}
</h2>
<sup>

4
templates/default/room/index.html.twig

@ -14,9 +14,9 @@ @@ -14,9 +14,9 @@
</strong>
{% endif %}
&bull;
<a rel="nofollow" href="{{ path('room_namespace', { namespace : namespace }) }}#{{ post.id }}" title="{{ post.time | date('c') }}">{{ post.time | format_ago }}</a>
<a rel="nofollow" href="{{ path('room_namespace', { namespace : namespace, _fragment : post.id }) }}" title="{{ post.time | date('c') }}">{{ post.time | format_ago }}</a>
&bull;
<a rel="nofollow" href="{{ path('room_namespace', { namespace : namespace, txid : post.id }) }}#{{ post.id }}">{{ 'reply' | trans }}</a>
<a rel="nofollow" href="{{ path('room_namespace', { namespace : namespace, txid : post.id, _fragment : post.id }) }}">{{ 'reply' | trans }}</a>
{% if post.pending %}
<span title="{{ 'pending in pool' | trans }}">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 16 16">

4
templates/default/room/index.rss.twig

@ -9,8 +9,8 @@ @@ -9,8 +9,8 @@
<title>#{{ post.id }}</title>
<author>@{{ post.user }}</author>
<pubDate>{{ post.time | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('room_namespace', { namespace : request.get('namespace') }) }}#{{ post.id }}</guid>
<link>{{ url('room_namespace', { namespace : request.get('namespace') }) }}#{{ post.id }}</link>
<guid>{{ url('room_namespace', { namespace : request.get('namespace'), _fragment : post.id }) }}</guid>
<link>{{ url('room_namespace', { namespace : request.get('namespace'), _fragment : post.id }) }}</link>
<description>{{ post.message | striptags | markdown_to_html | striptags | trim }}</description>
</item>
{% endfor %}

2
templates/default/room/list.html.twig

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
<li>
<div>
<strong>
<a href="{{ path('room_namespace', { namespace : room.namespace }) }}#latest">{{ room.namespace | keva_namespace_value }}</a>
<a href="{{ path('room_namespace', { namespace : room.namespace, _fragment : 'latest' }) }}">{{ room.namespace | keva_namespace_value }}</a>
</strong>
{{ room.total }}
<a href="{{ path('room_namespace', { namespace : room.namespace, feed : 'rss' }) }}" title="{{ 'RSS' | trans }}" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" viewBox="0 0 16 16">

Loading…
Cancel
Save