384 Commits

Author SHA1 Message Date
58b8cea757 Homepage: Don't capitalize project summary on random featured assets 2017-09-22 15:32:27 +02:00
dc75980eba Blog: limit the max-width of post content 2017-09-21 19:14:30 +02:00
f311dbbe30 Fix fluid headers on video 2017-09-21 19:04:55 +02:00
Pablo Vazquez
b5f0c59511 Comments: Style tweaks
More compact and also convert IDs to classes (when not used by javascript)
2017-09-21 01:14:53 +02:00
1e6180be48 More fixes for video fluid 2017-09-20 16:37:16 +02:00
ebe3118f79 Project home video should not have vjs-fluid, it already is fluid 2017-09-20 16:35:19 +02:00
714455a4eb Fix navigation tree not scrolling until the bottom 2017-09-20 16:31:07 +02:00
0089a8a98e Video: Previews are already fluid, no need for vjs-fluid 2017-09-20 16:18:05 +02:00
9fa4da284b Homepage: Style tweak to random featured project 2017-09-20 16:14:46 +02:00
e3f1f101e2 Assets: No need to calculate preview aspect ratio anymore
No longer used since we went full width
2017-09-20 16:06:42 +02:00
386571157a Assets: Check if user is subscriber or asset is public 2017-09-20 14:23:21 +02:00
5012d19180 Video asset: Show link to login as well as subscribe 2017-09-20 14:19:39 +02:00
54b5e8e3d4 Video: Fix Download button 2017-09-20 14:19:39 +02:00
Pablo Vazquez
5e0e71aa1c SASS: Set all config variables as !default
So other Pillar apps can override them
2017-09-19 21:21:59 +02:00
6af0cd2be8 Don't show "Create a project" button to non-subscribers, and make btn clickable 2017-09-18 13:51:31 +02:00
82a1e0796c Project Home: Scale header image fit as cover 2017-09-17 21:55:59 +02:00
8d0c0894cb Textures: No background color for download button 2017-09-17 21:55:10 +02:00
b2cfe46438 Style tweaks on projects
Plus re-ordering and minor cleanup
2017-09-17 20:11:13 +02:00
53ac29cfd1 Project: Show edit button in sidebar
So we can access it from everywhere and not only from project home
2017-09-17 20:11:13 +02:00
4e153413d9 Fix Download button showing when not logged in 2017-09-17 20:11:13 +02:00
5df68c4ead Comments: Only show if there are actually comments
No negative text "no comments"
2017-09-16 20:11:50 +02:00
1563f4142d Fix broken layout on project blog posts
Fixes T52764
2017-09-16 20:11:50 +02:00
9ac870e0a5 Fixed scrolling to comment when the comment ID is in the URL hash. 2017-09-13 14:05:18 +02:00
Dalai Felinto
303a33c3bf Internationalization: Backend support to localization based on user browser
User experience
===============
For users it means we can provide localized web-sites to enrich their
overall experiences.

Although for the Blender Cloud this doesn't make much sense (since the
content is in English), Flamenco and Attract can really benefit from
this.

New configuration settings
==========================
There are two new parameters in config.py:

* DEFAULT_LOCALE='en_US'
* SUPPORT_ENGLISH=True

They are both properly documented in the `config.py` file.

Technicall details
==================
We are using the 'Accept-Languages' header to match the
available translations with the user supported languages.

If an extension has a `translations` folder, it's used for translations.
However the main application (e.g., Blender Cloud) is the one that
determines the supported languages based on its `languages` folder.

How to mark strings for translation
===================================
See the documentation in README.md.

But as an example, 404.pug and pillar/__init__.py::handle_sdk_resource_invalid
have marked up strings that will be extracted once you install pillar,
or run any of the translations commangs.

Remember to **gulp** after you update the template files.

How to setup translations
=========================
You will need to create translation for the main project, and for each
extension that you want to see translated. I added a new entry-point to
the installation of Pillar.

So all you need is to use the `translations`
script to initialize, update and compile your translations.

Pending tasks
=============
Aside from marking more strings for extraction and start the translation
effort it would be interesting to replace the pretty_date routine with
momentjs.

Acknowledgement
===============
Many thanks for Sybren Stüvel for the suggestions and throughout code
review. Thanks also to Francesco Siddi for the original documentation
and suggesting me to tackle this. And Kudos for Pablo Vazquez for the
motivational support and for the upcoming "strings mark up" task force!

The core of the implementation is based on Miguel Grinberg i18n chapter
of his great 'The Mega Flask Tutorial'.

Reviewers: sybren

Differential Revision: https://developer.blender.org/D2826
2017-09-09 00:26:18 +02:00
e5b80297ba Fixed user ID, we now pass a UserClass instance to compute the capabilities 2017-09-05 16:05:57 +02:00
97564022c3 Renamed 'child' to 'variation', since it's not about child nodes. 2017-09-05 11:56:41 +02:00
b6b7aad046 Have a nicer 403 Forbidden message when the user isn't logged in.
Since we don't know who the user is, just stating that they don't have
access isn't correct.
2017-09-05 11:35:21 +02:00
a8e912fcb1 Include 'next' URL when logging in through a 403 Forbidden page 2017-09-05 11:35:21 +02:00
903bb6cfe9 Typo 2017-09-04 19:46:42 +02:00
94efdcd9b5 Small layout style fixes 2017-09-04 19:16:47 +02:00
b8153b5c9a Assets: Move details to its own file and share across assets
And new styling for the details as well
2017-09-04 19:13:38 +02:00
923b4bd9d6 Notifications: no minimum width 2017-09-04 16:19:17 +02:00
4c25248e5f Project: breadcrumbs no longer exist 2017-09-04 16:19:17 +02:00
06dd24bcf9 Project Edit: Node types editing embedded 2017-09-04 16:19:17 +02:00
adcbebd7b6 Videos: Keep a 16:9 aspect ratio 2017-09-04 16:19:17 +02:00
4a68821dee JS: Fix 50px offset on containerResizeY 2017-09-04 16:19:17 +02:00
fe64a0c70e Changed organizations endpoint /orgs → /o 2017-09-01 11:39:59 +02:00
ea9af92bd4 Organizations: Click anywhere in the list item to open
Suggestion by Dr. Sybren
2017-09-01 11:39:46 +02:00
dd3cfe80ef CSS: don't use cursor pointer for organizations/projects lists 2017-09-01 11:35:55 +02:00
6a4f571b05 Organizations list styling 2017-08-31 16:35:31 +02:00
30b3d6abaf Full width projects, search, and top navbar 2017-08-31 16:35:31 +02:00
01c8f6cdae Inputs: Dim the placeholder text 2017-08-31 16:35:31 +02:00
89f24ac4e6 Buttons: Don't force uppercase text 2017-08-30 23:18:59 +02:00
7890cd2622 Introducing settings blueprint
Now settings live in a dedicated space, the settings blueprint can be used by Pillar applications, and the templates can be extended or overridden. Moved subscription and email settings to the blender-cloud repository.
2017-08-30 23:10:28 +02:00
b6bd40f956 Theatre View: backdrop block not needed anymore 2017-08-30 15:34:13 +02:00
811236cff4 Migrate Jade to Pug template engine
Jade templates engine has been renamed to Pug.

We are using Pug already on the Blender Cloud repository, following is Flamenco and Attract
2017-08-30 14:04:15 +02:00
88af86ae61 Toastr: Style buttons in notifications 2017-08-27 17:44:40 +02:00
add2538655 Prevent JS error by sync-loading jquery.autocomplete….js 2017-08-25 12:03:52 +02:00
ff1b14d980 Project sharing: Simplified user selection JS code. 2017-08-25 12:03:52 +02:00
41a82c44c5 Tests for providers callbacks
Also added SERVER_NAME in config_testing and pre-populated the  keys of OAUTH_CREDENTIALS, since the implementation of providers is part of the application.
2017-08-25 10:55:35 +02:00