Attachment 'starshine.py'
Download 1 # -*- coding: iso-8859-1 -*-
2 """
3 MoinMoin starshine theme (dark) - thanks to Heather Stern.
4
5 @copyright: 2003 by ThomasWaldmann (LinuxWiki:ThomasWaldmann)
6 @license: GNU GPL, see COPYING for details.
7 """
8
9 from classic import Theme as ThemeBase
10
11 class Theme(ThemeBase):
12 """ This is the starshine theme. """
13
14 name = 'starshine'
15
16 _=lambda x: x # dummy function for i18n
17 icons = {
18 # key alt filename of icon w h
19 # -------------------------------------------------------------------
20 # navibar
21 'help': ( "%(page_help_contents)s", "moin-help.png", 21, 32),
22 'find': ( "%(page_find_page)s", "moin-find.png", 21, 32),
23 'diff': (_("Diffs"), "moin-diff.png", 21, 32),
24 'info': (_("Info"), "moin-info.png", 21, 32),
25 'edit': (_("Edit"), "moin-edit.png", 21, 32),
26 'unsubscribe':(_("Unsubscribe"), "moin-unsubscribe.png", 21, 32),
27 'subscribe': (_("Subscribe"), "moin-subscribe.png",21, 32),
28 # XXX FIXME: the RAW icon is still missing, so we use XML ...
29 'raw': (_("Raw"), "moin-xml.png", 21, 32),
30 'xml': (_("XML"), "moin-xml.png", 21, 32),
31 'print': (_("Print"), "moin-print.png", 21, 32),
32 'view': (_("View"), "moin-show.png", 21, 32),
33 'home': (_("Home"), "moin-home.png", 21, 32),
34 'up': (_("Up"), "moin-parent.png", 21, 32),
35 # FileAttach
36 'attach': ( "%(attach_count)s", "moin-attach.png", 7, 15),
37 # RecentChanges
38 'rss': (_("[RSS]"), "moin-rss.png", 36, 14),
39 'deleted': (_("[DELETED]"), "moin-deleted.png",60, 12),
40 'updated': (_("[UPDATED]"), "moin-updated.png",60, 12),
41 'new': (_("[NEW]"), "moin-new.png", 31, 12),
42 'diffrc': (_("[DIFF]"), "moin-diff.png", 15, 11),
43 # General
44 'bottom': (_("[BOTTOM]"), "moin-bottom.png", 14, 10),
45 'top': (_("[TOP]"), "moin-top.png", 14, 10),
46 'www': (_("[WWW]"), "moin-www.png", 11, 11),
47 'mailto': (_("[MAILTO]"), "moin-email.png", 14, 10),
48 'news': (_("[NEWS]"), "moin-news.png", 10, 11),
49 'telnet': (_("[TELNET]"), "moin-telnet.png", 10, 11),
50 'ftp': (_("[FTP]"), "moin-ftp.png", 11, 11),
51 'file': (_("[FILE]"), "moin-ftp.png", 11, 11),
52 # search forms
53 'searchbutton': (_("[?]"), "moin-search.png", 12, 12),
54 'interwiki': ( ("[%(wikitag)s]"), "moin-inter.png", 16, 16),
55 }
56
57 stylesheets = ThemeBase.stylesheets + (
58 # theme charset media basename
59 (name, 'iso-8859-1', 'screen', 'screen'),
60 )
61
62 def execute(request):
63 return Theme(request)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.