Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1# CREATED : 20130508 

2 

3def well( 

4 wellText='', 

5 wellSize='default', 

6 htmlId=False, 

7 htmlClass=False): 

8 """ *Get well. Use the well as a simple effect on an element to give it an inset effect.* 

9 

10 **Key Arguments** 

11 

12 - ``wellText`` -- the text to be displayed in the well 

13 - ``wellSize`` -- the size of the well [ "default" | "large" | "small" ] 

14  

15 

16 **Return** 

17 

18 - ``well`` -- the well """ 

19 

20 

21 if htmlId is False: 

22 htmlId = "" 

23 else: 

24 htmlId = """id="%(htmlId)s" """ % locals() 

25 

26 if htmlClass is False: 

27 htmlClass = "" 

28 

29 if wellSize == 'default': 

30 wellSize = '' 

31 else: 

32 wellSize = 'well-%(wellSize)s' % locals() 

33 well = """ 

34 <div class="well %(wellSize)s %(htmlClass)s" %(htmlId)s> 

35 %(wellText)s 

36 </div>""" % locals() 

37 return well