comparison website/www/_templates/layout.html @ 6774:e7b4ad2c57ac

landmarks, skiplink, remove bad attrs, autocomplete search layout.html: Add main and nav landmarks to layout templte. Add skiplink to get to main. Remove Description meta tag from layout template in favor of description metadata in individual files. Remove obsolete border attribute from sourceforge logo. Add autocomplete="on" attribute for search input box. doc/*.txt Remove language attribute from description meta tags. These changes also occur for other files not in this commit. Thse other files have changes to files for the 2.2.0 release not yet tobe committed.
author John Rouillard <rouilj@ieee.org>
date Tue, 12 Jul 2022 15:00:30 -0400
parents c574d888dd87
children c90104abe508
comparison
equal deleted inserted replaced
6773:339805c4a85b 6774:e7b4ad2c57ac
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> 2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1"> 5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <meta name="Description"
7 content="Documentation on the Roundup issue tracker, version {{ release|e }}.">
8 {{ metatags }} 6 {{ metatags }}
9 {%- if builder != 'htmlhelp' %} 7 {%- if builder != 'htmlhelp' %}
10 {%- set titlesuffix = docstitle|e %} 8 {%- set titlesuffix = docstitle|e %}
11 {%- set titlesuffix = " - " + titlesuffix %} 9 {%- set titlesuffix = " - " + titlesuffix %}
12 {%- endif %} 10 {%- endif %}
63 {%- endif %} 61 {%- endif %}
64 {%- endblock %} 62 {%- endblock %}
65 {%- block extrahead %} {% endblock %} 63 {%- block extrahead %} {% endblock %}
66 </head> 64 </head>
67 <body> 65 <body>
66 <div id="skiplink"><a href="#main">Skip to main content</a></div>
68 <div class="header"><h1>Roundup</h1> 67 <div class="header"><h1>Roundup</h1>
69 {%- if pagename != "search" %} 68 {%- if pagename != "search" %}
70 <div id="searchbox" style="display: none"> 69 <div id="searchbox" style="display: none">
71 <form class="search" action="{{ pathto('search') }}" method="get"> 70 <form class="search" action="{{ pathto('search') }}" method="get">
72 <input type="text" aria-label="Enter search terms" 71 <input type="text" aria-label="Enter search terms"
73 name="q" size="18" /> 72 name="q" size="18" autocomplete="on" />
74 <input type="submit" value="{{ _('Search') }}" /> 73 <input type="submit" value="{{ _('Search') }}" />
75 <input type="hidden" name="check_keywords" value="yes" /> 74 <input type="hidden" name="check_keywords" value="yes" />
76 <input type="hidden" name="area" value="default" /> 75 <input type="hidden" name="area" value="default" />
77 </form> 76 </form>
78 </div> 77 </div>
79 {%- endif %} 78 {%- endif %}
80 </div> 79 </div>
81 <div class="navigation"> 80 <div class="navigation">
81 <nav>
82 <div class="menu"> 82 <div class="menu">
83 {{ toctree() }} 83 {{ toctree() }}
84 </div> 84 </div>
85 </nav>
85 </div> 86 </div>
86 <div class="content"> 87 <div class="content">
87 <div id="subnav"> 88 <div id="subnav">
88 {%- if prev %} 89 {%- if prev %}
89 <a title="{{ prev.title|striptags }}" href="{{ prev.link|e }}"> 90 <a title="{{ prev.title|striptags }}" href="{{ prev.link|e }}">
94 Next</a> 95 Next</a>
95 {%- endif %} 96 {%- endif %}
96 <a title="{{ _('Index') }}" href="{{ pathto('genindex') }}"> 97 <a title="{{ _('Index') }}" href="{{ pathto('genindex') }}">
97 Index</a> 98 Index</a>
98 </div> 99 </div>
100 <main id="main" tabindex="-1">
99 {% block body %} {% endblock %} 101 {% block body %} {% endblock %}
102 </main>
100 </div> 103 </div>
101 {%- block footer %} 104 {%- block footer %}
102 <div class="footer"> 105 <div class="footer">
103 <div> 106 <div>
104 {%- if show_source and has_source and sourcename %} 107 {%- if show_source and has_source and sourcename %}
112 </div> 115 </div>
113 <div> 116 <div>
114 {%- if last_updated %} 117 {%- if last_updated %}
115 {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} 118 {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
116 {%- endif %} 119 {%- endif %}
117 <span>Hosted by <a href="https://sourceforge.net"><img src="https://sflogo.sourceforge.net/sflogo.php?group_id=31577&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a></span> 120 <span>Hosted by <a href="https://sourceforge.net"><img src="https://sflogo.sourceforge.net/sflogo.php?group_id=31577&amp;type=1" width="88" height="31" alt="SourceForge.net Logo" /></a></span>
118 </div> 121 </div>
119 </div> 122 </div>
120 {%- endblock %} 123 {%- endblock %}
121 <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" /> 124 <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
122 <script> 125 <script>

Roundup Issue Tracker: http://roundup-tracker.org/