Browse Source

Suivi des hashtags sur osmcha

master
vincent 2 weeks ago
parent
commit
0e1e4ba497
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      templates/project/show.html.twig

+ 9
- 1
templates/project/show.html.twig View File

@ -94,7 +94,15 @@
<div class="row"> <div class="row">
<div class="col mb-3"> <div class="col mb-3">
<p class="text-muted">{% include 'partials/_project-metadata.html.twig' %}</p>
<p class="text-muted">
{% include 'partials/_project-metadata.html.twig' %}<br/>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-hash" viewBox="0 0 16 16">
<path d="M8.39 12.648a1 1 0 0 0-.015.18c0 .305.21.508.5.508.266 0 .492-.172.555-.477l.554-2.703h1.204c.421 0 .617-.234.617-.547 0-.312-.188-.53-.617-.53h-.985l.516-2.524h1.265c.43 0 .618-.227.618-.547 0-.313-.188-.524-.618-.524h-1.046l.476-2.304a1 1 0 0 0 .016-.164.51.51 0 0 0-.516-.516.54.54 0 0 0-.539.43l-.523 2.554H7.617l.477-2.304c.008-.04.015-.118.015-.164a.51.51 0 0 0-.523-.516.54.54 0 0 0-.531.43L6.53 5.484H5.414c-.43 0-.617.22-.617.532s.187.539.617.539h.906l-.515 2.523H4.609c-.421 0-.609.219-.609.531s.188.547.61.547h.976l-.516 2.492c-.008.04-.015.125-.015.18 0 .305.21.508.5.508.265 0 .492-.172.554-.477l.555-2.703h2.242zm-1-6.109h2.266l-.515 2.563H6.859l.532-2.563z"/>
</svg>
{% for hashtag in project.hashtags|split(' ') %}
<a href="https://osmcha.org/?filters=%7B%22metadata%22%3A%5B%7B%22label%22%3A%22hashtags%3D%23{{ hashtag }}%22%2C%22value%22%3A%22hashtags%3D%23{{ hashtag }}%22%7D%5D%7D" target="_blank">{{ '#' ~ hashtag }}</a>
{% endfor %}
</p>
</div> </div>
</div> </div>


Loading…
Cancel
Save