-
- Downloads
Update the token expiration banner
Reviews in 16.0-17.0 backports have introduced a few changes and we would like to bring those to master: - hide banner depending on `GITLAB_DISABLE_TOKEN_EXPIRATION_BANNER` env variable - hide banner on tests - updated banner message and use a namespace - correct GitLab version check
Showing
- app/helpers/access_tokens_helper.rb 4 additions, 0 deletionsapp/helpers/access_tokens_helper.rb
- app/views/shared/_token_expiration_banner.html.haml 2 additions, 3 deletionsapp/views/shared/_token_expiration_banner.html.haml
- doc/administration/environment_variables.md 1 addition, 0 deletionsdoc/administration/environment_variables.md
- lib/gitlab/auth/token_expiration_banner.rb 30 additions, 0 deletionslib/gitlab/auth/token_expiration_banner.rb
- locale/gitlab.pot 3 additions, 3 deletionslocale/gitlab.pot
- spec/components/pajamas/broadcast_banner_component_spec.rb 0 additions, 2 deletionsspec/components/pajamas/broadcast_banner_component_spec.rb
- spec/helpers/access_tokens_helper_spec.rb 8 additions, 0 deletionsspec/helpers/access_tokens_helper_spec.rb
- spec/lib/gitlab/auth/token_expiration_banner_spec.rb 62 additions, 0 deletionsspec/lib/gitlab/auth/token_expiration_banner_spec.rb
- spec/views/shared/_token_expiration_banner.html.haml_spec.rb 3 additions, 16 deletionsspec/views/shared/_token_expiration_banner.html.haml_spec.rb
lib/gitlab/auth/token_expiration_banner.rb
0 → 100644
Please register or sign in to comment