Commit Graph

56 Commits

Author SHA1 Message Date
b4739521ed Layout Template: Introducing announcements.
Used for non-subscribers (current_user without .has-cap('subscriber'),
to give a friendly reminder about cool promos!
2019-04-03 22:54:00 +02:00
e03cf2f5da CSS: Include font-pillar as part of main.css 2019-04-03 13:01:08 +02:00
42215d2b02 UI Layout: New jinja block for adding custom classes to the body.
Usage: {% block bodyclasses %}custom-class-name{% endblock %}
2019-03-29 15:37:46 +01:00
b7b6543043 Navigation: Unified cloud navigation
* Removed main drop down menu
* Added "My cloud" to user menu
* Attract/Flamenco is found under Production Tools menu
* Attract/Flamenco has the same navigation as its project
2019-02-07 14:45:55 +01:00
d32c44e50c Navigation: Unified cloud navigation
Welcome page was missing Blender cloud logo
2019-02-06 11:42:39 +01:00
369161e29f Navigation: Unified cloud navigation
* Removed main drop down menu
* Added "My cloud" to user menu
* Attract/Flamenco is found under Production Tools menu
* Attract/Flamenco has the same navigation as its project
2019-02-06 10:31:36 +01:00
5f9406edd2 Vue Comments: Comments ported to Vue + DnD fileupload
* Drag and drop files to comment editor to add a file attachment
* Using Vue to render comments

Since comments now has attachments we need to update the schemas
./manage.py maintenance replace_pillar_node_type_schemas
2018-12-12 11:45:46 +01:00
2950a4347a Quick-Search: Added Quick-search in the topbar
Changed how and what we store in elastic to unify it with how we store
things in mongodb so we can have more generic javascript code
to render the data.

Elastic changes:
  Added:
  Node.project.url

  Altered to store id instead of url
  Node.picture

  Made Post searchable

./manage.py elastic reset_index
./manage.py elastic reindex

Thanks to Pablo and Sybren
2018-11-22 15:31:52 +01:00
37fe235d47 Lazy Home: Lazy load latest blog posts and assets and group by week and
project.

Javascript tutti.js and timeline.js is needed, and then the following to
init the timeline:

$('.timeline')
    .timeline({
        url: '/api/timeline'
    });

# Javascript Notes:
## ES6 transpile:
* Files in src/scripts/js/es6/common will be transpiled from
modern es6 js to old es5 js, and then added to tutti.js
* Files in src/scripts/js/es6/individual will be transpiled from
modern es6 js to old es5 js to individual module files
## JS Testing
* Added the Jest test framework to write javascript tests.
* `npm test` will run all the javascript tests

Thanks to Sybren for reviewing
2018-11-12 12:57:24 +01:00
594af19b2b Main dropdown tweaks for responsive.
Most of the changes are done in Pillar, in 0_navbar.js (part of tutti).
2018-09-21 16:19:13 +02:00
7983a7b038 Use loadingBar utility. 2018-09-20 15:20:58 +02:00
ece0ba4ae7 Dropdowns tweaks based on feedback 2018-09-19 11:20:17 +02:00
8ff8975dbb Welcome page: Styling 2018-09-17 18:42:04 +02:00
00cd29befc Layout: move footer and main menu into their own files 2018-09-17 17:18:43 +02:00
a5c7ec285d Style tweaks 2018-09-17 17:09:43 +02:00
6f88de3b20 Menu: Remove columns for trainings
Experiment with a more compact menu, more readable with not so much text.
2018-09-16 05:06:41 +02:00
23bf27ca75 Layout: Add Art Gallery to menu 2018-09-15 21:36:32 +02:00
1196f178e8 One class too much 2018-09-15 17:26:56 +02:00
df33a1803e Navigation menu: re-order items and minor tweaks 2018-09-15 06:15:49 +02:00
dc59bb53de New global navigation menu. 2018-09-15 05:36:23 +02:00
e1433c3c2a Layout: Cleanup
* jQuery and Bootstrap are now part of tutti, built by Pillar.
* Markdown is no longer used as Pillar has its own converter.
2018-09-14 01:21:22 +02:00
fab0d412fa Navbar: padding for items 2018-09-12 19:00:54 +02:00
c5287da78c Layout: Search icon in the navbar 2018-09-11 19:41:16 +02:00
f9368c0729 Layout: Use mixin for top navigation 2018-09-07 18:12:01 +02:00
23fbb68cfc Replace #project-loading spinning icon with a .loader-bar 2018-09-07 14:56:38 +02:00
4a4e75ee59 Project view: Cleanup and minor layout tweaks 2018-09-07 12:47:31 +02:00
a64d3902fd Bootstrap popovers are no longer used. 2018-09-06 14:24:31 +02:00
8dd1de1018 Merge branch 'wip-redesign'
# Conflicts:
#	src/templates/homepage.pug
#	src/templates/services.pug
2018-09-06 14:13:22 +02:00
92106459a0 Use Navigation Tabs for homepage and index collections 2018-09-06 13:03:22 +02:00
5a36888f61 Navigation: Dropdowns for Services and Open Projects 2018-09-06 12:58:56 +02:00
cf98883633 Make <meta property="og:url"> tags have an absolute URL
Most of those can simply use `{{ request.url }}`, as this already contains
the absolute URL of the currently displayed page.
2018-09-05 13:58:13 +02:00
c25df6f0ad Cleanup 2018-08-31 19:33:14 +02:00
813750a006 Layout cleanup 2018-08-31 19:08:52 +02:00
73e8a81f3c Minor style tweaks 2018-08-31 13:58:26 +02:00
169a7f51f0 navbar-container: cleanup 2018-08-28 15:55:32 +02:00
01b6693324 Cleanup styling. Use bootstrap classes instead 2018-08-27 16:57:34 +02:00
012ba06655 Use system fonts (see main.sass) 2018-08-27 16:55:48 +02:00
2be601d0b0 Introducing Bootstrap 4
Bootstrap (and its dependency popper.js) are now used from npm packages,
allowing better version control and custom building of only the required
components for both styling and javascript.

At this moment the whole styling of bootstrap is included, once the Cloud
redesign is over it will be stripped to only the used components.
2018-08-27 16:52:22 +02:00
cf99383b9c Only load clipboard.min.js when authenticated
This is used in the attachments form, which is only available to
authenticated users.
2018-04-03 11:28:13 +02:00
0259c5e0ec Add clipboard.min.js to layout
This is needed for the copy button on file asset uploading. Rather than
including it on all pages that could feature the file uploader it's now
loaded globally.
2018-03-29 17:34:22 +02:00
df71738623 Nodes preview now uses typewatch and csrf_token 2018-03-28 23:38:09 +02:00
5f07c7ce17 Use new hashing of static file names.
Every time the docker image is rebuilt a random hash is chosen.

Requires Pillar d560f89704e3a6f4490df57712525048c469bed2 or newer.
2018-03-23 17:39:04 +01:00
5c26756626 remove algolia 2018-01-12 11:54:39 +01:00
8a4f6c3649 Switch from macros to blocks for navigation menus
For more informations see a7693aa78dcf0a0a77e113f34afa63fb4f615441 in pillar.git
2017-12-13 11:13:47 +01:00
62dcd93584 Only load markdown.min.js if current_user has subscriber capabilities
Since commenting or node editing is the only place we use js markdown now.
2017-11-23 16:51:31 +01:00
5be0f3baf0 Update cache for CSS/JS 2017-11-09 18:59:44 +01:00
c00121d71c Introducing main.sass stylesheet
Blender Cloud used main.css from Pillar

As we try to strip Blender Cloud-specific content from Pillar,
this commit brings three .sass files over to this repository.

There are still plenty of Blender Cloud classes all over Pillar,
they will be brought here over time.
2017-11-07 16:56:45 +01:00
047737ef41 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.
2017-10-25 15:43:16 +02:00
e86cc9df77 Remove deprecated classes 2017-10-18 20:06:11 +02:00
5dc4b398c2 updateTitle is no longer needed since we now have DocumentTitleAPI
taking care of titles in 0_navbar.js (part of tutti.min.js)
2017-10-05 15:33:50 +02:00