Commit b06b1712 authored by felix.herrmann's avatar felix.herrmann
Browse files

fix(templates): fixed url bug in ddusers/list.html

parent d825c905
......@@ -100,6 +100,7 @@ def user_list(request, page=1):
users = paginator.page(paginator.num_pages)
else:
users = queryset
print(request.user.is_authenticated)
return render(
request,
......
......@@ -8,24 +8,25 @@
<div class="row" ic-history-elt="true">
{% if users %}
<div class="col-7">
<div class="col-1"></div>
<div class="col-8">
<div id="user-list">
<h2>{% trans "Researchers" %}</h2>
{% for object in users %}
<div class="card">
<div class="card-body">
<div class="media">
<div class="media-body row align-items-center">
<div class="media-body row align-items-center">
<div class="col-1">
{% include 'ddusers/_user-image.html' with user_uuid=request.user.uuid image_url=request.user.image.url height=60 %}
{% include 'ddusers/_user-image.html' with user_uuid=object.uuid image_url=objectimage.url height=60 %}
</div>
<div class="col-9">
<h5 class="mt-0"><a href="{% url "ddusers:detail" object.uuid %}">{{object.get_academic_name}}</a></h5>
{% include 'ddusers/_user_main_affiliation.html' with object=object %}
</div>
<div class="col-2">
<button type="button" class="btn btn-primary align-middle">Follow</button>
</div>
<div class="col-1">
<button type="button" class="btn btn-primary align-middle">Follow</button> </div>
</div>
</div>
</div>
......@@ -34,7 +35,7 @@
{% endfor %}
</div>
</div>
<div class="col-3">
<div class="col-2">
<h2>Filtered by</h2>
<div class="card">
<div class="card-body">
......@@ -51,7 +52,7 @@
</div>
</div>
</div>
<div class="col-2">
<div class="col-1">
</div>
{% else %}
{% trans "No Resarchers found" %}.
......
{% load static i18n compress activeurl %}
<nav class="col-md-2 d-none d-md-block sidebar">
<div class="sidebar-sticky">
<div class="text-center">
{% if request.user.is_authenticated %}
<div class="text-center">
{% include 'ddusers/_user-image.html' with user_uuid=request.user.uuid image_url=request.user.image.url height=80 %}
<p>
<span id="name">{{ request.user.get_academic_name }}</span><br>
<span id="affiliation">{% include 'ddusers/_user_main_affiliation.html' with object=request.user %}</span>
</p>
</p>
</div>
<div class="status row cols text-center">
<div class="col">
......@@ -23,6 +24,8 @@
Datasets
</div>
</div>
{% endif %}
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" href="/">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment