Skip to content

Commit 2566588

Browse files
committed
adding create JIRA bug link
1 parent c7442a3 commit 2566588

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
@@ -175,11 +175,22 @@
175175
</li>
176176
<% if (distro_key != "openshift-origin" && distro_key != "openshift-aro" && distro_key != "openshift-acs") %>
177177
<span text-align="right" style="float: right !important">
178-
<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>
178+
<a href="https://github.com/openshift/openshift-docs/commits/<%=
179+
((distro_key == "openshift-enterprise") ? "enterprise-#{version}"
180+
: (distro_key == "openshift-aro") ? "aro-work"
181+
: (distro_key=="openshift-dedicated" ) ? "dedicated-4"
182+
: "main" ) %>/<%= repo_path %>"><span class="material-icons-outlined" title="Page history">history</span></a>
179183
<%
180184
unless (unsupported_versions.include? version)
181185
%>
182-
<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}" ) %>">
186+
<a href="https://issues.redhat.com/secure/CreateIssueDetails!init.jspa?pid=12332330&issuetype=1&components=12367614&priority=4&summary=<%=
187+
((distro_key == "openshift-enterprise") ? "[enterprise-#{version}]+Issue+in+file+#{repo_path}"
188+
: (distro_key=="openshift-dedicated" ) ? "[dedicated-4]+Issue+in+file+#{repo_path}"
189+
: (distro_key=="microshift" ) ? "[microshift-#{version}]+Issue+in+file+#{repo_path}"
190+
: (distro_key=="openshift-aro" ) ? "[aro-#{version}]+Issue+in+file+#{repo_path}"
191+
: (distro_key=="openshift-online" ) ? "[online-#{version}]+Issue+in+file+#{repo_path}"
192+
: (distro_key=="openshift-rosa" ) ? "[rosa-#{version}]+Issue+in+file+#{repo_path}"
193+
: "Issue+in+file+#{repo_path}" ) %>">
183194
<span class="material-icons-outlined" title="Open an issue">bug_report</span>
184195
</a>
185196
<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)