Commit 912b2260 authored by Hiroyuki Sato's avatar Hiroyuki Sato 🇯🇵

機能一覧ページのリンク切れを修正

parent b2437531
Pipeline #67690234 passed with stages
in 12 minutes and 59 seconds
......@@ -17,9 +17,11 @@
= link_to "ブログ記事(英語)", feature.link, target: '_blank'
- elsif (feature.link.to_s.start_with?("https://about.gitlab.com"))
= link_to "機能の詳細(英語)", feature.link, target: '_blank'
- elsif (feature.link.to_s.start_with?("/features", "/features"))
= link_to "機能の詳細", feature.link
- elsif (feature.link.to_s.start_with?("/20", "/20"))
= link_to "ブログ記事", feature.link
- elsif (feature.link.to_s.start_with?("/20"))
= link_to "ブログ記事(英語)", "https://about.gitlab.com#{feature.link}", target: '_blank'
- elsif (feature.link.to_s.start_with?("/features"))
= link_to "機能の詳細(英語)", "https://about.gitlab.com#{feature.link}", target: '_blank'
- elsif (feature.link.to_s.start_with?("/"))
= link_to "#{feature.link_description}(英語)", "https://about.gitlab.com#{feature.link}", target: '_blank'
- else
= link_to feature.link_description, feature.link
......@@ -15,9 +15,11 @@
= link_to "ブログ記事(英語)", feature.link, target: '_blank'
- elsif (feature.link.to_s.start_with?("https://about.gitlab.com"))
= link_to "機能の詳細(英語)", feature.link, target: '_blank'
- elsif (feature.link.to_s.start_with?("/features", "/features"))
= link_to "機能の詳細", feature.link
- elsif (feature.link.to_s.start_with?("/20", "/20"))
= link_to "ブログ記事", feature.link
- elsif (feature.link.to_s.start_with?("/20"))
= link_to "ブログ記事(英語)", "https://about.gitlab.com#{feature.link}", target: '_blank'
- elsif (feature.link.to_s.start_with?("/features"))
= link_to "機能の詳細(英語)", "https://about.gitlab.com#{feature.link}", target: '_blank'
- elsif (feature.link.to_s.start_with?("/"))
= link_to "#{feature.link_description}(英語)", "https://about.gitlab.com#{feature.link}", target: '_blank'
- else
= link_to feature.link_description, feature.link
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment