Commit graph

18 commits

Author SHA1 Message Date
Luke Bennett
6b3966407b
Add tests for nav sidebar collapsed on render
Adds rspec view tests that expect the nav sidebar
to have a class that will cause the nav sidebar
to be rendered collapsed with or without js.

Tests the nav sidebar on the admin, group,
instance statistics, user profile and project
sidebars.
2019-03-05 00:58:21 +11:00
Simon Knox
a1e0f387bf Move highlight themes to subfolder 2019-02-22 12:07:14 +11:00
Simon Knox
5996fd145f Only load selected syntax highlight CSS
Compile highlight CSS separately
Move highlight-specific mixins out of mixins.scss
Rename solarized themes to match theme name as this was a smaller
change than changing all instances to snake_case
2019-02-15 21:10:19 +11:00
Francisco Javier López
740f07b1ec
Fixed bug when external wiki is enabled
When the external wiki is enabled, the internal wiki link is replaced
by the external wiki url. But the internal wiki is still accessible.
In this change the external wiki will have its own tab in the sidebar
and only if the services are disabled the tab (and access rights)
will not be displayed.
2019-01-31 16:51:53 +01:00
Shinya Maeda
9b823af4fd Remove releases_page feature flag
We introduced releases_page feature flag.
Given this feature is deemed stable, we should remove
this flag before 19th.
2019-01-11 13:26:09 +09:00
Filipa Lacerda
9004e18e6e Adds releases index route
Renders empty index page
Adds Releases entry to the navigation bar behind a feature flag
Renders 404 when feature flag for releases is not enabled
2018-12-18 11:01:55 +01:00
Rémy Coutable
1209332a08
Replace admin sidebar feature spec with view spec
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-12-04 17:35:40 +01:00
Robert Speicher
c0fcf120b7
Convert "New menu" feature spec to a view spec
A feature spec to test this simple behavior takes about 2 minutes to run
in CI. Everything it's testing is conditionals and `href` attributes,
which can easily be done in a view spec that runs in about 8 seconds.
2018-11-26 11:19:15 -06:00
Tim Zallmann
f7ac538425 DNS Prefetching + Preconnect of assets_host (CDN Domain) 2018-07-26 15:00:18 +00:00
Lukas Eipert
762672fd26 Project Sidebar: Split CI/CD into CI/CD and Operations 2018-05-16 11:16:33 +00:00
Felipe Artur
dd071c4b6e Bring one group board to CE 2018-03-03 12:56:17 -03:00
Phil Hughes
360b60bea7
CE backport of new-sidebar-boards 2017-09-13 11:08:48 +01:00
Phil Hughes
ddb3692a22 Clean up new navigation templates 2017-09-06 10:58:24 +00:00
Sean McGivern
5883ce95ef current_application_settings belongs on Gitlab::CurrentSettings
The initializers including this were doing so at the top level, so every object
loaded after them had a `current_application_settings` method. However, if
someone had rack-attack enabled (which was loaded before these initializers), it
would try to load the API, and fail, because `Gitlab::CurrentSettings` didn't
have that method.

To fix this:

1. Don't include `Gitlab::CurrentSettings` at the top level. We do not need
   `Object.new.current_application_settings` to work.
2. Make `Gitlab::CurrentSettings` explicitly `extend self`, as we already use it
   like that in several places.
3. Change the initializers to use that new form.
2017-08-31 13:38:33 +01:00
Robert Speicher
9513bd18c4 Ensure all project factories use :repository trait or :empty_project 2017-08-01 14:51:52 -04:00
Grzegorz Bizon
c0ff8b6d96 Fix container registry navigation menu highlights 2017-04-18 20:49:52 +00:00
Yorick Peterse
0ba03d7eb1
Removed data-user-is view code
With events no longer being cached this is no longer needed.
2016-11-25 13:45:34 +01:00
Robert Speicher
01fc7633d0 Update Hamlit to 2.6.1
Fixes gitlab-org/gitlab-ce#21025 and gitlab-org/gitlab-ce#21017
2016-08-18 13:26:32 -05:00