You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

148 lines
6.2 KiB

{% extends "base.html" %}
{% load static %}
{% block content %}
<section class="hero project-image">
<div class="container">
<div class="columns">
<div class="column is-12">
<h1 class="title is-1 has-text-white">
Hello, {{ user.get_username | title }}.
</h1>
<h2 class="subtitle is-4 has-text-white">
I hope you are having a great day!
</h2>
<p>
<a class="button is-medium is-primary">
Create Project
</a>
</p>
</div>
</div>
</div>
</section>
<div class="container">
<div class="columns" style="margin-top:0">
<div class="column is-3">
<aside class="menu">
<p class="menu-label">
Categories
</p>
<ul class="menu-list">
<li>
<a class="is-active">All</a>
</li>
<li>
<a>Document Classification</a>
</li>
<li>
<a>Sequence Labeling</a>
</li>
<li>
<a>Sequence to sequence</a>
</li>
</ul>
</aside>
</div>
<div class="column is-9">
{% for project in object_list %}
{% if forloop.counter0|divisibleby:3 %}
<div class="columns features">
{% endif %}
<div class="column is-4">
<div class="card is-shady">
<div class="card-image">
<figure class="image is-4by3">
<img src="{{ project.image }}" alt="Placeholder image" class="modal-button" data-target="modal-image2">
</figure>
</div>
<div class="card-content">
<div class="content">
<h4>
<a href="{% url 'annotation' project.id %}">{{ project.name }}</a>
</h4>
<p>
{{ project.description|truncatechars:50 }}
</p>
<a class="button is-link is-small" href="{% url 'project-admin' project.id %}">
<i class="fas fa-cog"></i>&nbsp;Settings
</a>
</div>
</div>
</div>
{% if forloop.counter|divisibleby:3 or forloop.counter|length == object_list|length %}
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>
<!--
<section class="container" id="root">
<div class="columns">
<div class="column is-10 is-offset-1">
<div class="hero project-image">
<div class="hero-body">
<div class="container">
<h1 class="title has-text-white">
Hello, {{ user.get_username | title }}.
</h1>
<h2 class="subtitle has-text-white">
I hope you are having a great day!
</h2>
<a class="button is-primary">Create Project</a>
</div>
</div>
</div>
<div class="box content">
<article class="post">
<h4>My Projects</h4>
<div class="media">
<div class="media-content">
<div class="content">
<table class="table is-hoverable">
<thead>
<tr>
<th>Id</th>
<th>Project name</th>
<th>Priority</th>
<th>Progress</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for project in object_list %}
<tr>
<th style="vertical-align:middle;">{{ forloop.counter }}</th>
<td>
<a href="{% url 'annotation' project.id %}">{{ project.name }}</a>
<p>{{ project.description|truncatechars:50 }}</p>
</td>
<td style="vertical-align:middle;">
<span class="tag is-danger">High</span>
</td>
<td style="vertical-align:middle;">
<progress class="progress is-primary" value="70" max="100">30%</progress>
</td>
<td style="vertical-align:middle;">
<a class="button is-link is-small" href="{% url 'project-admin' project.id %}">
<i class="fas fa-cog"></i>&nbsp;Settings
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</article>
</div>
</div>
</div>
</section>
-->
{% endblock %}