Skip to content

Commit a8d55f0

Browse files
author
Ed Costello
committed
DOCS-462 fix jira link
1 parent 876d5e7 commit a8d55f0

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

themes/mongodb/layout.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@
2323
{%- set titlesuffix = "" %}
2424
{%- endif %}
2525

26-
{%- macro githublink() %}
27-
<a href="https://github.com/mongodb/docs/blob/{{theme_branch}}/source/{{pagename}}.txt" target="_blank">Edit this Page</a>
26+
{%- macro githublink() -%}
27+
<a href="https://github.com/mongodb/docs/blob/{{theme_branch}}/source/{{pagename}}.txt" target="_blank" title="Edit {{pagename}}.txt on github">Edit this Page</a>
28+
{%- endmacro -%}
29+
30+
{%- macro jiralink() -%}
31+
{%- set jirasummary = "Problem with {{pagename}}.txt" -%}
32+
https://jira.mongodb.org/secure/CreateIssueDetails!init.jspa?pid=10380&issuetype=issuetype100001&summary={{ jirasummary | escape }}
2833
{%- endmacro -%}
2934

3035
{%- macro relbar(show_logo=True) %}
@@ -37,7 +42,7 @@
3742
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
3843
{%- if not loop.first %}{{ reldelim2 }}{% endif %}</li>
3944
{%- endfor #}
40-
<li class="right">| {{ githublink() }} </li>
45+
<li class="right">| {{- githublink() -}} </li>
4146
<li class="right">| <a href="http://github.com/mongodb/docs" title="Fork the documentation on GitHub to contribute.">GitHub</a></li>
4247
<li class="right"><a href="http://jira.mongodb.org/browse/DOCS" title="Open a case in Jira to report a problem with the documentation.">Jira</a></li>
4348
{%- if show_logo %}
@@ -234,12 +239,9 @@
234239
<div class="search-db"><gcse:searchbox></gcse:searchbox></div>
235240
<div id="etp">
236241
<ul>
237-
{#- for rellink in rellinks %}
238-
<li><a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}"
239-
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a></li>
240-
{%- endfor #}
241242
<li>{{ githublink() }}</li>
242-
<li><a href="http://jira.mongodb.org/browse/DOCS" title="Open a case in Jira to report a problem with the documentation.">Report a problem</a></li>
243+
<li><a href="http://github.com/mongodb/docs" target="_blank" title="Fork the documentation on GitHub and contribute.">GitHub</a></li>
244+
<li><a href="{{ jiralink() }}" target="_blank" title="Report a problem with {{pagename|e}}.txt on Jira">Report a problem</a></li>
243245
</ul>
244246
</div>
245247
</div>

0 commit comments

Comments
 (0)