Commit graph

23 commits

Author SHA1 Message Date
Alexandru Croitor
77985826d9 Show header and footer system messages in email
* Add email_header_and_footer_enabled flag to appearances table
* Set email_header_and_footer_enabled default value to false
* Add checkbox to appearance to toggle show header and footer in emails
* Add email_header_and_footer_enabled to allowed params in controller
* Add header and footer messages to the html and text email layouts
* Remove the color styling for emails header and footer
* Add empty_mailer layout for emails without layout,
to have the header and footer applied
2019-02-27 22:07:50 +02:00
Douwe Maan
28e1739a3f Port EE System Header And Footer feature to CE
remove EE specific code
remove EE licence checks
move migration from EE to CE folder structure
move specs from EE to CE folder structure
remove EE specific flag specs
2019-02-21 17:55:51 +02:00
joola
8617954dad Replace useless divs with flex layout in navbar
Notable changes proposed by @pslaughter
2019-02-12 17:42:08 +00:00
Stan Hu
7036f75f67 Use system paths for appearance logos
When object storage is enabled, the logos used to customize a GitLab
appearance causes the time-limited URLs to be used. We fix this
by forcing all of these URLs to use the /uploads/-/system prefix
so that they will always be proxied through GitLab.

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6778
2018-12-25 08:22:34 -08:00
Yorick Peterse
64bcdb9eba
Move default brand title to a method
This moves the default brand title in AppearancesHelper#brand_title to a
separate method, allowing EE to redefine it without having to redefine
the entire #brand_title method.
2018-12-06 17:14:12 +01:00
gfyoung
1993a4449a Enable frozen string for app/helpers/**/*.rb
Partially addresses #47424.
2018-09-06 17:33:46 -07:00
André Luís
f8049f4e26 Backport changes in EE MR 4972: System Header and Footer 2018-04-02 14:27:12 +00:00
Markus Koller
b8a3931925
Add custom brand text on new project pages 2017-12-04 17:22:59 +01:00
Drew Blessing
0332356d92 When a custom header logo is present, don't show GitLab type logo
In the new navigation header, when a user uploads a custom header
logo GitLab will still show the 'GitLab' type logo. This is often
undesirable as the user may want to upload a logo with their own
name present. This change will toggle the GitLab type logo if a
custom header logo is present.
2017-11-15 15:35:24 -06:00
Tim Zallmann
55f772bb98 Resolve "Better SVG Usage in the Frontend" 2017-09-22 08:39:47 +00:00
Yorick Peterse
26bb50412c
Cache Appearance instances in Redis
This caches the result of Appearance.first in a similar fashion to how
ApplicationSetting instances are cached. We also add some NOT NULL
constraints to the table and correct the timestamp types.

Fixes gitlab-org/gitlab-ce#36066, fixes gitlab-org/gitlab-ce#31698
2017-08-10 12:45:49 +02:00
Nick Thomas
9920551536 Enable CacheMarkdownField for the remaining models
This commit alters views for the following models to use the markdown cache if
present:

* AbuseReport
* Appearance
* ApplicationSetting
* BroadcastMessage
* Group
* Issue
* Label
* MergeRequest
* Milestone
* Project

At the same time, calls to `escape_once` have been moved into the `single_line`
Banzai pipeline, so they can't be missed out by accident and the work is done
at save, rather than render, time.
2016-10-07 02:54:26 +01:00
Douwe Maan
6a355d451e Improve performance of MR show page 2016-08-18 19:08:59 -05:00
Annabel Dunstone
c57471ddb4 Add new stopwatch and commit icons; rename custom icon helper; fix commit pipeline layout 2016-07-12 14:52:59 -05:00
Phil Hughes
4ddcac8ca8 Added blank state to issues 2016-07-05 09:06:38 +01:00
Annabel Dunstone
f3637ed782 Start adding SVG icons 2016-06-08 12:56:02 -05:00
Zeger-Jan van de Weg
9a2869ab46 Branded login page also in CE
The only major difference with the EE version is the change from a light and dark logo to only a header logo
The dark logo wasn't used anyway, so it seemed to make sense to me to rename the field to the actual function of it
2016-02-26 15:50:51 +01:00
Job van der Voort
dd0552c36d Animate the logo on hover
The logo is now rendered as pure SVG, rather than image referencing a
svg. The SVG has an id and the shapes of the logo have a shared class.
The shapes change their fill color on hover with a transition.
2015-10-21 08:59:30 +02:00
Dmitriy Zaporozhets
f5e0e5c0a3
Replace old logo with new one
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-06-19 16:59:16 +02:00
Dmitriy Zaporozhets
ee343661e1 Get rid of black logo 2015-02-24 23:17:11 -08:00
Dmitriy Zaporozhets
6e559be6c6 Refactor header logo and setup expectation on it size 2015-02-24 22:58:47 -08:00
Dmitriy Zaporozhets
62d2aed036
Improve login page behaviour
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-07-13 20:56:29 +03:00
Dmitriy Zaporozhets
8c15fd0014
Rename brand helper
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-07-11 17:16:44 +03:00
Renamed from app/helpers/brand_helper.rb (Browse further)