diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2020-12-09 17:39:26 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2020-12-09 17:42:53 +0300 |
commit | eacc6ee9f10d8a8a318b1fd18b6b76514b8768c1 (patch) | |
tree | 03d632e1470e1d0c67d9afa402d5f54974583e74 /layouts | |
parent | 4a0537dfe9609d8feaf7b3e8b96c489c4428807f (diff) |
Add Omnibus-specific CTA trial link
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/cta_omnibus.html | 3 | ||||
-rw-r--r-- | layouts/header.html | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/layouts/cta_omnibus.html b/layouts/cta_omnibus.html new file mode 100644 index 00000000..2ff33d99 --- /dev/null +++ b/layouts/cta_omnibus.html @@ -0,0 +1,3 @@ +<a class="btn btn-nav-cta" href="https://about.gitlab.com/free-trial/self-managed/" target="_blank" rel="noopener noreferrer"> + Get free trial +</a> diff --git a/layouts/header.html b/layouts/header.html index 5e17af98..5182fe98 100644 --- a/layouts/header.html +++ b/layouts/header.html @@ -45,7 +45,12 @@ <% end %> <% end %> <li class="nav-item"> - <%= render '/cta.*' %> + <!-- Check if the path is /omnibus and show a different CTA --> + <% if @item.identifier.to_s.split('/')[1] == 'omnibus' %> + <%= render '/cta_omnibus.*' %> + <% else %> + <%= render '/cta.*' %> + <% end %> </li> </ul> </div> |