Skip to content
Snippets Groups Projects
Commit b0d11836 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis
Browse files

Conditionally hide the PDF link in comparison pages

parent 146c8c6d
Branches andrey-remove-group-caching
No related tags found
1 merge request!5984Conditionally hide the PDF link in comparison pages
Pipeline #
Loading
Loading
@@ -369,7 +369,8 @@ Notes:
- Although the file is named with GitLab being first, the title should have the
competitor name first.
- The `pdf` name should be similar to the yaml file name, but with dashes. In
short, it has to match the HTML page name in step 2.
short, it has to match the HTML page name in step 2. If you want to omit the
PDF link altogether, set its value to `null`, like: `pdf: 'null'`.
- Remember to update the date every time you make a change.
- The competitor's logo (`competitor_two`) can be `svg` or `png`. Save it in
`source/images/comparison/competitor-logo.svg`.
Loading
Loading
Loading
Loading
@@ -82,7 +82,8 @@
%p.clearfix
Last updated:
= comparison_block.last_updated
= link_to "Download as PDF", "/comparison/pdfs/#{comparison_block.pdf}", class: "featured-item-button pull-right", download: "Comparison PDF", target: "_blank"
- if (comparison_block.pdf != "null")
= link_to "Download as PDF", "/comparison/pdfs/#{comparison_block.pdf}", class: "featured-item-button pull-right", download: "Comparison PDF", target: "_blank"
%p
Since GitLab fans wrote most of the text here there is a pro-GitLab bias. Nonetheless we try hard to ensure the
comparisons are fair and factual. Please also add things that are great in other products but missing in GitLab.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment