22
22
.. moduleauthor:: Luke Macken <[email protected] >
23
23
"""
24
24
25
+ import tw2 .core
25
26
import moksha .common .utils
26
27
27
28
from mdemos .menus import (
28
29
MokshaMenu , MokshaContextualMenu ,
29
30
)
30
31
32
+ menu_images = tw2 .core .DirLink (filename = "public" , modname = __name__ )
33
+
34
+
31
35
class MokshaContextMenu (MokshaContextualMenu ):
32
36
33
37
@classmethod
34
38
def default (cls , * args , ** kw ):
35
39
return """
36
40
<a rel="text">
37
- <img src="/images /moksha-icon.png" style="position:absolute;margin-top:-20px; margin-left:-25px;margin-bottom:10px"/><br/>
41
+ <img src="/tw2/resources/mdemos.menus.default/public /moksha-icon.png" style="position:absolute;margin-top:-20px; margin-left:-25px;margin-bottom:10px"/><br/>
38
42
</a>
39
43
<a href="/widget">Documentation</a>
40
44
<a href="https://fedorahosted.org/moksha/report/3">Tickets</a>
@@ -49,7 +53,7 @@ class MokshaDefaultMenu(MokshaMenu):
49
53
def widgets (cls , * args , ** kw ):
50
54
menu = """
51
55
<a rel="text">
52
- <img src="/images /block.png" style="position:absolute;margin-top:-20px; margin-left:-25px;margin-bottom:10px"/>
56
+ <img src="/tw2/resources/mdemos.menus.default/public /block.png" style="position:absolute;margin-top:-20px; margin-left:-25px;margin-bottom:10px"/>
53
57
<br/>
54
58
</a>
55
59
"""
@@ -74,7 +78,7 @@ def widgets(cls, *args, **kw):
74
78
def moksha (cls , * args , ** kw ):
75
79
return """
76
80
<a rel="text">
77
- <img src="/images /moksha-icon.png" style="position:absolute;margin-top:-20px; margin-left:-25px;margin-bottom:10px"/><br>
81
+ <img src="/tw2/resources/mdemos.menus.default/public /moksha-icon.png" style="position:absolute;margin-top:-20px; margin-left:-25px;margin-bottom:10px"/><br>
78
82
<br>Moksha is a platform for creating live collaborative web applications.<br><br>
79
83
</a>
80
84
<a rel="separator"></a>
@@ -101,7 +105,7 @@ def fedora(cls, *args, **kw):
101
105
}
102
106
menu = """
103
107
<a rel="text">
104
- <img src="/images /fedora-icon.png" style="position:absolute;margin-top:-20px; margin-left:-25px;margin-bottom:10px"/><br>
108
+ <img src="/tw2/resources/mdemos.menus.default/public /fedora-icon.png" style="position:absolute;margin-top:-20px; margin-left:-25px;margin-bottom:10px"/><br>
105
109
</a>
106
110
<a rel="separator"></a>
107
111
"""
0 commit comments