New block in the navigation menu for user specific entries

Called "navigation_user", used at the moment by the
/welcome page for turning "Login" into "Login and Explore"

Also added the block name to {% endblock %} where it makes sense.
There is no functional change, just easier to read.
This commit is contained in:
2017-10-25 15:43:16 +02:00
parent 5eaa202d49
commit 047737ef41
2 changed files with 25 additions and 13 deletions

View File

@@ -9,20 +9,26 @@
meta(property="og:title", content="Blender Cloud - Open Content Production Platform")
meta(property="og:url", content="https://cloud.blender.org/")
meta(property="og:image", content="{{ url_for('static', filename='assets/img/backgrounds/background_dweebs_01.jpg')}}")
| {% endblock %}
| {% endblock og %}
| {% block page_overlay %}
#page-overlay.video
.video-embed
| {% endblock %}
| {% endblock page_overlay %}
| {% block navigation_search %}{% endblock %}
| {% block navigation_sections %}
li
a.navbar-item(href="#pricing")
span Pricing
| {% endblock navigation_sections %}
| {% block navigation_user %}
li.nav-item-sign-in
a.navbar-item(href="{{ url_for('users.login') }}")
| Log in and Explore
| {% endblock navigation_user %}
| {% endblock %}
| {% block body %}
#page-container.join
@@ -389,7 +395,7 @@ li
| Subscribe for {{ price }}
| {% endblock %}
| {% endblock body %}
| {% block footer_scripts %}
script.
@@ -446,4 +452,4 @@ script.
$('#page-overlay .video-embed').html('<iframe src="https://www.youtube.com/embed/' + videoId +'?rel=0&amp;showinfo=0;autoplay=1" frameborder="0" allowfullscreen></iframe>')
});
| {% endblock %}
| {% endblock footer_scripts %}