-
Notifications
You must be signed in to change notification settings - Fork 33
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
b845f27
commit c6a7b99
Showing
10 changed files
with
191 additions
and
12 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,30 @@ | ||
# Generated by Django 3.0.1 on 2020-01-03 23:00 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('player', '0029_auto_20191227_1720'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Revive', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('tId', models.IntegerField(default=0)), | ||
('timestamp', models.IntegerField(default=0)), | ||
('target_id', models.IntegerField(default=0)), | ||
('target_name', models.CharField(default='target_name', max_length=32)), | ||
('target_faction', models.IntegerField(default=0)), | ||
('target_factionname', models.CharField(blank=True, default='target_factionname', max_length=32, null=True)), | ||
('paid', models.BooleanField(default=False)), | ||
('player', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='player.Player')), | ||
], | ||
), | ||
] |
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 |
---|---|---|
@@ -1,3 +1,13 @@ | ||
from django.db import models | ||
|
||
# Create your models here. | ||
from player.models import Player | ||
|
||
class Revive(models.Model): | ||
player = models.ForeignKey(Player, on_delete=models.CASCADE) | ||
tId = models.IntegerField(default=0) | ||
timestamp = models.IntegerField(default=0) | ||
target_id = models.IntegerField(default=0) | ||
target_name = models.CharField(default="target_name", max_length=32) | ||
target_faction = models.IntegerField(default=0) | ||
target_factionname = models.CharField(default="target_factionname", null=True, blank=True, max_length=32) | ||
paid = models.BooleanField(default=False) |
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,31 @@ | ||
{% comment %} | ||
Copyright 2019 [email protected] | ||
|
||
This file is part of yata. | ||
|
||
yata is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
any later version. | ||
|
||
yata is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with yata. If not, see <https://www.gnu.org/licenses/>. | ||
{% endcomment %} | ||
|
||
<!-- toggle --> | ||
<form style="display: inline;">{% csrf_token %} | ||
<a id="revives-list-toggle-{{revive.tId}}" href="{% url 'target:toggleRevive' %}"> | ||
{% if revive.paid %} | ||
<i class="fas fa-toggle-on" title="Click if revive not paid for"></i> | ||
<input class="paid" type="hidden" value="1"> | ||
{% else %} | ||
<i class="fas fa-toggle-off" title="Click if revive paid for"></i> | ||
<input class="paid" type="hidden" value="0"> | ||
{% endif %} | ||
</a> | ||
</form> |
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