UI: Rename 'Explore' to 'Browse'

This commit is contained in:
2019-04-04 14:19:36 +02:00
parent b62f500b2e
commit 12c64f13a2
6 changed files with 17 additions and 35 deletions

View File

@@ -151,20 +151,11 @@ button.navbar-toggler(
span {{ link['label'] }} span {{ link['label'] }}
| {% endfor %} | {% endfor %}
//- 'Explore' links to first featured node it can find.
| {% if project.nodes_featured %}
| {# In some cases featured_nodes might might be embedded #}
| {% if '_id' in project.nodes_featured[0] %}
| {% set featured_node_id=project.nodes_featured[0]._id %}
| {% else %}
| {% set featured_node_id=project.nodes_featured[0] %}
| {% endif %}
+nav-secondary-link( +nav-secondary-link(
href="{{ url_for('projects.view_node', project_url=project.url, node_id=featured_node_id) }}", href="{{ url_for('cloud.project_browse', project_url=project.url) }}",
title="Explore {{ project.name }}", title="Browse {{ project.name }}",
class="{% if title == 'project' %}active{% endif %}") class="{% if title == 'project' %}active{% endif %}")
span Explore span Browse
| {% endif %}
//- Link to Production Tools (Attract, Flamenco, SVN, etc). //- Link to Production Tools (Attract, Flamenco, SVN, etc).
| {% if extension_sidebar_links %} | {% if extension_sidebar_links %}

View File

@@ -11,7 +11,7 @@ section
our team to create more Open Projects, training, services and of course to make Blender the best our team to create more Open Projects, training, services and of course to make Blender the best
CG pipeline in the world. You rock! CG pipeline in the world. You rock!
p.buttons p.buttons
a.button(href="{{ abs_url('cloud.login', next='/') }}", target='_blank') Explore Now > a.button(href="{{ abs_url('cloud.login', next='/') }}", target='_blank') Browse Now >
p. p.
Here is a quick guide to help you get started with Blender Cloud. Here is a quick guide to help you get started with Blender Cloud.

View File

@@ -48,7 +48,7 @@ include mixins/components
.d-flex.align-items-center.mt-auto .d-flex.align-items-center.mt-auto
a.btn-link.mr-auto.my-3(href="{{ project_url }}") a.btn-link.mr-auto.my-3(href="{{ project_url }}")
| Explore #[i.pi-angle-right] | Browse #[i.pi-angle-right]
| {% endif %} | {% endif %}
| {% if project.status == 'pending' and current_user.is_authenticated and current_user.has_role('admin') %} | {% if project.status == 'pending' and current_user.is_authenticated and current_user.has_role('admin') %}

View File

@@ -40,7 +40,7 @@ meta(name="twitter:image", content="{% if main_project.picture_header %}{{ main_
| #[br] A poetic short film about a mountain spirit and her wise little dog. | #[br] A poetic short film about a mountain spirit and her wise little dog.
a.btn.btn-link.btn-sm.pl-0(href="/p/spring") a.btn.btn-link.btn-sm.pl-0(href="/p/spring")
| Explore | See more
i.pi-angle-right i.pi-angle-right
.col-md-6 .col-md-6

View File

@@ -99,7 +99,7 @@ link(href="{{ url_for('static_cloud', filename='assets/css/project-main.css') }}
| {% set project_header = project.picture_header.thumbnail('h', api=api) %} | {% set project_header = project.picture_header.thumbnail('h', api=api) %}
| {% endif %} | {% endif %}
| {% set project_explore_url = url_for('projects.view', project_url=project.url) %} | {% set project_browse_url = url_for('cloud.project_browse', project_url=project.url) %}
.jumbotron.text-white.jumbotron-overlay-gradient-fade-to-gray( .jumbotron.text-white.jumbotron-overlay-gradient-fade-to-gray(
style="background-image: url(\'{{ project_header }}\');") style="background-image: url(\'{{ project_header }}\');")
@@ -108,12 +108,12 @@ link(href="{{ url_for('static_cloud', filename='assets/css/project-main.css') }}
.col-md-6 .col-md-6
.display-4.text-uppercase.font-weight-bold .display-4.text-uppercase.font-weight-bold
| {% if project.extension_props.cloud.logo %} | {% if project.extension_props.cloud.logo %}
a(href="{{ project_explore_url }}") a(href="{{ project_browse_url }}")
img.img-fluid( img.img-fluid(
alt="{{ project.name }}", alt="{{ project.name }}",
src="{{ project.extension_props.cloud.logo.thumbnail('m', api=api) }}") src="{{ project.extension_props.cloud.logo.thumbnail('m', api=api) }}")
| {% else %} | {% else %}
a.text-white(href="{{ project_explore_url }}") a.text-white(href="{{ project_browse_url }}")
| {{ project.name }} | {{ project.name }}
| {% endif %} | {% endif %}
@@ -132,8 +132,8 @@ link(href="{{ url_for('static_cloud', filename='assets/css/project-main.css') }}
| WATCH | WATCH
| {% endif %} | {% endif %}
a.btn.btn-link.px-5.text-white(href="{{ project_explore_url }}") a.btn.btn-link.px-5.text-white(href="{{ project_browse_url }}")
| Explore | Browse
i.pi-angle-right.pl-2 i.pi-angle-right.pl-2
@@ -162,20 +162,11 @@ link(href="{{ url_for('static_cloud', filename='assets/css/project-main.css') }}
| {% endif %} | {% endif %}
| {% endfor %} | {% endfor %}
.clearfix .text-center.mx-auto.py-3
a.btn.btn-outline-primary.px-5(
href="{{ project_browse_url }}")
| See More Artwork
| {% if project.nodes_featured %}
| {# In some cases featured_nodes might might be embedded #}
| {% if '_id' in project.nodes_featured[0] %}
| {% set featured_node_id=project.nodes_featured[0]._id %}
| {% else %}
| {% set featured_node_id=project.nodes_featured[0] %}
| {% endif %}
.text-center.p-5
a.btn.btn-outline-primary.px-5(
href="{{ url_for('projects.view_node', project_url=project.url, node_id=featured_node_id) }}")
| See More Artwork
| {% endif %}
.row .row
.col-md-10.mx-auto .col-md-10.mx-auto

View File

@@ -29,10 +29,10 @@ meta(property="og:image", content="{{ url_for('static', filename='assets/img/bac
li.pr-1 li.pr-1
| {% if current_user.is_anonymous %} | {% if current_user.is_anonymous %}
a.btn.btn-sm.btn-outline-primary.px-3(href="{{ url_for('users.login', next='/') }}") a.btn.btn-sm.btn-outline-primary.px-3(href="{{ url_for('users.login', next='/') }}")
| Log in & Explore | Log in & Browse
| {% else %} | {% else %}
a.btn.btn-sm.btn-outline-primary.px-3(href="{{ url_for('main.homepage') }}") a.btn.btn-sm.btn-outline-primary.px-3(href="{{ url_for('main.homepage') }}")
| Explore | Browse
| {% endif %} | {% endif %}
| {% endblock navigation_user %} | {% endblock navigation_user %}