Merge lp:~annegentle/nova/versiontalkbubble into lp:~hudson-openstack/nova/trunk

Proposed by Anne Gentle
Status: Merged
Approved by: Rick Clark
Approved revision: 796
Merged at revision: 849
Proposed branch: lp:~annegentle/nova/versiontalkbubble
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 181 lines (+157/-1)
2 files modified
doc/source/_static/tweaks.css (+147/-0)
doc/source/_theme/layout.html (+10/-1)
To merge this branch: bzr merge lp:~annegentle/nova/versiontalkbubble
Reviewer Review Type Date Requested Status
Rick Clark (community) Approve
Soren Hansen (community) Approve
Review via email: mp+53105@code.launchpad.net

Description of the change

Adding a talk bubble to the nova.openstack.org site that points readers to the 2011.1 site and the docs.openstack.org site - similar to the swift.openstack.org site. I believe it helps people see more sites are available, plus they can get to the Bexar site if they want to. Going forward it'll be nice to use this talk bubble to point people to the trunk site from released sites.

To post a comment you must log in.
Revision history for this message
Soren Hansen (soren) wrote :

Great idea, although the link you refer to in the speech bubble is actually a link to trunk's docs (http://nova.openstack.org/)

review: Needs Fixing
795. By Anne Gentle

Fixes link to 2011.1 instad of just to trunk docs

796. By Anne Gentle

Merged my doc changes with trunk

Revision history for this message
Anne Gentle (annegentle) wrote :

Thanks for catching that! All fixed up.

Revision history for this message
Soren Hansen (soren) wrote :

lgtm, thanks!

review: Approve
Revision history for this message
Rick Clark (dendrobates) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/source/_static/tweaks.css'
2--- doc/source/_static/tweaks.css 2010-11-11 22:32:24 +0000
3+++ doc/source/_static/tweaks.css 2011-03-14 14:56:58 +0000
4@@ -69,3 +69,150 @@
5 .tweet_list li .tweet_avatar {
6 float: left;
7 }
8+
9+/* ------------------------------------------
10+PURE CSS SPEECH BUBBLES
11+by Nicolas Gallagher
12+- http://nicolasgallagher.com/pure-css-speech-bubbles/
13+
14+http://nicolasgallagher.com
15+http://twitter.com/necolas
16+
17+Created: 02 March 2010
18+Version: 1.1 (21 October 2010)
19+
20+Dual licensed under MIT and GNU GPLv2 © Nicolas Gallagher
21+------------------------------------------ */
22+/* THE SPEECH BUBBLE
23+------------------------------------------------------------------------------------------------------------------------------- */
24+
25+/* THE SPEECH BUBBLE
26+------------------------------------------------------------------------------------------------------------------------------- */
27+
28+.triangle-border {
29+ position:relative;
30+ padding:15px;
31+ margin:1em 0 3em;
32+ border:5px solid #BC1518;
33+ color:#333;
34+ background:#fff;
35+
36+ /* css3 */
37+ -moz-border-radius:10px;
38+ -webkit-border-radius:10px;
39+ border-radius:10px;
40+}
41+
42+/* Variant : for left positioned triangle
43+------------------------------------------ */
44+
45+.triangle-border.left {
46+ margin-left:30px;
47+}
48+
49+/* Variant : for right positioned triangle
50+------------------------------------------ */
51+
52+.triangle-border.right {
53+ margin-right:30px;
54+}
55+
56+/* THE TRIANGLE
57+------------------------------------------------------------------------------------------------------------------------------- */
58+
59+.triangle-border:before {
60+ content:"";
61+ display:block; /* reduce the damage in FF3.0 */
62+ position:absolute;
63+ bottom:-40px; /* value = - border-top-width - border-bottom-width */
64+ left:40px; /* controls horizontal position */
65+ width:0;
66+ height:0;
67+ border:20px solid transparent;
68+ border-top-color:#BC1518;
69+}
70+
71+/* creates the smaller triangle */
72+.triangle-border:after {
73+ content:"";
74+ display:block; /* reduce the damage in FF3.0 */
75+ position:absolute;
76+ bottom:-26px; /* value = - border-top-width - border-bottom-width */
77+ left:47px; /* value = (:before left) + (:before border-left) - (:after border-left) */
78+ width:0;
79+ height:0;
80+ border:13px solid transparent;
81+ border-top-color:#fff;
82+}
83+
84+/* Variant : top
85+------------------------------------------ */
86+
87+/* creates the larger triangle */
88+.triangle-border.top:before {
89+ top:-40px; /* value = - border-top-width - border-bottom-width */
90+ right:40px; /* controls horizontal position */
91+ bottom:auto;
92+ left:auto;
93+ border:20px solid transparent;
94+ border-bottom-color:#BC1518;
95+}
96+
97+/* creates the smaller triangle */
98+.triangle-border.top:after {
99+ top:-26px; /* value = - border-top-width - border-bottom-width */
100+ right:47px; /* value = (:before right) + (:before border-right) - (:after border-right) */
101+ bottom:auto;
102+ left:auto;
103+ border:13px solid transparent;
104+ border-bottom-color:#fff;
105+}
106+
107+/* Variant : left
108+------------------------------------------ */
109+
110+/* creates the larger triangle */
111+.triangle-border.left:before {
112+ top:10px; /* controls vertical position */
113+ left:-30px; /* value = - border-left-width - border-right-width */
114+ bottom:auto;
115+ border-width:15px 30px 15px 0;
116+ border-style:solid;
117+ border-color:transparent #BC1518;
118+}
119+
120+/* creates the smaller triangle */
121+.triangle-border.left:after {
122+ top:16px; /* value = (:before top) + (:before border-top) - (:after border-top) */
123+ left:-21px; /* value = - border-left-width - border-right-width */
124+ bottom:auto;
125+ border-width:9px 21px 9px 0;
126+ border-style:solid;
127+ border-color:transparent #fff;
128+}
129+
130+/* Variant : right
131+------------------------------------------ */
132+
133+/* creates the larger triangle */
134+.triangle-border.right:before {
135+ top:10px; /* controls vertical position */
136+ right:-30px; /* value = - border-left-width - border-right-width */
137+ bottom:auto;
138+ left:auto;
139+ border-width:15px 0 15px 30px;
140+ border-style:solid;
141+ border-color:transparent #BC1518;
142+}
143+
144+/* creates the smaller triangle */
145+.triangle-border.right:after {
146+ top:16px; /* value = (:before top) + (:before border-top) - (:after border-top) */
147+ right:-21px; /* value = - border-left-width - border-right-width */
148+ bottom:auto;
149+ left:auto;
150+ border-width:9px 0 9px 21px;
151+ border-style:solid;
152+ border-color:transparent #fff;
153+}
154+
155
156=== modified file 'doc/source/_theme/layout.html'
157--- doc/source/_theme/layout.html 2010-11-05 22:52:59 +0000
158+++ doc/source/_theme/layout.html 2011-03-14 14:56:58 +0000
159@@ -71,12 +71,21 @@
160 </p>
161 </div>
162 <script type="text/javascript">$('#searchbox').show(0);</script>
163+
164+ <p class="triangle-border right">
165+ Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read <a href="http://nova.openstack.org/2011.1">Nova 2011.1 docs</a> or <a href="http://docs.openstack.org">all OpenStack docs</a> too.
166+ </p>
167+
168 {%- endif %}
169
170 {%- if pagename == "index" %}
171- <h3>{{ _('Twitter Feed') }}</h3>
172+
173+
174+ <h3>{{ _('Twitter Feed') }}</h3>
175 <div id="twitter_feed" class='twitter_feed'></div>
176 {%- endif %}
177+
178+
179
180
181 {%- endblock %}