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

Commit

Permalink
feat(entity model): Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jarosevcik committed Aug 9, 2021
1 parent b772191 commit aacae50
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 388 deletions.
14 changes: 7 additions & 7 deletions zoo/base/templates/shared/base_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ <h3 class="ui header">
</div>
</div>
{% endif %}
{% if project_create_view %}
<a href="{% url project_create_view %}">
<button class="ui huge yellow corner circular icon button">
<i class="ui plus icon"></i>
</button>
</a>
{% endif %}
{#{% if project_create_view %}#}
{# <a href="{% url project_create_view %}">#}
{# <button class="ui huge yellow corner circular icon button">#}
{# <i class="ui plus icon"></i>#}
{# </button>#}
{# </a>#}
{#{% endif %}#}
14 changes: 0 additions & 14 deletions zoo/base/templates/shared/project_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,6 @@
{% block navbuttons %}
{% endblock %}

<div class="ui transparent project-actions floating right center pointing fade dropdown icon button">
<i class="ellipsis vertical icon"></i>
<div class="large left menu">
<div class="item">
<a href="{% url project_update_view object.owner_slug object.name_slug %}" class="ui invisible button"><i class="edit icon"></i> Edit</a>
</div>
<div class="item">
<form method="post" id="project-delete-form" action="{% url project_delete_view object.owner_slug object.name_slug %}">
{% csrf_token %}
<button class="ui invisible button" type="submit"><i class="red trash icon"></i> Delete</button>
</form>
</div>
</div>
</div>
</div>

{% endblock %}
Expand Down
1 change: 0 additions & 1 deletion zoo/checklists/templates/checklists/service_checklist.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ <h4 class="ui marginless header">
<i class="info circle icon"></i>
No checklist steps found for the current tags
</div>
<a class="ui primary button" href="{% url 'service_update' service.owner_slug service.name_slug %}">Edit service</a>
</div>
{% endfor %}
{% endblock %}
Expand Down
4 changes: 2 additions & 2 deletions zoo/checklists/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_queryset(self):
return (
super()
.get_queryset()
.filter(status=service_models.Status.BETA.value)
.filter(lifecycle=service_models.Lifecycle.BETA.value)
.prefetch_related("checkmarks")
)

Expand Down Expand Up @@ -62,7 +62,7 @@ def get_context_data(self, **kwargs):
service = service_models.Service.objects.get(
owner_slug=service_owner_slug,
name_slug=service_name_slug,
status=service_models.Status.BETA.value,
lifecycle=service_models.Lifecycle.BETA.value,
)
except service_models.Service.DoesNotExist:
raise Http404
Expand Down
6 changes: 0 additions & 6 deletions zoo/libraries/templates/libraries/library_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
{% endwith %}
{% endblock %}

{% block navtitle %}
{% 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 %}
{{ block.super }}
{% endwith %}
{% endblock %}

{% block content %}
{% with project_type='libraries' project_type_singular='library' project_checklist_view='library_checklist' %}
{{ block.super }}
Expand Down
22 changes: 0 additions & 22 deletions zoo/libraries/templates/libraries/library_form.html

This file was deleted.

6 changes: 3 additions & 3 deletions zoo/libraries/templates/libraries/library_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{% endblock %}

{% block content %}
{% with project_type='libraries' project_create_view='library_create' project_links=project_links is_paginated=is_paginated page_obj=page_obj request=request %}
{{ block.super }}
{% endwith %}
{# {% with project_type='libraries' project_create_view='library_create' project_links=project_links is_paginated=is_paginated page_obj=page_obj request=request %}#}
{# {{ block.super }}#}
{# {% endwith %}#}
{% endblock %}
1 change: 0 additions & 1 deletion zoo/services/assets/js/service_detail.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '../style/service_detail.less'
import jQuery from 'jquery/src/jquery'
import 'fomantic-ui-css/semantic.min.js'
import Mustache from 'mustache'
import Vue from 'vue'
Expand Down
101 changes: 0 additions & 101 deletions zoo/services/assets/js/service_form.js

This file was deleted.

2 changes: 0 additions & 2 deletions zoo/services/templates/services/service_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
{% endblock %}

{% block navtitle %}
{% 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 %}
{{ block.super }}
{% endwith %}
{% endblock %}

{% block content %}
Expand Down
Loading

0 comments on commit aacae50

Please sign in to comment.