Commit Graph

2174 Commits

Author SHA1 Message Date
Tobias Johansson ceef04455c Video player in project header bug (firefox):
Unable to play video in in project header in firefox.

Reason:
Firefox is missing ResizeObserver, so as a workaround videoJs inserts an
iframe bellow the video and listens to resize events on that. This iframe
lands in front of the video when we use the class ".embed-responsive",
and therefore we can not start the wideo.

Solution:
I could not see any difference in how the page was rendered
with/without this class so I removed it.
2018-10-24 13:34:08 +02:00
Tobias Johansson c8e62e3610 Loading bar: Introduced two event listeners on window 'pillar:workStart' and 'pillar:workStop' that (de)activates the loading bar.
Reason:
* To decouple code
* Have the loading bar active until whole page stopped working
* Have local loading info

Usage:
$.('.myClass')
   .on('pillar:workStart', function(){
    ... do stuff locally while loading ...
    })
   .on('pillar:workStop', function(){
   ... stop do stuff locally while loading ...
   })

$.('.myClass .mySubClass').trigger('pillar:workStart')
... do stuff ...
$.('.myClass .mySubClass').trigger('pillar:workStop')
2018-10-23 13:57:02 +02:00
Sybren A. Stüvel ce7cf52d70 Refresh badges every 10 minutes
Now that they are new, they should be snappy!
2018-10-11 10:04:16 +02:00
Sybren A. Stüvel dc2105fbb8 Enabled badges in comments 2018-10-10 16:55:10 +02:00
Sybren A. Stüvel 71185af880 Added json jinja filter for debugging purposes 2018-10-10 16:55:10 +02:00
Sybren A. Stüvel 041f8914b2 Show badges on user profile page 2018-10-10 16:55:06 +02:00
Sybren A. Stüvel b4ee5b59bd Sync Blender ID badge as soon as user logs in
This adds a new Blinker signal `user_logged_in` that is only sent when
the user logs in via the web interface (and not on every token
authentication and every API call).
2018-10-10 16:54:58 +02:00
Sybren A. Stüvel 314ce40e71 Send logged-in user in user_authenticated signal 2018-10-10 15:30:35 +02:00
Sybren A. Stüvel 7e941e2299 Added TODOs and removed fetching unused field from MongoDB 2018-10-10 14:40:45 +02:00
Tobias Johansson 53811363ce Search bug fix: Missing video plugins resulted in wrong volume and progress. 2018-10-05 14:37:32 +02:00
Tobias Johansson 51057e4d63 Search bug fix: Grid/List toggle on group nodes also affected the the way search results where presented 2018-10-05 12:37:48 +02:00
Tobias Johansson a1a48c1941 Elasticsearch: Added documentation on how to set the indexing. 2018-10-05 11:35:02 +02:00
Tobias Johansson 19fdc75e60 Free assets: Assets should not be advertised as free if the user is a logged in subscriber. 2018-10-04 17:44:08 +02:00
Tobias Johansson 879bcffc2b Asset list item: Don't show user.full_name in latest and random assets 2018-10-04 12:30:05 +02:00
Tobias Johansson 6ad12d0098 Video Duration: The duration of a video is now shown on thumbnails and bellow the video player
Asset nodes now have a new field called "properties.duration_seconds". This holds a copy of the duration stored on the referenced video file and stays in sync using eve hooks.

To migrate existing duration times from files to nodes you need to run the following:
./manage.py maintenance reconcile_node_video_duration -ag

There are 2 more maintenance commands to be used to determine if there are any missing durations in either files or nodes:
find_video_files_without_duration
find_video_nodes_without_duration

FFProbe is now used to detect what duration a video file has.

Reviewed by Sybren.
2018-10-03 18:30:40 +02:00
Pablo Vazquez a738cdcad8 Fix and tweaks to theatre mode
* Only show width/height if available (would be None otherwise)
* If image width/height is not available, allow zooming
* Fix styling and cleanup
* Remove footer (reported by Vulp35 on Twitter, thanks!)
2018-10-01 11:56:52 +02:00
Tobias Johansson 199f37c5d7 Tagged Asset: Added metadata
Video duration, Project link and pretty date
2018-09-26 11:29:15 +02:00
Pablo Vazquez 4cf93f00f6 Assets: Fix video progress not showing 2018-09-24 13:31:48 +02:00
Pablo Vazquez eaf9235fa9 Fix users listing styling 2018-09-21 17:11:26 +02:00
Pablo Vazquez 24ecf36896 CSS: Brighter primary button 2018-09-21 16:51:45 +02:00
Pablo Vazquez 86aa494aed CSS: Use 3 cards even on media-xl 2018-09-21 16:25:48 +02:00
Pablo Vazquez 5a5b97d362 Introducing Main Dropdown navigation for mobile 2018-09-21 16:13:50 +02:00
Pablo Vazquez 831858a336 CSS: Make buttons use bootstraps' variable for roundness 2018-09-21 16:13:50 +02:00
Tobias Johansson e9d247fe97 Added assertion in test to verify that the asset was deleted 2018-09-21 14:24:37 +02:00
Tobias Johansson 1ddd8525c7 Remove references to node from projects when the node is deleted.
Removes node references  in project fields header_node, nodes_blog, nodes_featured, nodes_latest.
2018-09-21 14:23:47 +02:00
Pablo Vazquez c43941807c Node details: Center only on landing 2018-09-21 12:11:11 +02:00
Pablo Vazquez bbad8eb5c5 Remove unused project macros file
The only macro was render_secondary_navigation, which is in the _navigation.pug
template together with the other Blender Cloud navigation macros.
2018-09-20 16:38:17 +02:00
Pablo Vazquez 04f00cdd4f Loading Bar: Utility to turn it on/off 2018-09-20 15:20:29 +02:00
Pablo Vazquez 66d9fd0908 Center node-details-description 2018-09-20 12:15:08 +02:00
Pablo Vazquez 516ef2ddc7 Navigation: if category is Assets, then call it Libraries 2018-09-20 12:10:35 +02:00
Pablo Vazquez 35fb07ee64 Navigation: Move marker on left side
On the right it looks like a scrollbar.
2018-09-20 12:10:09 +02:00
Pablo Vazquez f1d67894dc Rename secondary_navigation to navigation_project 2018-09-20 12:05:46 +02:00
Pablo Vazquez aef2cf8c2d Navigation: Fix notification number 2018-09-19 19:43:49 +02:00
Pablo Vazquez d347ddac2c Navigation: Films -> Open Projects
And show navigation when in the Blog
2018-09-19 19:33:01 +02:00
Pablo Vazquez 186ba167f1 Navigation: remove extra 's' for assets project
Such a lame solution. We need better categories.
2018-09-19 19:09:04 +02:00
Pablo Vazquez 847e97fe8c Project: remove arrow left/right navigation hotkey 2018-09-19 18:33:53 +02:00
Pablo Vazquez 7ace5f4292 Search: use proper navigation
Also remove failing projectBrowseTypeList js
2018-09-19 18:22:27 +02:00
Pablo Vazquez 6cb85b06dc Project: Dark navbar for edit project 2018-09-19 18:21:47 +02:00
Pablo Vazquez 5c019e8d1c Landing: Set project title as active 2018-09-19 15:50:23 +02:00
Pablo Vazquez 7796179021 Navigation: Position icons 2018-09-19 15:42:18 +02:00
Francesco Siddi 26aca917c8 Use correct permission format for gulp-chmod 2018-09-19 14:45:43 +02:00
Pablo Vazquez e262a5c240 Jumbotron: take content if defined in the block 2018-09-19 12:39:18 +02:00
Pablo Vazquez e079ac4da1 CSS adjustments to dropdowns, cards, responsive 2018-09-19 11:33:20 +02:00
Pablo Vazquez 83097cf473 Projects: Explore -> Browse 2018-09-18 18:53:55 +02:00
Pablo Vazquez f4ade9cda7 Allow empty content for card-deck component
In cases like the tags groups we want an empty card-deck because its
content is filled up via javascript.
2018-09-18 16:56:08 +02:00
Francesco Siddi 31244a89e5 Merge branch 'master' into production 2018-09-18 15:50:55 +02:00
Pablo Vazquez 749c3dbd58 Gulp: Add bootstrap's collapse and alert js to tutti 2018-09-18 15:25:20 +02:00
Pablo Vazquez b1d97e723f Cards: Smaller ribbon for vertical aligned cards 2018-09-18 15:25:20 +02:00
Pablo Vazquez 46bdd4f51c Pages: Don't show date and page title
It's already in the jumbotron
2018-09-18 15:25:20 +02:00
Pablo Vazquez 93720e226c Badges: don't display them just yet 2018-09-18 15:25:20 +02:00