Changeset 244:ae4ea992c181
- Timestamp:
- 2007-08-12 12:56:26
(1 year ago)
- Author:
- Stefan Schwarzer <sschwarzer@sschwarzer.net>
- branch:
- default
- Message:
Use source code placeholder frame instead of blank frame.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r233 |
r244 |
|
| 83 | 83 | elif builtin == "help": |
|---|
| 84 | 84 | self.emit_data(template.HELP, title=u"Websourcebrowser help", |
|---|
| | 85 | h1_class="Other") |
|---|
| | 86 | elif builtin == "source_placeholder": |
|---|
| | 87 | self.emit_data(template.SOURCE_PLACEHOLDER, |
|---|
| | 88 | title=u"Source code placeholder", |
|---|
| 85 | 89 | h1_class="Other") |
|---|
| 86 | 90 | elif builtin == "raw_data": |
|---|
| … | … | |
| 189 | 193 | dir_url = session.default_session.add_to_url(url, params) |
|---|
| 190 | 194 | html = template.FRAMESET % { |
|---|
| | 195 | 'special_dir': config.SPECIAL_DIR, |
|---|
| 191 | 196 | 'dir_url': dir_url, |
|---|
| 192 | 197 | 'dir_target': config.DIR_WINDOW_TARGET, |
|---|
| 193 | | 'source_target': config.SOURCE_WINDOW_TARGET, |
|---|
| 194 | | 'host': config.http_host, 'port': config.http_port} |
|---|
| | 198 | 'source_target': config.SOURCE_WINDOW_TARGET} |
|---|
| 195 | 199 | use_header_and_footer = False |
|---|
| 196 | 200 | else: |
|---|
| r231 |
r244 |
|
| 60 | 60 | </head> |
|---|
| 61 | 61 | <frameset cols="30%%,70%%"> |
|---|
| 62 | | <frame name="%(dir_target)s" src="http://%(host)s:%(port)s%(dir_url)s" /> |
|---|
| 63 | | <frame name="%(source_target)s" /> |
|---|
| | 62 | <frame name="%(dir_target)s" src="%(dir_url)s" /> |
|---|
| | 63 | <frame name="%(source_target)s" src="/%(special_dir)s/source_placeholder"> |
|---|
| 64 | 64 | <noframes> |
|---|
| 65 | 65 | <body> |
|---|
| 66 | 66 | <h1>Websourcebrowser - source code at a glance</h1> |
|---|
| 67 | 67 | <p>Your browser doesn't seem to work with frames. You may go to |
|---|
| 68 | | the <a href="http://%(host)s:%(port)s/">frameless version</a>, |
|---|
| | 68 | the <a href="/">frameless version</a>, |
|---|
| 69 | 69 | which will open another browser window to show source code.</p> |
|---|
| 70 | 70 | </body> |
|---|
| … | … | |
| 74 | 74 | """ |
|---|
| 75 | 75 | |
|---|
| | 76 | SOURCE_PLACEHOLDER = u"""\ |
|---|
| | 77 | If you click on a link for a file, its contents will appear here. |
|---|
| | 78 | """ |
|---|