A <header> tag is the natural place to have headings. Since we already had the logo there, IMHO it makes sense to merge both the <h1> tag and the logo together. We were already doing so in the devise layout. From the sceen reader users' point of view, having a link with the text "CONSUL logo" is a bit confusing, since it seems to imply the link will get us to the CONSUL logo. Using the organization name as the text of the link makes more sense. One thing changes, though. Before this commit, the first thing on the page a screen reader user would hear about would be the organization name. Now the language selector and the top links are announced before the organization name is read. That's fine, since the actual first thing these users will hear is the content of the <title> tag, which contains the organization name as well.
51 lines
1.9 KiB
Plaintext
51 lines
1.9 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user.try(:id) %>">
|
|
<head>
|
|
<%= render "layouts/common_head", default_title: setting["org_name"] %>
|
|
<%= render "layouts/tracking_data" %>
|
|
<%= render "layouts/meta_tags" %>
|
|
<%= content_for :canonical %>
|
|
<%= favicon_link_tag image_path_for("apple-touch-icon-200.png"),
|
|
rel: "icon apple-touch-icon",
|
|
sizes: "200x200",
|
|
type: "image/png" %>
|
|
<%= content_for :social_media_meta_tags %>
|
|
|
|
<%= raw setting["html.per_page_code_head"] %>
|
|
</head>
|
|
<body class="<%= yield (:body_class) %>">
|
|
<%= raw setting["html.per_page_code_body"] %>
|
|
|
|
<div class="wrapper <%= yield (:wrapper_class) %>">
|
|
<%= render "layouts/header", with_subnavigation: true %>
|
|
|
|
<% if request.headers["User-Agent"] =~ /MSIE/ && cookies["ie_alert_closed"] != "true" %>
|
|
<!--[if lt IE 9]>
|
|
<div data-alert class="callout primary ie-callout" data-closable>
|
|
<button class="close-button ie-callout-close-js"
|
|
aria-label="<%= t("application.close") %>" type="button" data-close>
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
<h2><%= t("layouts.application.ie_title") %></h2>
|
|
<p>
|
|
<%= sanitize(t("layouts.application.ie",
|
|
chrome: link_to(
|
|
t("layouts.application.chrome"), "https://www.google.com/chrome/browser/desktop/", title: t("shared.target_blank"), target: "_blank"),
|
|
firefox: link_to(
|
|
t("layouts.application.firefox"), "https://www.mozilla.org/firefox", title: t("shared.target_blank"), target: "_blank")
|
|
)) %>
|
|
</p>
|
|
</div>
|
|
<![endif]-->
|
|
<% end %>
|
|
|
|
<%= render "layouts/flash" %>
|
|
|
|
<%= yield %>
|
|
</div>
|
|
<div class="footer">
|
|
<%= render "layouts/footer" %>
|
|
</div>
|
|
</body>
|
|
</html>
|