Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

Commit aacae50

Browse files
committed
feat(entity model): Remove unused code
1 parent b772191 commit aacae50

File tree

13 files changed

+19
-388
lines changed

13 files changed

+19
-388
lines changed

ā€Žzoo/base/templates/shared/base_list.htmlā€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ <h3 class="ui header">
8989
</div>
9090
</div>
9191
{% endif %}
92-
{% if project_create_view %}
93-
<a href="{% url project_create_view %}">
94-
<button class="ui huge yellow corner circular icon button">
95-
<i class="ui plus icon"></i>
96-
</button>
97-
</a>
98-
{% endif %}
92+
{#{% if project_create_view %}#}
93+
{# <a href="{% url project_create_view %}">#}
94+
{# <button class="ui huge yellow corner circular icon button">#}
95+
{# <i class="ui plus icon"></i>#}
96+
{# </button>#}
97+
{# </a>#}
98+
{#{% endif %}#}

ā€Žzoo/base/templates/shared/project_detail.htmlā€Ž

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,6 @@
2121
{% block navbuttons %}
2222
{% endblock %}
2323

24-
<div class="ui transparent project-actions floating right center pointing fade dropdown icon button">
25-
<i class="ellipsis vertical icon"></i>
26-
<div class="large left menu">
27-
<div class="item">
28-
<a href="{% url project_update_view object.owner_slug object.name_slug %}" class="ui invisible button"><i class="edit icon"></i> Edit</a>
29-
</div>
30-
<div class="item">
31-
<form method="post" id="project-delete-form" action="{% url project_delete_view object.owner_slug object.name_slug %}">
32-
{% csrf_token %}
33-
<button class="ui invisible button" type="submit"><i class="red trash icon"></i> Delete</button>
34-
</form>
35-
</div>
36-
</div>
37-
</div>
3824
</div>
3925

4026
{% endblock %}

ā€Žzoo/checklists/templates/checklists/service_checklist.htmlā€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ <h4 class="ui marginless header">
5353
<i class="info circle icon"></i>
5454
No checklist steps found for the current tags
5555
</div>
56-
<a class="ui primary button" href="{% url 'service_update' service.owner_slug service.name_slug %}">Edit service</a>
5756
</div>
5857
{% endfor %}
5958
{% endblock %}

ā€Žzoo/checklists/views.pyā€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_queryset(self):
2626
return (
2727
super()
2828
.get_queryset()
29-
.filter(status=service_models.Status.BETA.value)
29+
.filter(lifecycle=service_models.Lifecycle.BETA.value)
3030
.prefetch_related("checkmarks")
3131
)
3232

@@ -62,7 +62,7 @@ def get_context_data(self, **kwargs):
6262
service = service_models.Service.objects.get(
6363
owner_slug=service_owner_slug,
6464
name_slug=service_name_slug,
65-
status=service_models.Status.BETA.value,
65+
lifecycle=service_models.Lifecycle.BETA.value,
6666
)
6767
except service_models.Service.DoesNotExist:
6868
raise Http404

ā€Žzoo/libraries/templates/libraries/library_detail.htmlā€Ž

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
{% endwith %}
99
{% endblock %}
1010

11-
{% block navtitle %}
12-
{% with project_delete_view='library_delete' icon='book' to_url='/libraries' header=object.name|add:' library' project_update_view='library_update' subheader='owned by '|add:object.owner %}
13-
{{ block.super }}
14-
{% endwith %}
15-
{% endblock %}
16-
1711
{% block content %}
1812
{% with project_type='libraries' project_type_singular='library' project_checklist_view='library_checklist' %}
1913
{{ block.super }}

ā€Žzoo/libraries/templates/libraries/library_form.htmlā€Ž

Lines changed: 0 additions & 22 deletions
This file was deleted.

ā€Žzoo/libraries/templates/libraries/library_list.htmlā€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{% endblock %}
1616

1717
{% block content %}
18-
{% with project_type='libraries' project_create_view='library_create' project_links=project_links is_paginated=is_paginated page_obj=page_obj request=request %}
19-
{{ block.super }}
20-
{% endwith %}
18+
{# {% with project_type='libraries' project_create_view='library_create' project_links=project_links is_paginated=is_paginated page_obj=page_obj request=request %}#}
19+
{# {{ block.super }}#}
20+
{# {% endwith %}#}
2121
{% endblock %}

ā€Žzoo/services/assets/js/service_detail.jsā€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import '../style/service_detail.less'
2-
import jQuery from 'jquery/src/jquery'
32
import 'fomantic-ui-css/semantic.min.js'
43
import Mustache from 'mustache'
54
import Vue from 'vue'

ā€Žzoo/services/assets/js/service_form.jsā€Ž

Lines changed: 0 additions & 101 deletions
This file was deleted.

ā€Žzoo/services/templates/services/service_detail.htmlā€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
{% endblock %}
1515

1616
{% block navtitle %}
17-
{% with project_delete_view='service_delete' icon='cogs' to_url='/services' header=object.name project_update_view='service_update' subheader='owned by '|add:object.owner %}
1817
{{ block.super }}
19-
{% endwith %}
2018
{% endblock %}
2119

2220
{% block content %}

0 commit comments

Comments
Ā (0)
⚔