SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit e183d1b1 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

.badge-pill to .rounded-pill

parent fa026279
No related branches found
No related tags found
No related merge requests found
<li class="d-flex flex-wrap justify-content-between">
<a href="{{ forum.get_absolute_url }}">{{ forum }}</a>
<span class="badge bg-secondary badge-pill">{% with nr_posts=forum.nr_posts %}{{ nr_posts }} post{{ nr_posts|pluralize }}{% endwith %}</span>
<span class="badge bg-secondary rounded-pill">{% with nr_posts=forum.nr_posts %}{{ nr_posts }} post{{ nr_posts|pluralize }}{% endwith %}</span>
{% if forum.child_forums.all|length > 0 %}
<ul class="list-unstyled forumList">
{% for child in forum.child_forums.all %}
......
......@@ -32,7 +32,7 @@
<span class="d-flex flex-wrap justify-content-between">
<a href="{{ forum.get_absolute_url }}">{{ forum }}</a>
<span class="badge bg-primary badge-pill">{% with nr_posts=forum.nr_posts %}{{ nr_posts }} post{{ nr_posts|pluralize }}{% endwith %}</span>
<span class="badge bg-primary rounded-pill">{% with nr_posts=forum.nr_posts %}{{ nr_posts }} post{{ nr_posts|pluralize }}{% endwith %}</span>
</span>
</h2>
......
......@@ -38,7 +38,7 @@
{% endif %}
<span class="d-flex flex-wrap justify-content-between">
<a href="{{ forum.get_absolute_url }}">{{ forum|truncatechars:30 }}</a>
<span class="badge bg-primary badge-pill">{% with nr_posts=forum.nr_posts %}{{ nr_posts }} post{{ nr_posts|pluralize }}{% endwith %}</span>
<span class="badge bg-primary rounded-pill">{% with nr_posts=forum.nr_posts %}{{ nr_posts }} post{{ nr_posts|pluralize }}{% endwith %}</span>
</span>
</div>
<div class="card-body">
......@@ -80,7 +80,7 @@
<td><a href="{{ forum.get_absolute_url }}">{{ forum }}</a></td>
<td>{{ forum.latest_post }}</td>
<td>{{ forum.latest_post.posted_on|date:"Y-m-d" }}</td>
<td><span class="badge bg-primary badge-pill">{{ forum.nr_posts }}</span></td>
<td><span class="badge bg-primary rounded-pill">{{ forum.nr_posts }}</span></td>
</tr>
{% empty %}
<tr>
......
......@@ -18,7 +18,7 @@
<div class="d-flex flex-wrap justify-content-end align-items-center">
<div class="flex-grow-1">
{% if post.followup_posts.all|length > 0 %}
<span class="badge bg-primary badge-pill">{% with nr_followups=post.nr_followups %}{{ nr_followups }} repl{{ nr_followups|pluralize:"y,ies" }}{% endwith %}</span>
<span class="badge bg-primary rounded-pill">{% with nr_followups=post.nr_followups %}{{ nr_followups }} repl{{ nr_followups|pluralize:"y,ies" }}{% endwith %}</span>
{% endif %}&nbsp;
{% if post.post_ptr %}
<a href="{% url 'forums:post_create' slug=forum.slug parent_model='post' parent_id=post.post_ptr.id %}">{% if post.motion %}Post a Comment on this Motion{% else %}Reply to the above post{% endif %}</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment