Skip to content

Commit

Permalink
Replacing Django values
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Rodriguez committed Oct 26, 2015
1 parent 6ff9a33 commit 44a9871
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lms/templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<%block name="pagetitle">${_("Dashboard")}</%block>
<%block name="bodyclass">view-dashboard is-authenticated</%block>
<%block name="nav_skip">#my-courses</%block>
<%block name="nav_skip">#content</%block>

<%block name="header_extras">
% for template_name in ["donation"]:
Expand Down
4 changes: 2 additions & 2 deletions lms/templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@
% if not disable_window_wrap:
<div class="window-wrap" dir="${static.dir_rtl()}">
% endif
<a class="nav-skip" href="#content">${_("Skip to main content")}</a>
<a class="nav-skip" href="<%block name="nav_skip">#content</%block>">${_("Skip to main content")}</a>

% if not disable_header:
<%include file="${header_file}" />
% endif

<div class="content-wrapper" id="content" tabindex="-1">
<div role="main" class="content-wrapper" id="content" tabindex="-1">
${self.body()}
<%block name="bodyextra"/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions lms/templates/main_django.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@

<body class="{% block bodyclass %}{% endblock %} lang_{{LANGUAGE_CODE}}">
<div class="window-wrap" dir="${static.dir_rtl()}">
<a class="nav-skip" href="#content">{% trans "Skip to main content" %}</a>
<a class="nav-skip" href="{% block nav_skip %}#content{% endblock %}">{% trans "Skip to main content" %}</a>
{% with course=request.course %}
{% if IS_EDX_DOMAIN %}
{% include "navigation-edx.html" %}
{% else %}
{% include "navigation.html" %}
{% endif %}
{% endwith %}
<div class="content-wrapper" id="content" tabindex="-1">
<div role="main" class="content-wrapper" id="content" tabindex="-1">
{% block body %}{% endblock %}
{% block bodyextra %}{% endblock %}
</div>
Expand Down

0 comments on commit 44a9871

Please sign in to comment.