Skip to content

Commit

Permalink
keynoter speakers redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgabarda committed Sep 17, 2017
1 parent de01a18 commit 118a374
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,26 @@
from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import reverse
from django.urls.base import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from django.views import defaults as default_views
from django.views.generic import TemplateView

# URLs with with i18n
from django.views.generic.base import RedirectView

from pycones.schedules.views import pentabarf_view, xcal_view, icalendar_view

urlpatterns = i18n_patterns(
url(r'^$', TemplateView.as_view(template_name='pages/home.html'), name="home"),
url(r'^code-of-conduct/$', TemplateView.as_view(template_name='pages/code_of_conduct.html'), name="code-of-conduct"),
url(r'^tickets/$', TemplateView.as_view(template_name='pages/tickets.html'), name="tickets"),
url(r'^info/$', TemplateView.as_view(template_name='pages/info.html'), name="info"),
url(r'^keynoters-speakers/$', TemplateView.as_view(template_name='pages/keynoters.html'), name="keynoters"),
url(r'^keynoter-speakers/$', TemplateView.as_view(template_name='pages/keynoters.html'), name="keynoter-speakers"),
url(r'^keynoters-speakers/$', RedirectView.as_view(
url=reverse_lazy("keynoter-speakers"), permanent=True
), name="keynoters-speakers"),
url(r'^blog/', include('pycones.blog.urls', namespace="blog")),
url(r'^users/', include('pycones.users.urls', namespace="users")),
url(r'^proposals/', include('pycones.proposals.urls', namespace="proposals")),
Expand Down
2 changes: 1 addition & 1 deletion pycones/templates/headers.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="nav-link" href="{% url "info" %}">{% trans "Información del evento" %}</a>
</li>
<li>
<a class="nav-link" href="{% url "keynoters" %}">{% trans "Oradores Plenarios" %}</a>
<a class="nav-link" href="{% url "keynoter-speakers" %}">{% trans "Oradores Plenarios" %}</a>
</li>
{% if schedule_opened %}
<li>
Expand Down
2 changes: 1 addition & 1 deletion pycones/templates/pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h3>{% trans "Juan Luis Cano" %}</h3>
</div>
<div class="col-12">
<p class="text-center" style="margin: 35px 0 35px 0">
<a href="{% url "keynoters" %}" class="btn btn-primary btn-lg" >{% trans "¡Conoce más de nuestros keynoters!" %}</a>
<a href="{% url "keynoter-speakers" %}" class="btn btn-primary btn-lg" >{% trans "¡Conoce más de nuestros keynoters!" %}</a>
</p>
</div>
</div>
Expand Down

0 comments on commit 118a374

Please sign in to comment.