Skip to content

Commit b112fd0

Browse files
authored
Merge pull request #54813 from aireilly/OSDOCS-4592
OSDOCS-4592 - Create JIRA issues from docs.openshift pages
2 parents 0b36d8b + 2566588 commit b112fd0

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

_templates/_page_openshift.html.erb

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,22 @@
176176
</li>
177177
<% if (distro_key != "openshift-origin" && distro_key != "openshift-aro" && distro_key != "openshift-acs") %>
178178
<span text-align="right" style="float: right !important">
179-
<a href="https://github.com/openshift/openshift-docs/commits/<%= (distro_key == "openshift-enterprise") ? "enterprise-#{version}" : "dedicated-4" %>/<%= repo_path %>"><span class="material-icons-outlined" title="Page history">history</span></a>
179+
<a href="https://github.com/openshift/openshift-docs/commits/<%=
180+
((distro_key == "openshift-enterprise") ? "enterprise-#{version}"
181+
: (distro_key == "openshift-aro") ? "aro-work"
182+
: (distro_key=="openshift-dedicated" ) ? "dedicated-4"
183+
: "main" ) %>/<%= repo_path %>"><span class="material-icons-outlined" title="Page history">history</span></a>
180184
<%
181185
unless (unsupported_versions.include? version)
182186
%>
183-
<a href="https://github.com/openshift/openshift-docs/issues/new?title=<%= (distro_key == "openshift-enterprise") ? "[enterprise-#{version}] Issue in file #{repo_path}" : ((distro_key=="openshift-dedicated" ) ? "[dedicated] Issue in file #{repo_path}" : "[online] Issue in file #{repo_path}" ) %>">
187+
<a href="https://issues.redhat.com/secure/CreateIssueDetails!init.jspa?pid=12332330&issuetype=1&components=12367614&priority=4&summary=<%=
188+
((distro_key == "openshift-enterprise") ? "[enterprise-#{version}]+Issue+in+file+#{repo_path}"
189+
: (distro_key=="openshift-dedicated" ) ? "[dedicated-4]+Issue+in+file+#{repo_path}"
190+
: (distro_key=="microshift" ) ? "[microshift-#{version}]+Issue+in+file+#{repo_path}"
191+
: (distro_key=="openshift-aro" ) ? "[aro-#{version}]+Issue+in+file+#{repo_path}"
192+
: (distro_key=="openshift-online" ) ? "[online-#{version}]+Issue+in+file+#{repo_path}"
193+
: (distro_key=="openshift-rosa" ) ? "[rosa-#{version}]+Issue+in+file+#{repo_path}"
194+
: "Issue+in+file+#{repo_path}" ) %>">
184195
<span class="material-icons-outlined" title="Open an issue">bug_report</span>
185196
</a>
186197
<a href="javascript: void(0);" onclick="window.print()"><span class="material-icons-outlined" title="Print page (Save as PDF)">picture_as_pdf</span></a>

0 commit comments

Comments
 (0)