Skip to content

Commit 5c80a9b

Browse files
committed
Fixed Issue jupyter#3217
added main and navigation tags to tree and page.html
1 parent a403d59 commit 5c80a9b

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ src
3535
.idea/
3636
Read the Docs
3737
config.rst
38-
38+
*.iml
3939
/.project
4040
/.pydevproject
4141

notebook/templates/page.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
</div>
123123
</noscript>
124124

125-
<div id="header">
125+
<div id="header" role="navigation" aria-label="Top Menu">
126126
<div id="header-container" class="container">
127127
<div id="ipython_notebook" class="nav navbar-brand"><a href="{{default_url}}
128128
{%- if logged_in and token -%}?token={{token}}{%- endif -%}" title='{% trans %}dashboard{% endtrans %}'>
@@ -153,11 +153,12 @@
153153

154154
{% block header %}
155155
{% endblock %}
156-
</div>
156+
157+
</div>
157158

158159
<div id="site">
159-
{% block site %}
160-
{% endblock %}
160+
{% block site %}
161+
{% endblock %}
161162
</div>
162163

163164
{% block after_site %}

notebook/templates/tree.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{% extends "page.html" %}
2-
32
{% block title %}{{page_title}}{% endblock %}
43

54

@@ -27,7 +26,8 @@
2726
{% block site %}
2827

2928
<div id="ipython-main-app" class="container">
30-
<div id="tab_content" class="tabbable">
29+
30+
<div id="tab_content" class="tabbable" role="main">
3131
<ul id="tabs" class="nav nav-tabs">
3232
<li class="active"><a href="#notebooks" data-toggle="tab">{% trans %}Files{% endtrans %}</a></li>
3333
<li><a href="#running" data-toggle="tab">{% trans %}Running{% endtrans %}</a></li>
@@ -204,4 +204,4 @@
204204

205205

206206
<script src="{{ static_url("tree/js/main.min.js") }}" type="text/javascript" charset="utf-8"></script>
207-
{% endblock %}
207+
{% endblock %}

0 commit comments

Comments
 (0)