-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0733b9
commit 3e734a0
Showing
10 changed files
with
164 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 4.2 on 2024-06-13 23:44 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0006_alter_sessions_start_time'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='projects', | ||
options={'ordering': ['name'], 'verbose_name_plural': 'Projects'}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 4.2 on 2024-06-14 00:04 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0007_alter_projects_options'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='sessions', | ||
options={'ordering': ['-end_time'], 'verbose_name_plural': 'Sessions'}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% extends 'core/base.html' %} | ||
{% load static %} | ||
{% load time_formats %} | ||
{% block content %} | ||
<div id="search-projects"> | ||
<input type="text" id="search-projects-input" placeholder="Search projects..."> | ||
<div id="search-projects-results"> | ||
{% for project in projects %} | ||
<span class="card"> | ||
<a href="#" class="plain-link"> | ||
<i class="fa fa-select"></i> | ||
{{ project.name }} | ||
</a> | ||
</span> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
|
||
<div class="sub-projects"> | ||
{% for sub in project.subprojects.all %} | ||
<span class="card"> | ||
<a href="#" class="plain-link"> | ||
<i class="fa fa-select"></i> | ||
{{ sub.name }} | ||
</a> | ||
</span> | ||
{% endfor %} | ||
</div> | ||
|
||
<button type="submit" id="start-timer" class="timer-button"> | ||
<a href="#" class="plain-link"> | ||
<i class="fa fa-hourglass-start"></i> | ||
Start Timer | ||
</a> | ||
</button> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{% extends 'core/base.html' %} | ||
{% load static %} | ||
{% load time_formats %} | ||
{% block content %} | ||
<button id="start-timer" class="timer-button"> | ||
<a href="#" class="plain-link"> | ||
<i class="fa fa-plus"></i> | ||
New Timer | ||
</a> | ||
</button> | ||
<div id="active-timers"> | ||
{% for timer in timers %} | ||
<div class="card" id="timer-{{ timer.id }}"> | ||
<table class="timer-row"> | ||
<tr> | ||
<td> | ||
[{{ forloop.counter0 }}]: Started | ||
</td> | ||
<td class="text-red"> | ||
{{ timer.project.name }} | ||
</td> | ||
<td > | ||
[ | ||
{% for subproject in timer.subprojects.all %} | ||
'<span class="text-cyan">{{ subproject.name }}</span>'{% if not forloop.last %}, {% endif %} | ||
{% endfor %} | ||
] | ||
</td> | ||
<td class="text-green"> | ||
{{ timer.duration|min_formatter }} ago | ||
</td> | ||
<td> | ||
<button class="timer-button"> | ||
<a href="#" class="plain-link"> | ||
<i class="fa fa-check"></i> | ||
</a> | ||
</button> | ||
<button class="timer-button"> | ||
<a href="#" class="plain-link"> | ||
<i class="fa fa-trash"></i> | ||
</a> | ||
</button> | ||
</td> | ||
|
||
</tr> | ||
</table> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters