mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 08:25:35 +00:00
webish.py: put the URI in a narrower auto-scrolling box (with CSS)
This commit is contained in:
parent
1cb1faf11d
commit
1eba30cd14
2
setup.py
2
setup.py
@ -82,7 +82,7 @@ majority of the nodes are no longer available.""",
|
|||||||
"allmydata.filetree", "allmydata.scripts",],
|
"allmydata.filetree", "allmydata.scripts",],
|
||||||
package_dir={ "allmydata": "src/allmydata",},
|
package_dir={ "allmydata": "src/allmydata",},
|
||||||
scripts = ["bin/allmydata-tahoe"],
|
scripts = ["bin/allmydata-tahoe"],
|
||||||
package_data={ 'allmydata': ['web/*.xhtml'] },
|
package_data={ 'allmydata': ['web/*.xhtml', 'web/*.css'] },
|
||||||
classifiers=trove_classifiers,
|
classifiers=trove_classifiers,
|
||||||
test_suite="allmydata.test",
|
test_suite="allmydata.test",
|
||||||
)
|
)
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<!-- <link href="http://www.allmydata.com/common/css/styles.css"
|
<!-- <link href="http://www.allmydata.com/common/css/styles.css"
|
||||||
rel="stylesheet" type="text/css"/> -->
|
rel="stylesheet" type="text/css"/> -->
|
||||||
<link href="/webform_css" rel="stylesheet" type="text/css"/>
|
<link href="/webform_css" rel="stylesheet" type="text/css"/>
|
||||||
|
<link href="/tahoe_css" rel="stylesheet" type="text/css"/>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -25,7 +26,7 @@
|
|||||||
<td><n:slot name="filename"/></td>
|
<td><n:slot name="filename"/></td>
|
||||||
<td><n:slot name="type"/></td>
|
<td><n:slot name="type"/></td>
|
||||||
<td><n:slot name="size"/></td>
|
<td><n:slot name="size"/></td>
|
||||||
<td><n:slot name="uri"/></td>
|
<td><pre class="overflow"><n:slot name="uri"/></pre></td>
|
||||||
<td><n:slot name="delete"/></td>
|
<td><n:slot name="delete"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
8
src/allmydata/web/tahoe.css
Normal file
8
src/allmydata/web/tahoe.css
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
pre.overflow {
|
||||||
|
background: #f7f7f7;
|
||||||
|
border: 1px solid #d7d7d7;
|
||||||
|
margin: 1em 1.75em;
|
||||||
|
padding: .25em;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
@ -3,6 +3,7 @@ from twisted.application import service, strports
|
|||||||
from twisted.web import static, resource, server, html
|
from twisted.web import static, resource, server, html
|
||||||
from twisted.python import util, log
|
from twisted.python import util, log
|
||||||
from nevow import inevow, rend, loaders, appserver, url, tags as T
|
from nevow import inevow, rend, loaders, appserver, url, tags as T
|
||||||
|
from nevow.static import File as nevow_File # TODO: merge with static.File?
|
||||||
from allmydata.util import idlib
|
from allmydata.util import idlib
|
||||||
from allmydata.uri import unpack_uri
|
from allmydata.uri import unpack_uri
|
||||||
from allmydata.interfaces import IDownloadTarget
|
from allmydata.interfaces import IDownloadTarget
|
||||||
@ -333,6 +334,7 @@ class Root(rend.Page):
|
|||||||
return rend.Page.locateChild(self, ctx, segments)
|
return rend.Page.locateChild(self, ctx, segments)
|
||||||
|
|
||||||
child_webform_css = webform.defaultCSS
|
child_webform_css = webform.defaultCSS
|
||||||
|
child_tahoe_css = nevow_File(util.sibpath(__file__, "web/tahoe.css"))
|
||||||
|
|
||||||
child_welcome = Welcome()
|
child_welcome = Welcome()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user