Files
nairobi/app/views/users/_interests.html.erb
Javi Martín 0d3c4c8154 Simplify styling tags
This way we won't have to add the `inline-block` and `no-bullet` classes
to other elements and we can define the styles in one place.

Note we're using the `ul.tags` selector instead of just `.tags` to avoid
conflicts with a `div.tags` selector which is used to select tags in a
form. Renaming the selector to `.tag-list` would be better, but we
aren't doing so because it would break custom stylesheets using that
selector.

Also note we're keeping the %tags placeholder selector in `.tags`
selector in the participation.scss file. This is so styles are not
overwritten by selectors like `.debate-show ul li`, which has the same
specifity as `ul.tags li`.
2021-01-27 15:55:21 +01:00

12 lines
289 B
Plaintext

<div id="public_interests" class="public-interests">
<h4><%= interests_title_text(user) %></h4>
<% if user.interests.any? %>
<ul class="tags">
<% user.interests.each do |interest| %>
<li><span><%= interest %></span></li>
<% end %>
</ul>
<% end %>
</div>