c3nav logo should be a link on subpages
This commit is contained in:
parent
941be347d3
commit
7f54d5f915
3 changed files with 6 additions and 1 deletions
|
@ -16,6 +16,9 @@ header h1 {
|
|||
font-size: 3rem;
|
||||
margin: 0;
|
||||
}
|
||||
header h1 a {
|
||||
color: inherit;
|
||||
}
|
||||
header #user {
|
||||
text-align: right;
|
||||
padding: 0 0 3px 10px;
|
||||
|
|
|
@ -81,6 +81,8 @@ c3nav = {
|
|||
.on('submit', 'form', c3nav._modal_submit);
|
||||
$('header #user').on('click', c3nav._modal_link_click);
|
||||
|
||||
$('header h1 a').removeAttr('href');
|
||||
|
||||
window.onpopstate = c3nav._onpopstate;
|
||||
},
|
||||
get_csrf_token: function() {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<body>
|
||||
{% if not embed %}
|
||||
<header>
|
||||
<h1>c3nav</h1>
|
||||
<h1><a href="/">c3nav</a></h1>
|
||||
<a href="/account/" id="user">
|
||||
<span>{{ user_data.title }}</span>
|
||||
<small>{% if user_data.subtitle %}{{ user_data.subtitle }}{% endif %}</small>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue