From 876d5e7a91f4bf903271c49240a1658f14551cf6 Mon Sep 17 00:00:00 2001 From: Ed Costello Date: Fri, 31 Aug 2012 15:20:10 -0400 Subject: [PATCH 1/3] DOCS-462 fix subnav and pre-fill Jira URL with docs project and summary --- themes/mongodb/layout.html | 13 +++++++++++-- themes/mongodb/static/mongodb-docs.css_t | 9 +++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/themes/mongodb/layout.html b/themes/mongodb/layout.html index 4d67ce8c591..5bcf5df8157 100644 --- a/themes/mongodb/layout.html +++ b/themes/mongodb/layout.html @@ -225,14 +225,23 @@ -
-{%- block relbar1 %}{{ relbar(false) }}{% endblock %} +
+
+ +
{%- endblock %} {%- block content %} diff --git a/themes/mongodb/static/mongodb-docs.css_t b/themes/mongodb/static/mongodb-docs.css_t index 76beafa06a5..a3612ed3ee8 100644 --- a/themes/mongodb/static/mongodb-docs.css_t +++ b/themes/mongodb/static/mongodb-docs.css_t @@ -483,11 +483,10 @@ input[type="text"]:disabled { div.search-db { position: absolute; - top: 54px; + top: 46px; right: 8px; width: 246px; height: 31px; -# background-image: url(http://media.mongodb.org/back-search-input.png); background-repeat: no-repeat; *z-index: 1; } @@ -624,3 +623,9 @@ div#header-db {background-repeat: repeat-x;} div#header-db div.split {float:left;} div.gsc-control-cse-en, div.gsc-control-cse {padding:0!important;} .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;} +div#etp {position:absolute;background:inherit;margin:0;top:87px;;padding:0;float:right;font-size:13px;right:10px;color:#C48C55} +div#etp ul {padding:0;margin:0;} +div#etp ul li {display:inline;list-style-type:none;font-size:13px;color:#C48C55;padding: 8px 1em 0 0;} +div#etp ul li a {color:#AA814D} +div#etp ul li:before {content:"|";padding-right:1em;color:#c48c55} +div#etp ul li:first-child:before {content:"";} From a8d55f0ff3cce44dfee2bf8a048efde330ba8f97 Mon Sep 17 00:00:00 2001 From: Ed Costello Date: Fri, 31 Aug 2012 15:21:42 -0400 Subject: [PATCH 2/3] DOCS-462 fix jira link --- themes/mongodb/layout.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/themes/mongodb/layout.html b/themes/mongodb/layout.html index 5bcf5df8157..4a9510cc674 100644 --- a/themes/mongodb/layout.html +++ b/themes/mongodb/layout.html @@ -23,8 +23,13 @@ {%- set titlesuffix = "" %} {%- endif %} -{%- macro githublink() %} -Edit this Page +{%- macro githublink() -%} +Edit this Page +{%- endmacro -%} + +{%- macro jiralink() -%} +{%- set jirasummary = "Problem with {{pagename}}.txt" -%} +https://jira.mongodb.org/secure/CreateIssueDetails!init.jspa?pid=10380&issuetype=issuetype100001&summary={{ jirasummary | escape }} {%- endmacro -%} {%- macro relbar(show_logo=True) %} @@ -37,7 +42,7 @@ {{ accesskey(rellink[2]) }}>{{ rellink[3] }} {%- if not loop.first %}{{ reldelim2 }}{% endif %} {%- endfor #} -
  • | {{ githublink() }}
  • +
  • | {{- githublink() -}}
  • | GitHub
  • Jira
  • {%- if show_logo %} @@ -234,12 +239,9 @@
    From 39239114555987803dae64a23abd56bc2f51fd55 Mon Sep 17 00:00:00 2001 From: Ed Costello Date: Tue, 4 Sep 2012 15:50:22 -0400 Subject: [PATCH 3/3] DOCS-462 fix css for nav bar, add direct link to new jira ticket --- themes/mongodb/layout.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/themes/mongodb/layout.html b/themes/mongodb/layout.html index 4a9510cc674..bb0b30990e9 100644 --- a/themes/mongodb/layout.html +++ b/themes/mongodb/layout.html @@ -28,8 +28,7 @@ {%- endmacro -%} {%- macro jiralink() -%} -{%- set jirasummary = "Problem with {{pagename}}.txt" -%} -https://jira.mongodb.org/secure/CreateIssueDetails!init.jspa?pid=10380&issuetype=issuetype100001&summary={{ jirasummary | escape }} +https://jira.mongodb.org/secure/CreateIssueDetails!init.jspa?pid=10380&issuetype=4&priority=4&summary=Comment+on%3a+%22{{ pagename | escape }}%2Etxt%22 {%- endmacro -%} {%- macro relbar(show_logo=True) %}