Skip to content

Commit 22f0c52

Browse files
author
Sam Kleinman
committed
merge: DOCS-462
2 parents 5f53e02 + 3923911 commit 22f0c52

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

themes/mongodb/layout.html

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@
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+
https://jira.mongodb.org/secure/CreateIssueDetails!init.jspa?pid=10380&issuetype=4&priority=4&summary=Comment+on%3a+%22{{ pagename | escape }}%2Etxt%22
2832
{%- endmacro -%}
2933

3034
{%- macro relbar(show_logo=True) %}
@@ -37,7 +41,7 @@
3741
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
3842
{%- if not loop.first %}{{ reldelim2 }}{% endif %}</li>
3943
{%- endfor #}
40-
<li class="right">| {{ githublink() }} </li>
44+
<li class="right">| {{- githublink() -}} </li>
4145
<li class="right">| <a href="http://github.com/mongodb/docs" title="Fork the documentation on GitHub to contribute.">GitHub</a></li>
4246
<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>
4347
{%- if show_logo %}
@@ -225,14 +229,20 @@
225229
</ul>
226230
</div>
227231
</div>
228-
<div class="search-db"><gcse:searchbox></gcse:searchbox></div>
229232
<div id="header-db" class="spread">
230233
<div class="split">
231234
<div id="logo">
232235
<div><a href="http://docs.mongodb.org/"><img src="{{ pathto('_static', 1) }}/logo-mongodb.png" width="190" height="55" alt="mongoDB" /></a></div>
233236
</div>
234237
</div>
235-
{%- block relbar1 %}{{ relbar(false) }}{% endblock %}
238+
<div class="search-db"><gcse:searchbox></gcse:searchbox></div>
239+
<div id="etp">
240+
<ul>
241+
<li>{{ githublink() }}</li>
242+
<li><a href="http://github.com/mongodb/docs" target="_blank" title="Fork the documentation on GitHub and contribute.">GitHub</a></li>
243+
<li><a href="{{ jiralink() }}" target="_blank" title="Report a problem with {{pagename|e}}.txt on Jira">Report a problem</a></li>
244+
</ul>
245+
</div>
236246
</div>
237247
{%- endblock %}
238248
{%- block content %}

themes/mongodb/static/mongodb-docs.css_t

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,11 +483,10 @@ input[type="text"]:disabled {
483483

484484
div.search-db {
485485
position: absolute;
486-
top: 54px;
486+
top: 46px;
487487
right: 8px;
488488
width: 246px;
489489
height: 31px;
490-
# background-image: url(http://media.mongodb.org/back-search-input.png);
491490
background-repeat: no-repeat;
492491
*z-index: 1;
493492
}
@@ -624,3 +623,9 @@ div#header-db {background-repeat: repeat-x;}
624623
div#header-db div.split {float:left;}
625624
div.gsc-control-cse-en, div.gsc-control-cse {padding:0!important;}
626625
.cse .gsc-search-button input.gsc-search-button-v2,input.gsc-search-button-v2 {height:13px;margin-top:0px!important;min-width:13px;padding:6px 27px;width:13px;}
626+
div#etp {position:absolute;background:inherit;margin:0;top:87px;;padding:0;float:right;font-size:13px;right:10px;color:#C48C55}
627+
div#etp ul {padding:0;margin:0;}
628+
div#etp ul li {display:inline;list-style-type:none;font-size:13px;color:#C48C55;padding: 8px 1em 0 0;}
629+
div#etp ul li a {color:#AA814D}
630+
div#etp ul li:before {content:"|";padding-right:1em;color:#c48c55}
631+
div#etp ul li:first-child:before {content:"";}

0 commit comments

Comments
 (0)