Skip to content
Snippets Groups Projects
Commit d7c3297f authored by Ivan Procaccini's avatar Ivan Procaccini
Browse files

Feat: Separate own project proposals from rest

parent 577673a8
No related branches found
No related tags found
No related merge requests found
Pipeline #307578 passed
{% extends "components/layout.html" %} {% extends "components/layout.html" %}
{% macro project_list(title, projects) %}
<section class="w3-section">
<h1 class="w3-center w3-text-blue">{{ title }}</h1>
<ul class="w3-ul">
{% for project in projects %}
<li class="w3-display-container">
{{ project.title }}
<div class="w3-display-right">
<a href="{{ url_for("student.view_project", project_id=project.id) }}"
class="w3-button w3-hover-blue">View</a>
<a href=""
class="w3-button w3-hover-blue">Shortlist</a>
</div>
</li>
{% endfor %}
</ul>
</section>
{% endmacro %}
{% block content %} {% block content %}
<div class="w3-content"> <div class="w3-content">
<div class="w3-container"> <div class="w3-container">
<h1 class="w3-center w3-text-blue">All project proposals</h1> {{ project_list("All project proposals", projects | selectattr("on_behalf", "ne", current_user.username)) }}
<section class="w3-section"> {{ project_list("Your own project proposals", projects | selectattr("on_behalf", "eq", current_user.username)) }}
<ul class="w3-ul">
{% for project in projects %}
<li class="w3-display-container">
{{ project.title }}
<div class="w3-display-right">
<a href="{{ url_for("student.view_project", project_id=project.id) }}" class="w3-button w3-hover-blue">View</a>
<a href=""
class="w3-button w3-hover-blue">Shortlist</a>
</div>
</li>
{% endfor %}
</ul>
</section>
</div> </div>
</div> </div>
......
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