Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit f1f436e

Browse files
committed
Destroy links to tracking and gl_tracking apps
1 parent b6d98bb commit f1f436e

File tree

8 files changed

+0
-129
lines changed

8 files changed

+0
-129
lines changed

td/settings.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@
234234
EMAIL_FROM = "uwadmin@unfoldingword.org"
235235

236236
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
237-
# EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
238237

239238
ACCOUNT_OPEN_SIGNUP = False
240239
ACCOUNT_EMAIL_UNIQUE = True
@@ -275,8 +274,3 @@
275274
"key": os.environ.get("PORT_API_KEY"),
276275
}
277276
]
278-
279-
HOMEPAGE_MESSAGE = "The ability to create and update Languages, WA Regions, Countries, Charters, Events, and Partners " \
280-
"will be suspended for all users starting on Monday, Jan. 9, 2017. These functions will be made " \
281-
"available in the new system, which is launching in a couple of weeks. Please retain the " \
282-
"information you want to enter until then."

td/templates/resources/country_detail.html

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ <h1 class="language-title">{{ country.name }}</h1>
2929
<li role="presentation" class="active"><a data-toggle="tab" data-target="#general-view">General Info</a></li>
3030
<li role="presentation"><a data-toggle="tab" data-target="#languages-view">Languages</a></li>
3131
{% if user.is_authenticated %}
32-
<li role="presentation"><a data-toggle="tab" data-target="#projects-view">Projects</a></li>
33-
<li role="presentation"><a data-toggle="tab" data-target="#events-view">Events</a></li>
3432
<li role="presentation"><a data-toggle="tab" data-target="#comments-view">Comments</a></li>
3533
{% endif %}
3634
</ul>
@@ -47,11 +45,6 @@ <h1 class="language-title">{{ country.name }}</h1>
4745
<tr><th>Hashtag</th><td>{{ country.hashtag|default:"-" }}</td></tr>
4846
<tr><th>Population</th><td>{{ country.population|default:"-"|intcomma }}</td></tr>
4947
<tr><th>Region</th><td>{{ country.region|default:"-" }}</td></tr>
50-
<tr><th>WA Region</th><td>{{ country.wa_region|default:"-" }}</td></tr>
51-
<!-- Legacy Code -->
52-
{# <div class="col-md-4"> #}
53-
{# include "resources/_short_list.html" with title="Top Networks" data=country.primary_networks.all #}
54-
{# </div> #}
5548
</tbody>
5649
</table>
5750
</div>
@@ -66,63 +59,6 @@ <h1 class="language-title">{{ country.name }}</h1>
6659

6760
{% if user.is_authenticated %}
6861

69-
<!-- PROJECTS VIEW -->
70-
<div id="projects-view" class="row tab-pane">
71-
<div class="col-md-12">
72-
<table class="table table-borderless" data-source="{% url "tracking:ajax_ds_charter_list" "country" country.pk %}">
73-
<thead>
74-
<tr>
75-
<th>Language</th>
76-
<th>Name</th>
77-
<th>Code</th>
78-
<th>Start Date</th>
79-
<th>End Date</th>
80-
<th>Contact Person</th>
81-
<th>WA Region</th>
82-
</tr>
83-
</thead>
84-
<tbody>
85-
</tbody>
86-
</table>
87-
</div>
88-
</div>
89-
90-
<!-- EVENTS VIEW -->
91-
<div id="events-view" class="row tab-pane">
92-
<div class="col-md-12">
93-
94-
<!-- EVENT LIST -->
95-
<div class="event-list-table-container">
96-
<table class="table table-borderless" data-source="{% url "tracking:ajax_event_list" "country" country.pk %}">
97-
<thead>
98-
<tr>
99-
<th>Native</th>
100-
<th>Anglicized</th>
101-
<th>Number</th>
102-
<th>Location</th>
103-
<th>Start Date</th>
104-
<th>End Date</th>
105-
</tr>
106-
</thead>
107-
<tbody>
108-
</tbody>
109-
</table>
110-
</div>
111-
112-
<!-- EVENT COUNT -->
113-
<h2>Event Count</h2>
114-
{% show_event_count_form container=".event-count-table-container" selected_option=country.code %}
115-
<hr />
116-
<div class="">
117-
{% include "_loading.html" %}
118-
<div class="event-count-table-container" data-url="{% url "tracking:ajax_event_count" %}" data-mode="country" data-option="{{ country.code|lower }}" data-fiscal-year="0">
119-
<!-- load table here -->
120-
</div>
121-
</div>
122-
123-
</div>
124-
</div>
125-
12662
<!-- COMMENTS VIEW -->
12763
<div id="comments-view" class="row tab-pane">
12864
<div class="col-md-12">

td/templates/resources/language_detail.html

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ <h1 class="language-title">{{ language.ln }}</h1>
3131
<ul class="nav nav-tabs view-tabs">
3232
<li role="presentation" class="active"><a data-toggle="tab" data-target="#general-view">General Info</a></li>
3333
{% if user.is_authenticated %}
34-
<li role="presentation"><a data-toggle="tab" data-target="#translation-view">Translation Work</a></li>
35-
<li role="presentation"><a data-toggle="tab" data-target="#translation-progress">Translation Progress</a></li>
3634
<li role="presentation"><a data-toggle="tab" data-target="#comments-view">Comments</a></li>
3735
{% endif %}
3836
<li role="presentation"><a data-toggle="tab" data-target="#jp-view">Joshua Project</a></li>
@@ -156,25 +154,6 @@ <h1 class="panel-title">Languages Behind {{ language.ang|default:language.name }
156154

157155
{% if user.is_authenticated %}
158156

159-
<!-- TRANSLATION WORK VIEW -->
160-
<div id="translation-view" class="row tab-pane project-detail">
161-
<div class="col-md-12">
162-
{% if charter %}
163-
{% include "resources/_project_detail.html" with data=charter %}
164-
{% else %}
165-
{# {% url "tracking:charter_add_specific" language.pk as action_url %}#}
166-
{% include "resources/_empty_div_overlay.html" with msg="Project has not been created" action="Create Project" action_url=action_url %}
167-
{% endif %}
168-
</div>
169-
</div>
170-
171-
<!-- TRANSLATION PROGRESS VIEW -->
172-
<div id="translation-progress" class="row tab-pane">
173-
<div class="col-md-12">
174-
{% include "gl_tracking/_language_doc_table.html" with documents=language.documents_ordered %}
175-
</div>
176-
</div>
177-
178157
<!-- COMMENTS VIEW -->
179158
<div id="comments-view" class="row tab-pane">
180159
<div class="col-md-12">

td/templates/site_base.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,21 +129,11 @@
129129
<ul class="dropdown-menu" role="menu">
130130
<li><a href="{% url "language_list" %}">Languages</a></li>
131131
<li><a href="{% url "region_list" %}">Regions</a></li>
132-
{% if user.is_authenticated %}
133-
<li class="exclusive"><a href="{% url "wa_region_list" %}">WA Regions</a></li>
134-
{% endif %}
135132
<li><a href="{% url "country_list" %}">Countries</a></li>
136133
<li><a href="{% url "title_list" %}">Titles</a></li>
137134
<li><a href="{% url "publisher_list" %}">Publishers</a></li>
138-
{% if user.is_authenticated %}
139-
<li class="exclusive"><a href="{% url "tracking:project_list" %}">Charters</a></li>
140-
<li class="exclusive"><a href="{% url "tracking:event_list" %}">Events</a></li>
141-
<li class="exclusive"><a href="{% url "gl:partner_list_view" %}">Partners</a></li>
142-
{% endif %}
143135
<li><a href="{% url "network_list" %}">Networks</a></li>
144136
{% if user.is_authenticated %}
145-
<li class="divider"></li>
146-
<li class="exclusive"><a href="{% url "gl:home" %}">GL Tracker</a></li>
147137
<li class="divider"></li>
148138
<li><a href="{% url "gateway_flag_update" %}">Update Gateway Languages</a></li>
149139
<li><a href="{% url "rtl_languages_update" %}">Update RTL Languages (Scripts)</a></li>

td/tracking/views.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
View
2020
)
2121

22-
from td import settings
2322
from td.models import Language
2423
from td.utils import get_wa_fy
2524
from .utils import get_event_total, get_event_count_data, get_total_by_month
@@ -208,10 +207,6 @@ def get_context_data(self, **kwargs):
208207
class CharterListView(LoginRequiredMixin, TemplateView):
209208
template_name = "tracking/project_list.html"
210209

211-
def get(self, request, *args, **kwargs):
212-
messages.warning(request, settings.HOMEPAGE_MESSAGE)
213-
return super(CharterListView, self).get(request, *args, **kwargs)
214-
215210

216211
class CharterAddView(LoginRequiredMixin, CreateView):
217212
model = Charter
@@ -315,11 +310,6 @@ def formset_valid(self, formset):
315310
class EventListView(LoginRequiredMixin, TemplateView):
316311
template_name = "tracking/event_list.html"
317312

318-
def get(self, request, *args, **kwargs):
319-
print "Something"
320-
messages.warning(request, settings.HOMEPAGE_MESSAGE)
321-
return super(EventListView, self).get(request, *args, **kwargs)
322-
323313
def get_context_data(self, **kwargs):
324314
context = super(EventListView, self).get_context_data(**kwargs)
325315
context["fy"] = get_wa_fy()

td/urls.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343

4444
url(r"^publishing/", include("td.publishing.urls")),
4545
url(r"^api/", include("td.urls_api")),
46-
url(r"^tracking/", include("td.tracking.urls", namespace="tracking")),
47-
url(r"^gl/", include("td.gl_tracking.urls", namespace="gl")),
4846
url(r"^api/", include("td.api.urls", namespace="api")),
4947
url(r"^comment/", include("td.commenting.urls", namespace="comment")),
5048
url(r"^comments/", include("django_comments.urls")),

td/urls_languages.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
upload_rtl_list,
99
RegionListView,
1010
RegionDetailView,
11-
WARegionListView,
12-
WARegionDetailView,
1311
AjaxCountryListView,
1412
CountryListView,
1513
CountryDetailView,
@@ -43,8 +41,6 @@
4341

4442
url(r"^regions/$", RegionListView.as_view(), name="region_list"),
4543
url(r"^regions/(?P<slug>\w+)/$", RegionDetailView.as_view(), name="region_detail"),
46-
url(r"^wa-regions/$", WARegionListView.as_view(), name="wa_region_list"),
47-
url(r"^wa-regions/(?P<slug>\w+)/$", WARegionDetailView.as_view(), name="wa_region_detail"),
4844

4945
url(r"^ajax/countries/$", AjaxCountryListView.as_view(), name="ajax_ds_country_list"),
5046
url(r"^ajax/countries/(?P<slug>\w+)/$", AjaxCountryListView.as_view(), name="ajax_wa_region_country_list"),

td/views.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,6 @@ def upload_rtl_list(request):
330330
class HomeView(TemplateView):
331331
template_name = "homepage.html"
332332

333-
def get(self, request, *args, **kwargs):
334-
messages.warning(request, settings.HOMEPAGE_MESSAGE)
335-
return super(HomeView, self).get(request, *args, **kwargs)
336-
337333

338334
class RegionListView(ListView):
339335
model = Region
@@ -368,10 +364,6 @@ class CountryListView(ListView):
368364
model = Country
369365
template_name = "resources/country_list.html"
370366

371-
def get(self, request, *args, **kwargs):
372-
messages.warning(request, settings.HOMEPAGE_MESSAGE)
373-
return super(CountryListView, self).get(request, *args, **kwargs)
374-
375367
def get_queryset(self):
376368
qs = super(CountryListView, self).get_queryset()
377369
qs = qs.order_by("name")
@@ -666,10 +658,6 @@ class WARegionListView(LoginRequiredMixin, ListView):
666658
context_object_name = "wa_regions"
667659
template_name = "resources/waregion_list.html"
668660

669-
def get(self, request, *args, **kwargs):
670-
messages.warning(request, settings.HOMEPAGE_MESSAGE)
671-
return super(WARegionListView, self).get(request, *args, **kwargs)
672-
673661

674662
class WARegionDetailView(LoginRequiredMixin, DetailView):
675663
model = WARegion

0 commit comments

Comments
 (0)